I'm starting out in Java programming but have no prior knowledge in any programming language. I'm trying to use Geany portable. The problem is I can't run even the Hello World program.
I was able to save the source file as MyFirstJavaProgram.java but I cannot compile nor run it.
Here's what I see on the compiler message window when I click on "Compile":
javac "MyFirstJavaProgram.java" (in directory: C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Portalet\GeanyPortable\App\Geany)
And then the status bar reads "Process failed (The system cannot find the file specified)"
I tried to run the program and this is what I get:
"Exception in thread "main" java.lang.NoClassDefFoundError: MyFirstJavaProgram
Caused by: java.lang.ClassNotFoundException: MyFirstJavaProgram
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: MyFirstJavaProgram. Program will exit."
I've done no initial setting up of preferences, so I just ran Geany after installation.
I hope someone would be kind enough to help and explain these to me.
Thank you in advance!
-dub16