Using Geany Portable

A forum to discuss Java programming related issues and concerns.
no avatar
dub16
 
Posts: 1
Joined: Fri Jun 22, 2012 3:09 pm
Location: Manila

Using Geany Portable

by dub16 » Fri Jun 22, 2012 3:28 pm

Hi,

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. :cry:

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

no avatar
Lala55
 
Posts: 2
Joined: Thu May 16, 2013 11:17 pm

Re: Using Geany Portable

by Lala55 » Thu May 16, 2013 11:30 pm

I appreciate your effort.

Return to JAVA Lobby