Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
java.lang.ClassNotFoundException: draw.Transform.class

while working with this class file the above mentioned error appears but the thing is it appears sometimes and other time it works fine


also

javac classfile

from console gives the error
Error: could not find or load main class

What I have tried:

searched the world wide web for java compilation
Posted
Updated 14-Jun-17 4:45am

1 solution

Error: could not find or load main class
This error just means you are trying to load a class that does not contain a main method. You should go to The Java™ Tutorials[^] and learn about Java and how the classes fit together.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900