![]() class file (just name) which is in the current directory.įollowing are the scenarios where this error could occur â Linux Java javac Test.java Test. To avoid this error, you need to specify the absolute (including packages) name of the. class file with the specified name then a run time error occurs saying âCould not found or load main classâ error as â D:\sample>java ExampleÄ®rror: Could not find or load main class ExampleĬaused by: : Example Solution While executing, when JVM does not find a. Then you need to execute it using the java command as â java class_name Quick Navigation Pentaho Data Mining WEKA Top. I get: Usage: weka.Run -no-scan -no-load . I am writing a program that uses three classes and an external.![]() : mysql-connector-java-8.0.19.jar Fetchdata i get. Once you resolve them and compile your program success fully, an executable file with the same name as your class name is generated in your current folder, with the. jar file is the same directory upto this every thing is fine when i does java -cp. ![]() Once you write a Java program you need to compile it using the javac command, this shows you the compile time errors occurred (if any).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |