re: TextPad will compile but won't run
Posted: Tue Feb 18, 2003 4:31 pm
Help !!!!
I have taken a few java courses and have TextPad installed on my desktop and it works fine. I am also able to compile from the MSDS window as well.
Here's the problem. I just bought a new laptop to use for my classes as well. I installed the same sdk (sdk1.3.1_03) as my desktop and then installed TextPad.
With the help of my professor I got it to run and compile from the MSDS window, so I know the path and classpath are set correctly. But when I try it from the TextPad it will only compile and not run.
I get the lovely "NoClassDefFound" error. Now the program is just a Hello program, but it is in a package.
Here are my settings:
The paths in the autobat file are:
SET PATH=.;c:\jdk1.3.1_03\bin;
SET CLASSPATH=.;c:\JavaCode
note: JavaCode is where the package is
I am running windows 98 se on both systems
In TextPad --> Configure --> Preferences -->
Compile settings:
Command: javac.exe
Parameters: $File
Initial Folder: $FileDir
Run Settings:
Command: java.exe
Parameters: $BaseName
Initial Folder:$FileDir
Any ideas????
Jen
I have taken a few java courses and have TextPad installed on my desktop and it works fine. I am also able to compile from the MSDS window as well.
Here's the problem. I just bought a new laptop to use for my classes as well. I installed the same sdk (sdk1.3.1_03) as my desktop and then installed TextPad.
With the help of my professor I got it to run and compile from the MSDS window, so I know the path and classpath are set correctly. But when I try it from the TextPad it will only compile and not run.
I get the lovely "NoClassDefFound" error. Now the program is just a Hello program, but it is in a package.
Here are my settings:
The paths in the autobat file are:
SET PATH=.;c:\jdk1.3.1_03\bin;
SET CLASSPATH=.;c:\JavaCode
note: JavaCode is where the package is
I am running windows 98 se on both systems
In TextPad --> Configure --> Preferences -->
Compile settings:
Command: javac.exe
Parameters: $File
Initial Folder: $FileDir
Run Settings:
Command: java.exe
Parameters: $BaseName
Initial Folder:$FileDir
Any ideas????
Jen