Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java class file not on classpath

I've tried opening class file in eclipse that I have copied pasted from the jar that I have imported into the project and am receiving this as first error:

org.eclipse.core.runtime.CoreException: The class file is not on the classpath.

Evidently I have included the class file incorrectly into my project. I need to use this class file to access Java applet. Suggestions please

like image 994
user1022570 Avatar asked Dec 09 '25 18:12

user1022570


1 Answers

Rather than trying to copy the class file into your project, you should reference the Jar that the class you want is part of.

Go to: project->properties->java build path->libraries tab->add external jars...

like image 134
vaughandroid Avatar answered Dec 12 '25 07:12

vaughandroid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!