Where does TextPad store Java tool options?

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
BillF
Posts: 3
Joined: Thu Apr 15, 2004 7:45 pm

Where does TextPad store Java tool options?

Post 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?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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?
BillF
Posts: 3
Joined: Thu Apr 15, 2004 7:45 pm

Java Settings via Batch file?

Post 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?
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post 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]
I choose to fight with a sack of angry cats.
BillF
Posts: 3
Joined: Thu Apr 15, 2004 7:45 pm

Batch Help

Post 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.
Post Reply