Compile problem

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jim01
Posts: 2
Joined: Mon Oct 18, 2010 3:27 pm

Compile problem

Post by jim01 »

I am attempting to run TextPad from a flash drive. I can open a java file and it recognizes the file as a java file (meaning that it shows green for comments, blue for variables, etc.), however when I go to external tools to try and compile and or run the application, there are no options - it's blank. I'm assuming that it's a configuration problem but I do not know how to configure it to work with the computer I am using it on. I looked in the help documentation under both configuration and compiler, but neither helped with this problem.
clewis
Posts: 3
Joined: Tue Oct 19, 2010 12:51 pm

Compiler

Post by clewis »

I recently downloaded the textpad editor and the compile java and run java program features is not included.

Can any 1 assist with this pls?
jim01
Posts: 2
Joined: Mon Oct 18, 2010 3:27 pm

compile problem

Post by jim01 »

A little more information may help.

To configure Textpad on my computer at home (Windows XP) I just went to configure, tools, add, java sdk commands, ok. That was it. It's worked fine.

I do not have that option for Textpad on the computer at my university (Windows 7). I have the option of either dos commands, programs, or others that do not apply.

I first tried typing the path for the java.exe and javac.exe commands (one at a time of course) and the apply and then OK. This did not work. I then went to programs and drilled down to where the java and javac executables were at and opened them up from there. Now I can get the compiler to work but none of the programs will run. Instead I get the following error:

Code: Select all


java.lang.NoClassDefFoundError: E:\Java Programming\GPA/java
Caused by: java.lang.ClassNotFoundException: E:\Java Programming\GPA.java
    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)
Could not find the main class: E:\Java Programming\GPA.java.  Program will exit.
Exception in thread "main"
Tool completed with exit code 1
I get this code whether the .java file is on my flash drive or the desktop.
clewis
Posts: 3
Joined: Tue Oct 19, 2010 12:51 pm

Post by clewis »

thanks alot for your inputs.

I have try the conf and added the compile and run commands from the tool option on my win 7 OS platform, it works really well for me plus, i had to buy the full version key.
Post Reply