CharTool Web Launch fails

Discussion of your thoughts & requests, help for users and game specific configuration files for Character Tool

Moderators: dorpond, Azhrei

Post Reply
User avatar
God Returns
Cave Troll
Posts: 76
Joined: Wed Mar 18, 2009 3:04 am
Location: Western Massachusetts

CharTool Web Launch fails

Post by God Returns »

I popped up the program and this is what I get from WebLaunch:

Code: Select all

java.lang.UnsupportedClassVersionError: Bad version number in .class file
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:256)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1083)
	at com.sun.javaws.Launcher.run(Launcher.java:105)
	at java.lang.Thread.run(Thread.java:613)
My Java is up to date (Macs auto-update Java), so I'm not sure what the problem may be.

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

Re: CharTool Web Launch fails

Post by Azhrei »

You're running Tiger which means only Java 5. CharTool and DiceTool require Java 6.

You're out of luck until you pay for the upgrade to Leopard. :(

(Well, you could go to the open source SoyLatte for the Mac, as it provides Java 6 compatibility on OSX. But it doesn't have the Aqua L&F. And I've run it myself for testing purposes and it has a couple of other glitches. If you search here for SoyLatte you'll find my other posts on this topic.)

User avatar
God Returns
Cave Troll
Posts: 76
Joined: Wed Mar 18, 2009 3:04 am
Location: Western Massachusetts

Re: CharTool Web Launch fails

Post by God Returns »

I'm running in Leopard..
Image

Teegan
Kobold
Posts: 4
Joined: Sun May 24, 2009 12:22 am

Re: CharTool Web Launch fails

Post by Teegan »

Won't run for me either. I'm also running leopard and I get

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.5+" codebase="http://download.rptools.net/">
<information>
<title>RPTools InitTool</title>
<vendor>http://download.rptools.net/</vendor>
<icon href="http://www.rptools.net/images/logo/RPTo ... _403.png"/>
<offline-allowed/>
<shortcut online="false">
<desktop />
<menu submenu="RPTools" />
</shortcut>
</information>

<security>
<all-permissions />
</security>

<resources>
<j2se version="1.5+" java-vm-args="-Xmx812m -Xms64m -Xss6m"/>
<jar href="lib.php/initiativetool-1.1.b6.jar" />
<jar href="lib.php/abeille-formsrt-2.0.jar" />
<jar href="lib.php/antlr-2.7.6.jar" />
<jar href="lib.php/chartool-0.1.b10.jar" />
<jar href="lib.php/dicelib-1.0.b16.jar" />
<jar href="lib.php/h2-1.0.68.jar" />
<jar href="lib.php/jide-common.1.9.4.09.jar" />
<jar href="lib.php/jide-grids.1.9.4.09.jar" />
<jar href="lib.php/parser-1.0.b15.jar" />
<jar href="lib.php/renderpack-1.2004.jar" />
<jar href="lib.php/rplib-1.0.b112.jar" />
<jar href="lib.php/tinylaf.jar" />
<jar href="lib.php/withay-util.jar" />
<jar href="lib.php/xpp3_min-1.1.3.4.O.jar" />
<jar href="lib.php/xstream-1.2.1.jar" />
</resources>
<application-desc main-class="net.rptools.inittool.InitTool">
<argument>${java.launch.args}</argument>
</application-desc>
</jnlp>

The error at the top says "java.lang.UnsopportedClassVersionError: Bad version number in .class file

Same happens for the Init Tool.

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

Re: CharTool Web Launch fails

Post by Azhrei »

As documented on the CharacterTool and InitiativeTool pages, these two tools require Java 6 to run, not Java 5.

I believe that in Leopard, the user has to choose which version they want to use, but I don't have Leopard so I can't describe how that choice is made.

(I'll add the note about Java 5 vs. Java 6 on the Launch page itself.)

User avatar
heyes
Giant
Posts: 142
Joined: Thu Apr 23, 2009 7:22 am

Re: CharTool Web Launch fails

Post by heyes »

Azhrei wrote:As documented on the CharacterTool and InitiativeTool pages, these two tools require Java 6 to run, not Java 5.

I believe that in Leopard, the user has to choose which version they want to use, but I don't have Leopard so I can't describe how that choice is made.

(I'll add the note about Java 5 vs. Java 6 on the Launch page itself.)

Leopard user here: We don't explicitly have a choice, we get Java 6. Perhaps there is some way, such as soylatte mochachino as described below, but sadly no we don't explicitly get to choose Java 6.

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

Re: CharTool Web Launch fails

Post by Azhrei »

Yes, you do. It's buried in the Java Control Panel, but I don't know where that is on Leopard.

On my Tiger system I can look in Applications, Utilities, Java, and then double-click on the Java WebStart which brings up a dialog. In the Preferences for that application, there is a dialog that allows the user to drag items in a listbox to determine what the preferred order of versions are that should be checked. (This is the same preferences that come up with I go into the J2SE 5.0 subfolder and double-click on Preferences, but I chose not to use that approach since it implies Java 5.)

However, the CharTool and initTool JNLP files should be specifying 1.6+ and not 1.5+, so that's a bug in the JNLP. I'll check the web site and get that fixed.

Teegan
Kobold
Posts: 4
Joined: Sun May 24, 2009 12:22 am

Re: CharTool Web Launch fails

Post by Teegan »

Azhrei wrote:Yes, you do. It's buried in the Java Control Panel, but I don't know where that is on Leopard.
Okay, I went into Applications>Utilities>Java and saw an app called Java Preferences. I ran that and there is a way to switch to Java (SE) 6. By default it runs Java 5 first and then goes through a list of other Java. 6 being second. You can change this by dragging the Java versions into the load order you want. So I did this. Now both the weblaunch and the downloadables go as far as a splashscreen and that is it. At least I got that far. Nothing else happens. The programs don't run past the splashscreen. It's as if they just quit.

Teegan
Kobold
Posts: 4
Joined: Sun May 24, 2009 12:22 am

Re: CharTool Web Launch fails

Post by Teegan »

Oh, and before you ask. I've tried to go to the java site and download a newer version, but whenever I do I just get a dialog saying to use Software Update for Java.

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

Re: CharTool Web Launch fails

Post by Azhrei »

In the HowTo forum is a sticky that describes how to turn on various error reporting features. We'll need to see that to help any further as your description of the problem is a bit .. "vague"? :)

Teegan
Kobold
Posts: 4
Joined: Sun May 24, 2009 12:22 am

Re: CharTool Web Launch fails

Post by Teegan »

Azhrei wrote:In the HowTo forum is a sticky that describes how to turn on various error reporting features. We'll need to see that to help any further as your description of the problem is a bit .. "vague"? :)
This is what I got when trying to run CharTool. I had to be quick because the console quit as soon as the program did:

Code: Select all

Java Web Start 1.6.0_07
Using JRE version 1.6.0_07 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/Hawk
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
TinyLaF v1.3.04
'Default.theme' not found - using YQ default theme.
Does this help?

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

Re: CharTool Web Launch fails

Post by Azhrei »

Weird. There's no error message there.

The only thing I can think of is to completely uninstall Java, reboot (to clear any DLLs from RAM), then install Java again by visiting http://java.com/

Should only take 5-10 minutes, but I don't have any other suggestions. Sorry.

mond
Kobold
Posts: 1
Joined: Fri Jun 12, 2009 12:45 am

Re: CharTool Web Launch fails

Post by mond »

is there really no way to get 10.4 to run CharTool?

I am rather frustrated about that :(

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

Re: CharTool Web Launch fails

Post by Azhrei »

mond wrote:is there really no way to get 10.4 to run CharTool?

I am rather frustrated about that :(
Yep, I feel your pain. Complain to Apple as they need to provide an updated Java for Tiger folks.

(You could try SoyLatte, a version of Java 6 for OSX. But it's not for the faint of heart.)

Post Reply

Return to “CharacterTool”