Exception in thread "main" java.lang.NoClassDefFoundError: hell
caused by : java.lang.ClassNotFoundException : hell
at java.security.AccessController.doPrivileged<Native Method>
at java.lang.ClassLoader.loadClass<Class Loader.java:307>
could not find the main class:hell. program will exit.
Joywish Man wrote:You need to restore the windows path enviournment variable google it how to do that you must have corrupted the 'path' windows enviournment variable you need to recover that ! as solution provide by Ryan did not work
Joywish Man wrote:Setting ClassPath once is better than setting it everytime!
That's what Ant, jar file manifests, and batch/script files are for. An environment variable is the absolute worst way to manage this sort of thing, for many of the same reasons that global variables (or public static variables in Java) are a bad idea
Joywish Man wrote:This is a beginner forum and Simple things need to be simple for learning puposes so setting classpath is best at beginner level for trying some quick programs
Joywish Man wrote: my opinion others may differ