I get an error message despite importing jar files [message #103314] |
Tue, 20 September 2005 19:51 |
Eclipse User |
|
|
|
Originally posted by: nthalank.rdg.boehringer-ingelheim.com
Hello
I am new to Eclipse.
I am attempting to port a java application written in Notepad to the IDE.
This app uses a lot of packages and is working perfectly fine on the dev
server.
Te Eclipse IDE sits on my desktop. Despite importing all relevant jar
files into Eclipse I still see many error messages on the import statements
For e.g. I get an error message stating that the package 'import
org.jdom.JDOMException;' cannot be resolved.
All JDOM packages are in one jar file 'jdom.jar'
When I observe the package explorer I noticed that it shows individual
packages of the JDOM jar file. In it I noticed that the 'jdom' package
itself is missing.
JDOM works fine with the notepad so why is it missing in the Package
explorer.
I have noticed this with other jar files as well.
Can some one tell me what is happening...
Thanks
Naveen
|
|
|
Re: I get an error message despite importing jar files [message #104354 is a reply to message #103314] |
Fri, 23 September 2005 15:23 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Naveen wrote:
> Hello
>
> I am new to Eclipse.
>
> I am attempting to port a java application written in Notepad to the IDE.
>
> This app uses a lot of packages and is working perfectly fine on the dev
> server.
>
> Te Eclipse IDE sits on my desktop. Despite importing all relevant jar
> files into Eclipse I still see many error messages on the import statements
>
> For e.g. I get an error message stating that the package 'import
> org.jdom.JDOMException;' cannot be resolved.
>
> All JDOM packages are in one jar file 'jdom.jar'
> When I observe the package explorer I noticed that it shows individual
> packages of the JDOM jar file. In it I noticed that the 'jdom' package
> itself is missing.
>
> JDOM works fine with the notepad so why is it missing in the Package
> explorer.
>
> I have noticed this with other jar files as well.
>
> Can some one tell me what is happening...
You need to read the Getting Started sections of the Eclipse Help. They
will explain to you how to set up your Java Projects in Eclipse.
In short, your problem is likely because having a JAR in Eclipse is not
sufficient for the compiler to use it. You must configure the Project to
use that JAR on its Build Path (via the Properties dialog for the Project).
Read the Help - it will enlighten you ;-)
HTH,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds