ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Sun May 19, 2013 3:14 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: TR and USB drive
PostPosted: Mon Jun 04, 2007 11:18 pm 
Offline

Joined: Mon May 28, 2007 4:24 pm
Posts: 5
I want to use TR on my work and home computers. While working at home, I installed TR, Jsmooth and Java 1.5 on my USB and am able to get TR to run entirely off the USB drive. When I went to work, I plugged in the USB drive and booted TR only to get a message that there was another version of my user directory in use or I had failed to close the prior session properly. I knew neither statement to be true so I clicked the OK to ignore the warning button and TR loaded but without any of the modules. All I got was a program shell. I believe that it was attempting to find Java on my work machine (my work PC has 1.4 but without success. What should I do to get it to recognize that Java is on the USB drive and run it from there? I have gone to the FAQ section and read the thread on using TR with USB drives but was at all sure that any of the thread was helpful (I am very non-geek. Do I need to write a batch file and if so how?)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 1:41 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
You can edit the etc/thinkingrock.conf file and change the line:

#jdkhome=...

delete the # and enter the path of your java installation. I think that you should be able to use a path relative to the bin directory. E.g:

jdkhome=..\..\jdk1.6.0_01

where your java dir is up two levels or

jdkhome="C:\Program Files\Java\jdk1.6.0_01"

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject: TR and USB
PostPosted: Tue Jun 05, 2007 2:44 am 
Offline

Joined: Mon May 28, 2007 4:24 pm
Posts: 5
I found the config file with no problem, saved a backup and changed the line. No dice. I tried multiple times with every single thing I could think of.

The path to my java.exe file is L: bin/java.exe. That and numerous other permutations don't work. In addition, at work my computer assigns a different drive letter. Would it help if I sent a screen shot of my directory?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 2:54 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
I think the jdkhome setting should be to the top level java dir. You would normally have something like:

C:\Program Files\Java\jdk1.6.0_01\bin\java.exe

so in the conf file you should then have:

jdkhome="C:\Program Files\Java\jdk1.6.0_01"

(NOT: jdkhome="C:\Program Files\Java\jdk1.6.0_01\bin")


Top
 Profile  
 
 Post subject: TR And USB
PostPosted: Tue Jun 05, 2007 10:49 pm 
Offline

Joined: Mon May 28, 2007 4:24 pm
Posts: 5
I'm sorry if I'm being really dense but there is no
Program File folder on my USB drive and the drive itself is designated L at home and G at work. I also do not have a file titled JDK 1.6.0_01.

Here are two lines I've tried with no success
jdkhome=L:\bin\java.exe
(Bin is a top level folder and does have java.exe in it)

jdkhome=L:\jre1.5.0_12\bin\java.exe
(jre1.5.0_12 is also a top level folder with a subfolder bin that contains java.exe.

The USB drive works fine at home (L drive) though I'm not sure which of the two java.exe it is using.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 12:37 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
I would guess that your system at home is using your home system's install of java.

Assuming your java install on the USB drive works ok, I guess that the path should be:

jdkhome="L:\"

since that is the directory above the bin dir.


Top
 Profile  
 
 Post subject: TR and USB
PostPosted: Thu Jun 07, 2007 12:41 am 
Offline

Joined: Mon May 28, 2007 4:24 pm
Posts: 5
Well I rummaged around on my machine and found a copy of Java that I thought I had deleted. I also found references to it in the Windows registry with the Java home file set as C:\Program files\JRE1.6.0.

I left the registry alone but deleted all the java files I could find on my C drive and then entered:
JDKhome=L:\

and it still didn't work. I got a warnign that I had no run time environment. I tinkered with the JDKhome line and wrote L:\Java
Still didn't work.
I then changed the registry key so that the registry identified the home directory as L:\Java
This had no effect.
At that point Java piped up and said it wanted to download an update so I directed it to the L directory and it went through the process then told me that it could not complete as the directory was invalid. It rolled itself back.
Grrrrrrrrrr.
At this time I can use TR at home but not at work. I am printing off a report each night of actions and I take that with me to work. This will do for now but its not a great solution.
I'm thinking that when I have time I should consider the following:
1. Remove Java entirely from my home computer
2. Remove all files from my USB drive (except for the GTD.trx file which I will park somewhere else.
3. Reinstall Java on the USB
4. Reinstall TR on the USB
5. Holler for help if I still can't get it to recognize Java.
If any better solutions out there, I'm all ears.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group