Hi guys,
I'm *attempting* to teach myself java...
I'm running on a Mac Leopard 10.5.6...
As I couldn't find any JSKs for Mac, I came across Soylatte which i've downloaded to
Users/Admin/Applications/Soylatte
I opened terminal.app and typed in the line:
edit autoexec.bat
It opened a TextWrangler file, and in it, i typed:
set path=%path%;applications\soylatte\bin
set classpath=%classpath%;.;
Then rebooted
After that, I opened another TextWrangler file and typed up the tutorial code:
class myfirstjavaprog
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
And saved it as myfirstjavaprog.java in Users/Admin/Documents/Java
next, i opened terminal.app and typed:
Admins-MacBook:~ Admin$ java myfirstjavaprog
Exception in thread "main" java.lang.NoClassDefFoundError: myfirstjavaprog
[note: the 'Admins-MacBook:~ Admin$' bit is there automatically]
Is there anyone that might be able to point out where I am going wrong? Thanks!
