|
#1
| ||||
| ||||
| I'm trying to do a very simple thing, compile HelloWorld.java on Mac OS X Public Beta. java and javac are apparently in the path, the program is in the current directory. java compiles it into a .class file. But when I try to run the app "java HelloWorld.class", I get the ClassNotFound exception at run time. This is the same HW app that I've compiled under OS9, Linux and NT. I've tried "setenv CLASSPATH = ." I'm running from the directory that the .class file is in. Clues? OS X PB out of the box. I didn't download the dev tools. |
|
#2
| ||||
| ||||
| Quote:
you have to call "java HelloWorld", without the ending .class. The call "java HelloWorld.class" would mean you are calling a class named class inside the pachkage HelloWorld. So always call your classes without the ending. |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| php won't compile on Panther | Gnomo | Mac OS X System & Mac Software | 0 | October 27th, 2003 11:12 AM |
| how to compile Pine in 10.2 | emck | Unix & X11 | 5 | November 18th, 2002 12:06 PM |
| HELP: I have no idea how to compile! | Berk | Software Programming & Web Scripting | 2 | October 31st, 2002 12:55 PM |
| How to compile stuff | fintler | Unix & X11 | 1 | August 28th, 2002 08:57 AM |
| tk compile crash | buc99 | Software Programming & Web Scripting | 0 | June 6th, 2002 12:38 AM |