[User Error] Classes not being found by Eclipse Java [message #1771811] |
Wed, 30 August 2017 19:10 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jim Anderson![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=jim_anderson%40jjajava.com) Messages: 109 Registered: October 2014 |
Senior Member |
|
|
I'm in the process of setting up Eclipse/Java after having been away from java development for about 3 years.
I have some programs that I can run using a jre, but when I bring the code into Eclipse I am getting hunderds fo errors because classes are not being found. After setting up my project, I edited the project properties by going to java build path/library window and then adding my external jars.
I thought adding these external jars would resolve the missing classes, but it has not. How do I resolve these references in Eclipse?
Thanks in advance for any help. It is appreciated.
Jim A.
[Updated on: Wed, 30 August 2017 21:02] Report message to a moderator
|
|
|
Re: Classes not being found by Eclipse Java [message #1771812 is a reply to message #1771811] |
Wed, 30 August 2017 19:24 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Stephan Herrmann![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=stephan.herrmann%40berlin.de) Messages: 1853 Registered: July 2009 |
Senior Member |
|
|
First: typically, Java projects find their libraries by the help of a build tool like gradle or maven, for which Eclipse plugins exist, that pass that information on to JDT.
As you are manually handling external jars I assume you do not use such a build tool, right?
In that case, the Java Build Path > Library tab is perfectly suited for your task, and from the information you provide, I cannot tell what went wrong.
The first thing you may want to check: in the Package Explorer, do you see a node "Referenced Libraries"? Inside, can you drill down to the classes that are reported as missing?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03923 seconds