Compile problem
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Compile problem
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.
compile problem
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:
I get this code whether the .java file is on my flash drive or the desktop.
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