Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse IDE for Java Developers 2021-06 Cannot find class paths(Cannot find class path in library jars.)
Eclipse IDE for Java Developers 2021-06 Cannot find class paths [message #1844119] Wed, 01 September 2021 23:53 Go to next message
Clifton Liles is currently offline Clifton LilesFriend
Messages: 2
Registered: October 2011
Junior Member
I have built a new machine and installed a fresh version of eclipse (Eclipse IDE for Java Developers 2021-06). If I run an old code file it works. If I make a new file I the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: net/crl/CRLibs/DBI
at EnvList.<clinit>(EnvList.java:143)
Caused by: java.lang.ClassNotFoundException: net.crl.CRLibs.DBI
There are no errors in the code.
The build path looks like:
index.php/fa/40927/0/
Line:143 is: static DBI db = new DBI();

DBI is defined in the crlibs jar.
In my old Eclipse (Oxygen) the build path looks like:
index.php/fa/40928/0/

I tried adding the crlibs jar to the Classpath, but it will not let me save it (all boxes grayed out).
Now this code is copy of a template I use. The original runs just fine and its build path looks like the one from Oxygen.
If I comment out this line it will give the same error at the next library access.
It appears that the Class paths to the library are not being included.
Note The library was built with Oxygen. Do I need to rebuild it with the new version and if so will it then still work for all the code build with Oxygen.
How do I fix this?
Note: Eclipse Java EE IDE for Web Developers.
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200

Thanks Cliff

[Updated on: Sat, 04 September 2021 16:41]

Report message to a moderator

Re: Eclipse IDE for Java Developers 2021-06 Cannot find class paths [message #1849403 is a reply to message #1844119] Tue, 18 January 2022 00:21 Go to previous message
Clifton Liles is currently offline Clifton LilesFriend
Messages: 2
Registered: October 2011
Junior Member
In the first figure above: You must delete the jar from Modulepath THEN add it to the Classpath. The JRE seems just fine in the Modulepath. Once my library is in the classpath the code works.
Previous Topic:Launching Eclipse 2020-09R error Version 11 or greater is required.
Next Topic:Error while add weblogic server in eclipse 2021-12
Goto Forum:
  


Current Time: Mon Jan 24 19:25:04 GMT 2022

Powered by FUDForum. Page generated in 0.02508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top