starting program in Linux

Discussion of initiative tool.

Moderators: Azhrei, dorpond

Post Reply
mano82
Kobold
Posts: 2
Joined: Sat Sep 27, 2008 12:50 pm
Location: Italy

starting program in Linux

Post by mano82 »

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: Select all

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: Select all

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)

User avatar
jay
RPTools Team
Posts: 1767
Joined: Tue Feb 07, 2006 1:07 am
Location: Austin, Tx
Contact:

Post by jay »

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.

User avatar
Azhrei
Site Admin
Posts: 12050
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Post by Azhrei »

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).

mano82
Kobold
Posts: 2
Joined: Sat Sep 27, 2008 12:50 pm
Location: Italy

Post by mano82 »

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: Select all

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


errore message:

Code: Select all

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)

User avatar
jay
RPTools Team
Posts: 1767
Joined: Tue Feb 07, 2006 1:07 am
Location: Austin, Tx
Contact:

Post by jay »

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.

demonnic
Cave Troll
Posts: 53
Joined: Sun Sep 07, 2008 10:03 pm

Post by demonnic »

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)

Post Reply

Return to “InitiativeTool”