Page 1 of 1
Changing where Compile Java look for multiple users
Posted: Wed Jan 14, 2004 2:23 pm
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
Posted: Wed Jan 14, 2004 2:43 pm
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
Posted: Wed Jan 14, 2004 3:04 pm
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
Posted: Wed Jan 14, 2004 3:48 pm
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
Posted: Wed Jan 14, 2004 4:36 pm
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.

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?
Posted: Wed Jan 14, 2004 4:39 pm
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.