Page 1 of 1
Where does TextPad store Java tool options?
Posted: Thu Apr 15, 2004 7:51 pm
by BillF
Reading all the posts on classpath makes it clear that people have difficulty with this.
I would like to be able to create a file that I could distribute to students with the proper classpath options already set.
Does TextPad have something like a "TextPad.ini" file that I could give to my students after I had set the proper parameters, etc. for the Java tools?
Posted: Thu Apr 15, 2004 8:50 pm
by MudGuard
Textpad puts options into the registry.
You can find the tool options there.
You could export the keys for your tools -
BUT:
- different windows versions have different .reg file formats
- Tools are numbered. If the students have a different number of Tools already configured, this will cause problems.
- if your students are not able to set up class paths themselves, will they be able to handle registry imports?
Java Settings via Batch file?
Posted: Fri Apr 16, 2004 3:36 pm
by BillF
I expected as much... too bad, as this would be a useful option.
Does anyone know of a way to set these options through a batch file?
Posted: Fri Apr 16, 2004 4:03 pm
by talleyrand
Beyond something like this?
Code: Select all
@echo off
REM Been too long since I've diddled with Java so not quite sure what's required anymore
SET path=%path%;c:\jdk1.3
SET classpath=%classpath%;c:\jdk1.3\;c:\jdk1.3\lib
SET java_home=c:\jdk1.3
[edit]
Doh, did you meant to set the tools up for TP? No clue on how to get that piece done, sorry.
[/edit]
Batch Help
Posted: Mon Apr 19, 2004 12:13 am
by BillF
Actually, I was thinking about setting TextPad's options.
I had written two batch files like this which the students use to compile and run Java code (instead of TextPad's nice Java tools).
However, I think now I will distribute a startup file for TextPad that will set the classpaths and then invoke TextPad.
Thanks for giving me the inspiration!
B.