ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Wed Jun 19, 2013 1:47 am

All times are UTC




Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Tue Jan 09, 2007 1:42 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
When downloading and installing Java I pointed to the USB drive as the target for the installation. The directory looks like this:

G:\Program Files\Java\jre1.5.0_10\bin
G:\Program Files\Java\jre1.5.0_10\lib

Java.exe can be found in the first directory above. (Sorry, don't know how to cut and past a picture of the directories.)

In my last post you can see that somehow the path gets pointed to the C: drive. Not sure why.

A post in another thread states that it is not possible to run on Windows without Java being installed on the Windows machine (http://thinkingrock.com.au/forum/viewtopic.php?t=54) (User Tips, Question re: portability).

Hopefully someone has had success in running completely from a USB drive!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 2:07 pm 
Offline

Joined: Thu Dec 21, 2006 2:25 am
Posts: 5
Try this:

SET JAVA_HOME=\Program Files\Java\jre1.5.0_10
SET PATH=%PATH%;%JAVA_HOME%\bin
java -jar thinking-rock-win32-1.2.3.jar

If that does not work, try hard coding the drive letter in to the JAVA_HOME variable:

SET JAVA_HOME=G:\Program Files\Java\jre1.5.0_10
SET PATH=%PATH%;%JAVA_HOME%\bin
java -jar thinking-rock-win32-1.2.3.jar

If this also fails, try this:

SET JAVA_HOME=G:\Program Files\Java\jre1.5.0_10
%JAVA_HOME%\bin\java -jar thinking-rock-win32-1.2.3.jar

Seems like one of these should work. 8)

Thanks,
Bobby


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 3:05 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Thanks again, but still no go! Tried all three options. For the first two, I get the path redirected to another drive.....C:\Program Files\Documentum\Shared:C\Oracle.....etc. (I don't know how to paste the results here). It then returns the same message as before, that 'java' is not recognized as an internal or external command, operable program or batch file.

For the last option it returns that "G:\Program' is not recognized as an internal or external command, operable program or batch file.

:(

Still hoping!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 9:25 am 
Offline

Joined: Tue Jan 02, 2007 10:34 am
Posts: 10
Location: Munich, Germany
Jdp,

If you get

Quote:
G:\Program' is not recognized


i think you have a problem because of the space in your directory "program files"

You should change to e.g.:

G:\PROGRA~1\Java\jdk1.5.0;

or simply avoid spaces in in your path! you shouldn´t use "program files" at all. Do it as easy as possible.

Quote:
I get the path redirected to another drive.....C:\Program Files\Documentum\Shared:C\Oracle.....etc.


That´s ok, because you just added the path to Java VM to the original path.

Check that by

echo path

in the dos shell. If it includes the path to the Java VM, it is ok. if
it stops at "G:\Program", you have found the problem.

I am quite sure the space in your directory path is your problem.

cu,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 1:51 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Chris,

Thanks again for the tip. Removed the space in the directory and it still does not work. I get the message now that "G:\ProgramFiles\Java\jre1.5.0_10 is not recognized as an internal or external command, operable program or batch file."

Maybe as the post in the other thread states, it will not work on a Windows machine that does not have Java installed. Just to confirm, have you been able to make it work exclusively from the USB?

Don't want to give up yet, but it looks like I may have to.

Thanks,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 3:22 pm 
Offline

Joined: Tue Jan 02, 2007 10:34 am
Posts: 10
Location: Munich, Germany
JDP,

Quote:
Just to confirm, have you been able to make it work exclusively from the USB?


yes it runs from the usb drive on a windows xp machine without java on the host-machine.

I just use this batch-file:

SET JAVA_HOME=\jre1.5.0_10
SET PATH=%PATH%;%JAVA_HOME%\bin
java -jar thinking-rock-win32-1.2.3.jar

Your problem is, that java could not be found. Maybe its something wrong with the batch-file.

What happens, if you switch to G:\ProgramFiles\Java\jre1.5.0_10\bin
and then type java <return>?

Does java react?

Try to switch to the bin directory and then try:

java -jar G:\ProgramFiles\ThinkingRock\thinking-rock-win32-1.2.3.jar

cu,
chris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 4:06 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Chris,

Getting closer! Java does react. When I tried your last suggestion....java -jar g:\programfiles\thinkingrock\thinking-rock-win32-1.2.3.jar....at first I got some error messages looking for files in the \bin directory. I copied the TR files into new directories I created in the \bin directory and got the application to launch!

When it launched, I got TR errors. Looking for image files and so forth. I didn't think I should start copying all those files into the \bin directory as well. So, I'm not quite there but it is looking promising. I really know nothing about Java or batch files. Hoping that you or someone else can help me based on the results I have detailed here (hopefully I have explained it clear enough). I created the new directories in the \bin directory just to see if I could get it to launch. I don't think that is the appropriate solution.

Thanks again,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 7:02 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Chris,

Can you please show me how you have your directories set up on your USB drive?

Best regards,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 8:11 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Got it to run! Not very elegantly though. I changed the thinking-rock.bat file to this:

SET PATH=%PATH%;%JAVA_HOME%\bin
SET JAVA_HOME=G:\ProgramFiles\Java\jre1.5.0_10
java -jar G:\ProgramFiles\ThinkinRock\thinking-rock-win32-1.2.3.jar

not sure why, as I said I don't know much about this. It does not execute by double clicking. Executing it from the command line also returns an error. Executing it a second consecutive time from the command line launches the program. It runs fine. Not sure why. Is there a way to clean this up to run by just double clicking? Or at least by executing it only once from the command line? Not really comfortable executing it twice to make it run!

Thanks again for the help!

Best regards,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 8:25 am 
Offline

Joined: Tue Jan 02, 2007 10:34 am
Posts: 10
Location: Munich, Germany
jdp,

Quote:
SET PATH=%PATH%;%JAVA_HOME%\bin
SET JAVA_HOME=G:\ProgramFiles\Java\jre1.5.0_10
java -jar G:\ProgramFiles\ThinkinRock\thinking-rock-win32-1.2.3.jar


you just have to switch the first two lines, then you are done.

If you start this batch file the first time, the PATH statement does not know the JAVA_HOME Path. The second time it works, because the SET statement set JAVA_Home to the proper directory. So just switch the first two lines.

Congrats,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 12:38 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Chris,

That works! Thanks again!

So to run I always have to execute this file and have the command window open, correct?

Why can't it run by executing the jar file?

Best regards,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 1:03 pm 
Offline

Joined: Tue Jan 02, 2007 10:34 am
Posts: 10
Location: Munich, Germany
jdp,

you can start the batch file directly from the desktop or from explorer, you
dont need to open a cmd-Window.

You can not execute the jarfile without the batch-file because you have to tell the system, where it can find Java. Thats what the batch file does.

Enjoy thinkingrock!

cu,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 2:02 pm 
Offline

Joined: Wed Jan 03, 2007 4:36 pm
Posts: 16
Chris,

Thanks. That works just fine, however the "Command line" window remains open as long as I am running TR. I keep it minimized, but is there a way that I can avoid seeing it at all?

Best regards,
JDP


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 2:13 pm 
Offline

Joined: Tue Jan 02, 2007 10:34 am
Posts: 10
Location: Munich, Germany
jdp,

it´s ok that the window is open. it is, as it should be.

mfg,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 28, 2007 11:56 pm 
Offline

Joined: Sun Jan 28, 2007 11:53 pm
Posts: 11
Starts up fine by using

F:\J\jre1.5.0\bin\java.exe -jar thinking-rock-win32-1.2.3.jar

You might need to change the F to what ever drive you need


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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