RPTools.net

Discussion and Support

Skip to content

It is currently Thu Nov 23, 2017 4:25 am 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Sat Sep 27, 2008 11:50 am
Posts: 2
Location: Italy
 Post subject: starting program in Linux
PostPosted: Sat Sep 27, 2008 12:03 pm 
hi all,

i have a little problem starting the initiative tool on linux. in fact, neither chartool starts. i can start only the dicetool.

when i launch the program, i can see the RPTools logo and starting window with progress bar, then it freezes for about 1-2 seconds at 75% progress, then it print in the terminal the message below.

if you have a solution please be very descriptive, because i'm a real linux noob...i've just begun using it and i have to learn a lot about it...
thank you.

my linux distro is OpenSuse 10.
my java is:
java version "1.6.0"
IcedTea Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)


i start the program using this command:
Code:
java -Xmx128M -jar chartool-*.jar run
(note, javaw won't work)
i use the same command for dicetool and it works fine, except for the TinyLaF error.

the error i get is:
Code:
TinyLaF v1.3.04
'Default.theme' not found - using YQ default theme.
27-set-2008 18.49.07 net.rptools.chartool.model.property.AbstractEngineScript <clinit>
INFO: Default JavaScript is not available
java.lang.IllegalArgumentException: Unknown Script type: JavaScript
        at net.rptools.chartool.model.property.AbstractEngineScript.getEngine(AbstractEngineScript.java:180)
        at net.rptools.chartool.model.property.AbstractEngineScript.<clinit>(AbstractEngineScript.java:114)
        at net.rptools.chartool.model.property.AbstractScript.<init>(AbstractScript.java:86)
        at net.rptools.chartool.model.property.InvokableScript.<init>(InvokableScript.java:79)
        at net.rptools.chartool.model.property.AbstractScript.createScript(AbstractScript.java:196)
        at net.rptools.chartool.model.property.PropertySettingsFile.getNamedScripts(PropertySettingsFile.java:549)
        at net.rptools.chartool.model.property.PropertySettingsFile.loadPropertySettings(PropertySettingsFile.java:685)
        at net.rptools.chartool.model.CharToolSettingsFile.loadCharToolGameSettings(CharToolSettingsFile.java:136)
        at net.rptools.chartool.model.CharToolSettingsFile.installCharToolGameSettings(CharToolSettingsFile.java:127)
        at net.rptools.chartool.model.CharToolGameSettings.installGameSettings(CharToolGameSettings.java:274)
        at net.rptools.chartool.CharTool.loadSettings(CharTool.java:144)
        at net.rptools.chartool.CharTool.main(CharTool.java:87)
27-set-2008 18.49.07 net.rptools.chartool.model.property.AbstractEngineScript <clinit>
GRAVE: rhino-nonjdk is not available
java.lang.IllegalArgumentException: Unknown Script type: rhino-nonjdk
        at net.rptools.chartool.model.property.AbstractEngineScript.getEngine(AbstractEngineScript.java:180)
        at net.rptools.chartool.model.property.AbstractEngineScript.<clinit>(AbstractEngineScript.java:119)
        at net.rptools.chartool.model.property.AbstractScript.<init>(AbstractScript.java:86)
        at net.rptools.chartool.model.property.InvokableScript.<init>(InvokableScript.java:79)
        at net.rptools.chartool.model.property.AbstractScript.createScript(AbstractScript.java:196)
        at net.rptools.chartool.model.property.PropertySettingsFile.getNamedScripts(PropertySettingsFile.java:549)
        at net.rptools.chartool.model.property.PropertySettingsFile.loadPropertySettings(PropertySettingsFile.java:685)
        at net.rptools.chartool.model.CharToolSettingsFile.loadCharToolGameSettings(CharToolSettingsFile.java:136)
        at net.rptools.chartool.model.CharToolSettingsFile.installCharToolGameSettings(CharToolSettingsFile.java:127)
        at net.rptools.chartool.model.CharToolGameSettings.installGameSettings(CharToolGameSettings.java:274)
        at net.rptools.chartool.CharTool.loadSettings(CharTool.java:144)
        at net.rptools.chartool.CharTool.main(CharTool.java:87)


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject:
PostPosted: Sun Sep 28, 2008 4:16 am 
Welcome mono82!

It appears that the distribution of Java 6 that you are using doesn't have the Java Script support libraries from Sun included. Follow this link to install the rhino engine and allow IT to access it instead.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12103
Location: Tampa, FL
 Post subject:
PostPosted: Sun Sep 28, 2008 5:20 pm 
OpenJDK is not the Sun release. I suppose it might work, but if you're on a 64-bit OS, be aware that the 64-bit OpenJDK currently has bugs that prevent it from working with MapTool as well.

It might be that jay's recommendation to install the scripting engine is all that will be needed. If not, consider getting Java 6 directly from Sun's web site (it will have the scripting engine pre-installed).


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Sep 27, 2008 11:50 am
Posts: 2
Location: Italy
 Post subject:
PostPosted: Mon Sep 29, 2008 12:21 pm 
it seems the errors augmented... :?

i've unzipped the jsr223-engines, i've unzipped the rhino files, and launched the IT with this command from inside the IT folder:

Code:
java
 -classpath ../Documents/ [...] /jsr223/javascript/build/js-engine.jar:../Documents/ [...] /rhino/rhino1_6R7/js.jar -Xmx128M -jar initiativetool-*.jar run


errore message:
Code:
TinyLaF v1.3.03
'Default.theme' not found - using YQ default theme.
29-set-2008 19.16.31 net.rptools.chartool.model.property.AbstractEngineScript <clinit>
INFO: Default JavaScript is not available
java.lang.IllegalArgumentException: Unknown Script type: JavaScript
        at net.rptools.chartool.model.property.AbstractEngineScript.getEngine(AbstractEngineScript.java:180)
        at net.rptools.chartool.model.property.AbstractEngineScript.<clinit>(AbstractEngineScript.java:114)
        at net.rptools.chartool.model.property.AbstractScript.<init>(AbstractScript.java:86)
        at net.rptools.chartool.model.property.InvokableScript.<init>(InvokableScript.java:79)
        at net.rptools.chartool.model.property.AbstractScript.createScript(AbstractScript.java:196)
        at net.rptools.chartool.model.property.PropertySettingsFile.getNamedScripts(PropertySettingsFile.java:549)
        at net.rptools.chartool.model.property.PropertySettingsFile.loadPropertySettings(PropertySettingsFile.java:685)
        at net.rptools.inittool.model.InitToolSettingsFile.loadInitToolGameSettings(InitToolSettingsFile.java:221)
        at net.rptools.inittool.model.InitToolGameSettings.loadGameSettings(InitToolGameSettings.java:652)
        at net.rptools.inittool.InitTool.loadSettings(InitTool.java:159)
        at net.rptools.inittool.InitTool.main(InitTool.java:87)
29-set-2008 19.16.31 net.rptools.chartool.model.property.AbstractEngineScript <clinit>
GRAVE: rhino-nonjdk is not available
java.lang.IllegalArgumentException: Unknown Script type: rhino-nonjdk
        at net.rptools.chartool.model.property.AbstractEngineScript.getEngine(AbstractEngineScript.java:180)
        at net.rptools.chartool.model.property.AbstractEngineScript.<clinit>(AbstractEngineScript.java:119)
        at net.rptools.chartool.model.property.AbstractScript.<init>(AbstractScript.java:86)
        at net.rptools.chartool.model.property.InvokableScript.<init>(InvokableScript.java:79)
        at net.rptools.chartool.model.property.AbstractScript.createScript(AbstractScript.java:196)
        at net.rptools.chartool.model.property.PropertySettingsFile.getNamedScripts(PropertySettingsFile.java:549)
        at net.rptools.chartool.model.property.PropertySettingsFile.loadPropertySettings(PropertySettingsFile.java:685)
        at net.rptools.inittool.model.InitToolSettingsFile.loadInitToolGameSettings(InitToolSettingsFile.java:221)
        at net.rptools.inittool.model.InitToolGameSettings.loadGameSettings(InitToolGameSettings.java:652)
        at net.rptools.inittool.InitTool.loadSettings(InitTool.java:159)
        at net.rptools.inittool.InitTool.main(InitTool.java:87)


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject:
PostPosted: Mon Sep 29, 2008 12:54 pm 
It is still not finding the JavaScript libraries. I'm not sure why. The command you posted looks correct assuming that there aren't any spaces in it. I'm not sure what else to suggest other than checking to make sure the classpath is valid or installing the Sun JVM. I don't have access to a Linux box so I'm kinda stuck.


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Sun Sep 07, 2008 9:03 pm
Posts: 56
 Post subject:
PostPosted: Mon Sep 29, 2008 2:03 pm 
Honestly, I find it best to install the Sun JDK. I tried the icedtea java implementation for awhile, and there were several things which broke, so I just tossed them. If you get the free JDK from Sun, than the entire RPTools line of tools runs fine in linux (I'm using Ubuntu 8.04 but have also tested it in gentoo and fedora core 9)


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

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:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman