Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343665 - Importing a .jar file is not available
Summary: Importing a .jar file is not available
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 15:30 EDT by Jonathan Camilleri CLA
Modified: 2011-04-26 03:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Camilleri CLA 2011-04-22 15:30:00 EDT
Build Identifier: 

It does not seem possible to import a .jar file within a project.

Reproducible: Always

Steps to Reproduce:
1. Right click within Projects
2. Select Import

There seems to be no option to import a .jar file, whilst this has been documented at http://www.eclipse-blog.org/eclipse-ide/exportingimporting-jar-files.html, perhaps for a different version.

Please advise.
Comment 1 Dani Megert CLA 2011-04-25 11:59:14 EDT
You can use File > Import > Archive.

Please use the newsgroups/forum to ask questions before opening a bug report.
Comment 2 Jonathan Camilleri CLA 2011-04-25 15:21:40 EDT
It won't work as expected with .JAR files, however, I found another option after a while, which allowed me to import an external JAR.  Would you consider having "on mouse hover" kind of help because Eclipse includes extensive functionality, and, it is a pity that some of it is not immediately and intuitively available.
Comment 3 Dani Megert CLA 2011-04-26 03:22:51 EDT
>It won't work as expected with .JAR files
Probably depends on what you expect ;-)

What exactly did you try to achieve?
Comment 4 Jonathan Camilleri CLA 2011-04-26 03:33:54 EDT
(In reply to comment #3)
> >It won't work as expected with .JAR files
> Probably depends on what you expect ;-)
> 
> What exactly did you try to achieve?

Just trying to configure Apache Log 4j logging services (http://logging.apache.org/log4j/1.2/manual.html), and, including the .JAR 
is a good way to start trainng.
Comment 5 Dani Megert CLA 2011-04-26 03:36:07 EDT
In that case there is no need to import the JAR but simply add it the Java build path.
Comment 6 Jonathan Camilleri CLA 2011-04-26 03:41:09 EDT
(In reply to comment #5)
> In that case there is no need to import the JAR but simply add it the Java
> build path.

Noted thanks, I guess you are referring to the Preferences > Java > Build Path >
Classpath Variable option.
Comment 7 Dani Megert CLA 2011-04-26 03:45:15 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > In that case there is no need to import the JAR but simply add it the Java
> > build path.
> 
> Noted thanks, I guess you are referring to the Preferences > Java > Build Path
> >
> Classpath Variable option.

No. You would either use 'Add JARs...' or 'Add External JARs...' on the 'Libraries' tab.