Hi All,
I compiled a java program on a windows PC, it works fine in the IDE. I then copy the entire folder to a Linux server, and it works fine. But when I run the program on my PC from the command line, it does'nt work, even the syntax is the same on linux means java -cp full_path_to/a_jar_file.jar:root relative_path_to_class/classname
The error message is java.lang.NoClassDefFoundError
relative_path_to_class/classname
What could be the error
I compiled a java program on a windows PC, it works fine in the IDE. I then copy the entire folder to a Linux server, and it works fine. But when I run the program on my PC from the command line, it does'nt work, even the syntax is the same on linux means java -cp full_path_to/a_jar_file.jar:root relative_path_to_class/classname
The error message is java.lang.NoClassDefFoundError
relative_path_to_class/classname
What could be the error