ThinkingRock Forum

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

All times are UTC




Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Having zero luck
PostPosted: Thu May 08, 2008 12:29 pm 
Offline

Joined: Sat May 03, 2008 1:15 am
Posts: 17
Location: Perth Western Australia
I installed TR 2 a few days onto a USB drive. It worked and teh program is V-E-R-Y impressive.

However, I'd like to go back to TR123 (support such as manual, tutorials and so forth). And then move to TR2 once it is finalised.

I have Java at usb drive in E:\99System\jre1.6.0_06
Ihave TR123 at usb drive in E:\99System\ThinkingRock123

However, after playing around with batch files using this thread as a guide, I'm getting nowhere. I'm assuming that Java is not functioning as I get a brief flash of a cmd shell before it closes. I get the same result on two PC's.

My current script is:
SET JAVA_HOME=\99System\jre1.6.0_06\
SET PATH=%PATH%;%JAVA_HOME%\bin
java -jar 99System\ThinkingRock123\thinking-rock-win32-1.2.3.jar

I've also tried specifying the drive letter currently assigned to the usb drive with no change in result.

I am pretty well ignorant of Java and only have very long-ago experience with batchfiles.

Can anyone direct me? Pleeeezz?


Colin


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 08, 2008 12:58 pm 
Offline

Joined: Sun Jan 13, 2008 1:39 pm
Posts: 274
I have never tried using a USB for TR, so this is a guess. You are running "java -jar 99System..." Unless you are running the batch file from the root folder should it not be "java -jar \99System..."?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 08, 2008 2:02 pm 
Offline

Joined: Sat May 03, 2008 1:15 am
Posts: 17
Location: Perth Western Australia
That got something going. I get some action in the shell, but with errors that meant not much to me. It managed to initialise and then gets into trouble, apparently looking in the directory from which I execute the batch file for stuff that is in the TR directory.

So I've moved the context to the correct directory by adding
"cd \99System\ThinkingRock123"
at the begining of the batch file and things have loaded. I've yet to do any work in it but it's looking good.

So thanks for the response JavaBob - Brief it was but it looks like that was all that was holding me back. I'll put a good word in for you to St Peter at the gate one day.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 09, 2008 12:15 am 
Offline

Joined: Sun Jan 13, 2008 1:39 pm
Posts: 274
I have not done much that was bad but I have not done much that was good, so your word with St Peter might swing it for me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 02, 2008 2:05 pm 
Offline

Joined: Mon Jun 02, 2008 1:45 pm
Posts: 3
Hi,

I have released today a portable version of ThinkingRock 2.0.1.
Please, download it from this link:
http://www.winpenpack.com/main/download.php?view.739

It works with Java "portable". You have just to copy the "bin" and "lib" java folders (from C:\Program Files\Java\jre1.XXX) into X-ThinkingRock_2.0.1_rev3\Lib\Java folder and start X-ThinkingRock.exe
All settings and registry entries will be stored in the \User\ThinkingRock directory.

I'll be glad if you try it :-)

Danix

P.S. is previewed the release of an Italian version?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 6:30 am 
Offline

Joined: Wed Jan 30, 2008 2:09 am
Posts: 6
Thanks Danix,
it seems to be working :)

But i have an error from TR :
when i switch from my desktop to my laptop, the usb drive letter change from D: to I: and i get this error "The data file could not be read. Do you want to try to restore from the latest recovery file?".
I understand why.

But is there something that i can do to solve this issue?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 9:41 am 
Offline

Joined: Mon Jun 02, 2008 1:45 pm
Posts: 3
OK, there is a problem with recent files..
I have fixed it (I hope :)).

1 - Close X-ThinkingRock;
2 - add the attached code to the X-ThinkingRock.ini file that you can find into X-ThinkingRock_2.0.1_rev3 folder;

(line 37) under:
Code:
prefs\data|"recovery.path"=%RECOVERY%|\\/"


you have to copy (at line 39) :
Code:
[StringReplace=%REGISTRY%\$AppName$.reg]
"data.file"|/User=="@ScriptDir@/|\\/
"path0"|/User=="@ScriptDir@/|\\/
"path1"|/User=="@ScriptDir@/|\\/
"path2"|/User=="@ScriptDir@/|\\/
"path3"|/User=="@ScriptDir@/|\\/
"path4"|/User=="@ScriptDir@/|\\/
"path5"|/User=="@ScriptDir@/|\\/
"path6"|/User=="@ScriptDir@/|\\/
"path7"|/User=="@ScriptDir@/|\\/
"path8"|/User=="@ScriptDir@/|\\/
"path9"|/User=="@ScriptDir@/|\\/


3 - save ALWAYS your documents in the X-ThinkingRock_2.0.1_rev3\User folder (or relative subfolders) and NOT in your hd (i.e. desktop or pc My Documents folder);
4 - start X-ThinkingRock.exe. Recent files now are saved and appear in TR menu even if you change the X-ThinkingRock path or drive letter.

-------
edit
-------

You can also replace the attached files in X-TR directory (overwriting):
http://www.winpenpack.com/main/e107_fil ... r_rev4.zip


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 12:48 pm 
Offline

Joined: Wed Jan 30, 2008 2:09 am
Posts: 6
Everything is fine now, thank you :)

Another pb appeared but i don't know if it's related to the portable version or not :
The first time i go to the Actions screen after starting TR, the bottom panel doesn't appear.
I have to switch to another screen (Projects) and come back to solve it.
I'm talking about this panel (Projects, Single Actions Action).

Should i move this to another part of the forum?
Is it related to the portable version only?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 2:20 pm 
Offline

Joined: Mon Jun 02, 2008 1:45 pm
Posts: 3
cray wrote:
The first time i go to the Actions screen after starting TR, the bottom panel doesn't appear.
I have to switch to another screen (Projects) and come back to solve it.
I'm talking about this panel (Projects, Single Actions Action).

Should i move this to another part of the forum?
Is it related to the portable version only?

Sorry, but about it I can't help you, I'm not an expert TR user.
Did you try if the normal (not portable) version has the same problem?


Top
 Profile  
 
PostPosted: Thu Jun 05, 2008 6:00 am 
Offline

Joined: Sat May 03, 2008 1:15 am
Posts: 17
Location: Perth Western Australia
I'm no expert on batch programming, even less so on Java. But I have managed to modfiy the earlier batch file which doesn't work with later versions because of some small changes to executable file names, directory sturctures. If anyone has any comments to add to the script or can take out unneccesary lines, please go ahead.

The followng works with my thumb drive installation. My TR is under the folder /99System. I have chosen to leave echo on - it comes in handy if anything goes wrong. And it's fun to see what happens when generating reports and so forth.

Naturally I acknowledge those brighter sparks who developed the earlier batch file.

========================================

CLS

:: ------------------------------------
:: SCRIPT CONFIGURATION
:: ------------------------------------

:: ThinkingRock 2 directory without leading/trailing drive letter or (back)slashes
SET TRDIR=99System\TR-2.0.1\

:: Java Runtime Environment directory without leading/trailing drive letter or (back)slashes
:: e.g. JREDIR=misc\jre1.6.0_02
:: e.g. JREDIR=jre1.6.0_02
SET JREDIR=99System\jre1.6.0_06

:: ------------------------------------
:: DO NOT EDIT ANYTHING BELOW THIS LINE
:: ------------------------------------

SET DRIVELETTER=%~d0
SET DRIVELETTER=%DRIVELETTER:"=%
SET DRIVELETTER=%DRIVELETTER:A=a%
SET DRIVELETTER=%DRIVELETTER:B=b%
SET DRIVELETTER=%DRIVELETTER:C=c%
SET DRIVELETTER=%DRIVELETTER:D=d%
SET DRIVELETTER=%DRIVELETTER:E=e%
SET DRIVELETTER=%DRIVELETTER:F=f%
SET DRIVELETTER=%DRIVELETTER:G=g%
SET DRIVELETTER=%DRIVELETTER:H=h%
SET DRIVELETTER=%DRIVELETTER:I=i%
SET DRIVELETTER=%DRIVELETTER:J=j%
SET DRIVELETTER=%DRIVELETTER:K=k%
SET DRIVELETTER=%DRIVELETTER:L=l%
SET DRIVELETTER=%DRIVELETTER:M=m%
SET DRIVELETTER=%DRIVELETTER:N=n%
SET DRIVELETTER=%DRIVELETTER:O=o%
SET DRIVELETTER=%DRIVELETTER:P=p%
SET DRIVELETTER=%DRIVELETTER:Q=q%
SET DRIVELETTER=%DRIVELETTER:R=r%
SET DRIVELETTER=%DRIVELETTER:S=s%
SET DRIVELETTER=%DRIVELETTER:T=t%
SET DRIVELETTER=%DRIVELETTER:U=u%
SET DRIVELETTER=%DRIVELETTER:V=v%
SET DRIVELETTER=%DRIVELETTER:W=w%
SET DRIVELETTER=%DRIVELETTER:X=x%
SET DRIVELETTER=%DRIVELETTER:Y=y%
SET DRIVELETTER=%DRIVELETTER:Z=z%

SET JAVA_HOME=%DRIVELETTER%\%JREDIR%
SET PATH=%JAVA_HOME%\bin;%PATH%
COPY /A %DRIVELETTER%\%TRDIR%\etc\thinkingrock.conf.template %DRIVELETTER%\%TRDIR%\etc\thinkingrock.conf > nul
ECHO jdkhome="%JAVA_HOME%" >> %DRIVELETTER%\%TRDIR%\etc\tr.conf
%DRIVELETTER%\%TRDIR%\bin\tr.exe


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 21, 2008 4:28 pm 
Offline

Joined: Sat Jun 21, 2008 4:03 pm
Posts: 10
cray wrote:
Everything is fine now, thank you :)

Another pb appeared but i don't know if it's related to the portable version or not :
The first time i go to the Actions screen after starting TR, the bottom panel doesn't appear.
I have to switch to another screen (Projects) and come back to solve it.
I'm talking about this panel (Projects, Single Actions Action).

Should i move this to another part of the forum?
Is it related to the portable version only?


My bottom panel disappears when I double click the tabs at the top of the Actions screen, and comes back when I double click the tab again. Try that. It might not be a bug . . . it might be a feature :)


Top
 Profile  
 
PostPosted: Sat Jun 21, 2008 5:19 pm 
Offline

Joined: Sat Jun 21, 2008 4:03 pm
Posts: 10
The USB version works on all my home computers, but my work computer gives me this error:

---------------------------
AutoIt Error
---------------------------
Line 0 (File "F:\Thinking Rock\X-ThinkingRock.exe"):

RunWait($regedit & ' /s /e "' & $backupfile & '" "' & $_keys[1] & '"', @WindowsDir)

Error: Unable to execute the external program.

Access is denied.
---------------------------

I imagine it's my work computer's security acting up. Any ideas?

Thank you


Top
 Profile  
 
 Post subject: Java not detected
PostPosted: Wed Jul 16, 2008 7:23 pm 
Offline

Joined: Tue Jul 15, 2008 9:34 am
Posts: 14
Hi I followed all he instructions for setting up TRv2.0.1 on my U3 USB drive and it works fine on two computers, then when I came to run it on a new computer that did not have Java RunTime yet installed it failed to run from the USB drive, despite following all the instructions and guidance on how to have my batch file and where to have my files. Any ideas what the problem might be? The error message is simply along the lines of "Java not detected on this machine" although it is on USB drive.

Thanks..
Ian


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 20, 2008 8:08 pm 
Offline

Joined: Wed Aug 20, 2008 9:57 am
Posts: 1
Hi there,
I too am having problems opening the datafile when using the USB stick on multiple computers.

1. I've downloaded the X-ThinkingRock file from Danix's helpful posting of 2 June and set it up as described.
2. I checked that the ini-file includes the lines from Danix's posting from 3 June
3. At first, everything seemed to working beautifully: I started a new datafile on my home computer (where the USB stick is at the I-drive) and could later open it on my work computer (where the USB stick is at the F-drive).
4. However, after having changed computers again, it's no longer possible to open the file on either computer: I get the following error message (similar to cray's earlier problem):

Quote:
"The data file could not be read due to the following error:
:end tag name </action> must match start tag name <done> from line 1 (position: END_TAG se... </modified></action>...@1:12914)

[I've excluded debugging info here]

Do you want to restore from the latest recovery file?"


Any ideas what might be wrong would be much appreciated!

Pete

Below is the first part of the log file:
>Log Session: Wednesday, August 20, 2008 9:38:41 PM CEST
>System Info:
Product Version = ThinkingRock 2.0.1
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_05-b13
Java Home = C:\Program\Java\jre1.6.0_05
System Locale; Encoding = sv_SE (tr); Cp1252
Home Directory = C:\Documents and Settings\Peter
Current Directory = I:\ThinkingRock\Bin\thinkingrock
User Directory = I:\ThinkingRock\User\thinkingrock\.thinkingrock\tr-2.0.1
Installation = I:\ThinkingRock\Bin\thinkingrock\tr
I:\ThinkingRock\Bin\thinkingrock\ide9
I:\ThinkingRock\Bin\thinkingrock\platform8
Boot & Ext. Classpath = tr\modules\ext\endorsed\jaxb-api.jar;C:\Program\Java\jre1.6.0_05\lib\resources.jar;C:\Program\Java\jre1.6.0_05\lib\rt.jar;C:\Program\Java\jre1.6.0_05\lib\sunrsasign.jar;C:\Program\Java\jre1.6.0_05\lib\jsse.jar;C:\Program\Java\jre1.6.0_05\lib\jce.jar;C:\Program\Java\jre1.6.0_05\lib\charsets.jar;C:\Program\Java\jre1.6.0_05\classes;C:\Program\Java\jre1.6.0_05\lib\ext\dnsns.jar;C:\Program\Java\jre1.6.0_05\lib\ext\sunjce_provider.jar;C:\Program\Java\jre1.6.0_05\lib\ext\sunmscapi.jar;C:\Program\Java\jre1.6.0_05\lib\ext\sunpkcs11.jar;tr\modules\ext\endorsed\jaxb-api.jar
Application Classpath = I:\ThinkingRock\Bin\thinkingrock\platform8\lib\boot.jar;I:\ThinkingRock\Bin\thinkingrock\platform8\lib\org-openide-modules.jar;I:\ThinkingRock\Bin\thinkingrock\platform8\lib\org-openide-util.jar
Startup Classpath = I:\ThinkingRock\Bin\thinkingrock\platform8\core\core.jar;I:\ThinkingRock\Bin\thinkingrock\platform8\core\org-openide-filesystems.jar;I:\ThinkingRock\Bin\thinkingrock\tr\core\locale\core_tr.jar
-------------------------------------------------------------------------------
INFO [tr.datastore]: Loading data started...
Failed to read data file. : end tag name </action> must match start tag name <done> from line 1 (position: END_TAG seen ...</modified></action>... @1:12914)
---- Debugging information ----
message : : end tag name </action> must match start tag name <done> from line 1 (position: END_TAG seen ...</modified></action>... @1:12914)
line number : 1
path : /data/rootProject/parent/children/actions/children/action[8]/done
cause-message : : end tag name </action> must match start tag name <done> from line 1 (position: END_TAG seen ...</modified></action>... @1:12914)
class : tr.model.Data
cause-exception : com.thoughtworks.xstream.io.StreamException
required-type : tr.model.action.Action
-------------------------------ALLVARLIG [tr.data]: Data store could not load data. The data file could not be read.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 20, 2008 9:35 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Looks like the data file no longer contains valid XML data. This could be caused by pulling out the USB key before it has finished writing. Hope that you have made a backup.


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

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