Why hello there!
I seem to be having some trouble running .class files from bash. At first I thought I was just a complete retard and forgot to how to but it seems that the problem is a bit more complicated. However I am able to compile java programs.
For example. Lets save I have a program like this
I am able to compile the .class file but not run it. I know the problem is probably an environment variable or a program thats not installed. I am fairly sure that I have the runtime installed because I can run programs like openoffice. Any help would be appreciated.
public class yourmom
public static void main(String args)
System.out.println("your mom loves my phallus");
I should also mention the error I receive when i try to run the program. I get the generic class cannot be found error shown here.
Exception in thread "main" java.lang.NoClassDefFoundError: yourmom
Caused by: java.lang.ClassNotFoundException: yourmom
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 23)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 68)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:336)
Could not find the main class: yourmom. Program will exit.