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?
Where does TextPad store Java tool options?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Textpad puts options into the registry.
You can find the tool options there.
You could export the keys for your tools - BUT:
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?
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?
Does anyone know of a way to set these options through a batch file?
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Beyond something like this?
[edit]
Doh, did you meant to set the tools up for TP? No clue on how to get that piece done, sorry.
[/edit]
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
Doh, did you meant to set the tools up for TP? No clue on how to get that piece done, sorry.
[/edit]
I choose to fight with a sack of angry cats.
Batch Help
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.
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.