lass
and so on.- Hide quoted text -
- Show quoted text -
Thanks Roedy and Donkey for the help. I looked both of them. Since the
article Roedy sited looks more complicated than the Donkey's method,
so i tried Donkey's method first, but if necessary, i will go back to
study more details on the article Roedy recommanded.
Yes, adding a world subfolder to my current folder and move the
HelloWorld.class to that folder and run the command
java world.HelloWorld, it worked! Thanks for the help again.
But I have another question here. I can't always run the progrom in
the current directory, which is ~/workspace/temp, so I would to try
whether i can still run the program in another directory, but
unfortunately I met the similar error again.
That is, I run the below command at the directory of ~/workspace,
instead of ~/workspace/temp, with my HelloWorld.class in the ~/
workspace/temp/world directory by the command:
java temp/world/HelloWorld or java temp.world.HelloWorld or java ~/
workspace/temp/world/HelloWorld, but failed again.
Can anyone kindly help again.
Thanks a lot.
advanced tracks on the issue. There will be packaging your classes to a
jar file and Classpath and MANIFEST.MF and such.
You will need those. My advice was really a snap first-aid, and will not
help but only in the very basics.
tens/hundreds/thousans of files, but only one. That will be a jar file.