I would like to know how we could set the class path in the Textpad. I started using this editor about 2 months ago and found it very handy at times when we have more than one program to compile for one button click will compile a program!
Now that i ahve reinstalled my Java Software viz. JDK, JSDK, JWS and like now my textpad would not compile even when i am using a class thats existing in the same folder as the program i am working at that moment.
Classpath
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Classpath
I got a similar problem and want to get some solution. Please let me know when you get it.
I tried to add a batch file to tool so that every time I am going to compile my java file, I can run it first that it sets environment, like what I did in DOS CMD window. Theoritically, it should work but I did not make it. Whatever I tried running batch first then compile java file, I got the same error message that can not resolve symbol. It looks like, this batch, even it ran on Textpad, does not set environment for this TextPad session.
May be someone has a better idea?
Thanks
John
I tried to add a batch file to tool so that every time I am going to compile my java file, I can run it first that it sets environment, like what I did in DOS CMD window. Theoritically, it should work but I did not make it. Whatever I tried running batch first then compile java file, I got the same error message that can not resolve symbol. It looks like, this batch, even it ran on Textpad, does not set environment for this TextPad session.
May be someone has a better idea?
Thanks
John
Re: Classpath
John
As I understand it, you are running the bat/cmd file from the tools menu?
Try running it in a prompt and then start textpad from that prompt.
Textpad will then inherit all the path/classpath/other settings you may
have set.
mvh / regards
/Henrik
As I understand it, you are running the bat/cmd file from the tools menu?
Try running it in a prompt and then start textpad from that prompt.
Textpad will then inherit all the path/classpath/other settings you may
have set.
mvh / regards
/Henrik
Re: Classpath
I got a tool like this to work by making the following batch file (I'm hoping this message board preserves line breaks, otherwise I'll have to repost this):
---
@echo off
set temp01=%classpath%;.;
set temp01=%temp01%;G:\Tools\MySQL\mm.mysql-2.0.14-bin.jar
set temp01=%temp01%;C:\jsdk2.1\servlet.jar
C:\j2sdk1.4.0_01\bin\javac.exe -classpath "%temp01%" %1 %2 %3 %4 %5 %6 %7 %8 %9
---
...then I just add to this batch file whenever I need to add to my classpath. The downside is that the regular expression matching on the output won't work, even though I have it set up exactly like the Compile aJava JDK tool in Textpad:
RegExp: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
File: 1
Line 4
..anybody got any ideas on that?
Alan Bellows
---
@echo off
set temp01=%classpath%;.;
set temp01=%temp01%;G:\Tools\MySQL\mm.mysql-2.0.14-bin.jar
set temp01=%temp01%;C:\jsdk2.1\servlet.jar
C:\j2sdk1.4.0_01\bin\javac.exe -classpath "%temp01%" %1 %2 %3 %4 %5 %6 %7 %8 %9
---
...then I just add to this batch file whenever I need to add to my classpath. The downside is that the regular expression matching on the output won't work, even though I have it set up exactly like the Compile aJava JDK tool in Textpad:
RegExp: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
File: 1
Line 4
..anybody got any ideas on that?
Alan Bellows
Re: Classpath
1. Have you tried to compile from a straight DOS prompt. In other words, do you know if it is generally a classpath problem, or is it a actual TextPad problem.
2. If you can compile correctly from DOS, have yuo tried to uninstall and re-install Text-pad.
3. If you can not compile in DOS, have you changed the classpath variable on your operating system since you have added the new version of Java.
4. If not, then make sure you change it. Where you change it depends on what operating system you are using. So, just try looking that information up on google.
2. If you can compile correctly from DOS, have yuo tried to uninstall and re-install Text-pad.
3. If you can not compile in DOS, have you changed the classpath variable on your operating system since you have added the new version of Java.
4. If not, then make sure you change it. Where you change it depends on what operating system you are using. So, just try looking that information up on google.