View Single Post
Alejandro Lanza

Member Since: Jan 22, 2012
Posts: 5
Alejandro Lanza is on a distinguished road

Alejandro Lanza is offline
Strange, i know the file is there. In fact i ran this to compile it:

Ales-MacBook:~ MacBook$ javac /Users/MacBook/Documents/Java_coding/

Ales-MacBook:~ MacBook$ java /Users/MacBook/Documents/Java_coding/Example.class

Exception in thread "main" java.lang.NoClassDefFoundError: /Users/MacBook/Documents/Java_coding/Example/class
Caused by: java.lang.ClassNotFoundException: .Users.MacBook.Documents.Java_coding.Example.class
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
Ales-MacBook:~ MacBook$
and that in fact produced the Example.class file as you can see above, but for some reason i can't run the program afterwards
Thanks for the advice Vansmith!
QUOTE Thanks