Skip to main content



      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 19:53 Go to next message
Eclipse UserFriend
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 12:41] by Moderator

Re: Eclipse IDE for Java Developers 2021-06 Cannot find class paths [message #1849403 is a reply to message #1844119] Mon, 17 January 2022 19:21 Go to previous message
Eclipse UserFriend
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:Gradle Project Importing Issue
Next Topic:Error while add weblogic server in eclipse 2021-12
Goto Forum:
  


Current Time: Sat Jul 12 21:36:06 EDT 2025

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

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

Back to the top