Hello, I am attempting to run some java from my terminal and seems to be getting the following error:
Upon reading some stuff online I found that this is an error with the java CLASSPATH. So, I tried that following:
Which has the same result.
Also, when checking the classpath:
This is very odd because I have run tons of java code from my terminal so I'm not sure what could be going on here.
Any help would be much appreciated. Thanks.
Code:
09:44@joshMac:.+rc/edu/american$ java DataLink
Exception in thread "main" java.lang.NoClassDefFoundError: DataLink
Caused by: java.lang.ClassNotFoundException: DataLink
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Upon reading some stuff online I found that this is an error with the java CLASSPATH. So, I tried that following:
Code:
09:46@joshMac:.+rc/edu/american$ java DataLink -cp .
Also, when checking the classpath:
Code:
09:50@joshMac:.+t1/edu/american$ pwd
/Users/***/Documents/school/11spr/csc546/project1/edu/american
09:50@joshMac:.+t1/edu/american$ $CLASSPATH
-bash: /Users/***/Documents/school/11spr/csc435/project/edu/american: No such file or directory
This is very odd because I have run tons of java code from my terminal so I'm not sure what could be going on here.
Any help would be much appreciated. Thanks.