Changing where Compile Java look for multiple users

Using the Java SDK with TextPad

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

Post Reply
dbrickman
Posts: 3
Joined: Fri Jan 09, 2004 9:21 pm

Changing where Compile Java look for multiple users

Post by dbrickman »

First we upgraded to JDK 1.4.0
We were getting a error “C:\WINNT\System32\javac.exe this system cannot find the file specified� We fixed this by editing the Compile Java path and pointed it to our new javac.exe, Works great.

My problem is we have multiple unknown students’ login and for each student the Compile and run path need to be changed. I found a way to do this with login script and edit the registry or changing the default profile witch would take us a long time, there’s got to be an easier way.

Any ideas?

Thanks
Dan
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Did you look at http://www.textpad.com/support/faq/java.html ,
esp "Why can't TextPad find Javac.exe?" and "How does TextPad locate the JDK programs?"? HTH
Then I open up and see
the person fumbling here is me
a different way to be
dbrickman
Posts: 3
Joined: Fri Jan 09, 2004 9:21 pm

Post by dbrickman »

Yes, When I when in to configure/Preferences/Tools and remade the JDK commands for Compile and Run it works great but just for that user. Any other user that logs in to that computer it also needs to be changed. I’m dealing with students that have a hard enough time doing there homework and don’t want to have them change this every time they log in to a different computer. As for the java registry keys they look to be right according to the help files.

Thanks
Dan
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Just to keep us busy until the gurus at Helios drop in ;)
When you install TP on a machine, do you use the Administrator user
and install for all users? Don't remember if this is an option in the TP install. HTH
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I am not a Java person (don't even drink coffee), but this approach has frequently worked for similar products with multiple user issues.

:idea: Have you tried making a batch file to call Java? In the batch file you could pass a %1 parameter to pick up their user ID from the environment and use that to define the path. Have the TextPad tool call the batch file vs. calling java directly?
Hope this was helpful.............good luck,
Bob
dbrickman
Posts: 3
Joined: Fri Jan 09, 2004 9:21 pm

Post by dbrickman »

I believe so… but I’m not 100% sure I didn’t do the install. I’m sure it was done through the local administrator account and not a domain user. Is this what you mean? Or is there some option during install I need to look at. I’m looking at about 50 or more computers and don’t really want to go around and uninstall and reinstall... although it is an option.
Post Reply