A
Arne Vajhøj
Tom said:Them's the rules. In practice, you don't run real apps that way, you run
then as executable JARs:
java -jar hello.jar
Maybe I am bit weird but I would use:
java -cp hello.jar HelloWorld
for command line - I consider the executable jar feature to
be mostly a GUI double click feature.
It makes no difference if the system is case sensitive or not. If it is
case sensitive, it will say 'file not found' if the case is wrong, and
if it isn't, it will say 'class format error', because the file
hello.class contains a class called Hello, and java is case-sensitive
internally.
Actually:
java.lang.NoClassDefFoundError: hello (wrong name: Hello)
Arne