0

I'm new to the java language. I am trying to understand what exactly the class loader of JVM does.

I wrote a simple java program and copied the .java file in the C:\Program Files\Java\jdk1.8.0_333\jre\lib\ext and tried to compile it. After that when the javac command created a .class file, I converted it into a jar file and deleted the .class file.

So when I tried to run the jar with java filename the output of cmd displayed like this:

Error: Could not find or load main class Testing_prog

Testing_prog is my converted jar file.

Please Help.

Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
Mahdi
  • 9
  • 2

0 Answers0