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:

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

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 java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
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