VASSAL not compatible with java v9?

DougRim

Forum Guru
Joined
Apr 23, 2012
Messages
1,983
Reaction score
2,293
Location
Ottawa
Country
llCanada
I don't know the answer to your question but I did try to use java v9 with vassal/vasl several months ago and could not get it to work either.
 

jrv

Forum Guru
Joined
May 25, 2005
Messages
21,998
Reaction score
6,206
Location
Teutoburger Wald
Country
llIceland

SLAKslayer

Recruit
Joined
Aug 16, 2014
Messages
11
Reaction score
1
Location
victoria
Country
llAustralia
Just found this thread on VASSAL not working with new versions of java (while trying to get VASSAL working on the latest opensuse) and ive got the same problem.

I tried the java archive and the oldest version they currently show is a java9 so I guess no linux VASL for me. :-(

Tried submitting a vassal bug about it but their bug reporter doesnt work. Check the forums and they seem to know about it for years but it isnt in the docs. sigh throws hands up and goes off to play something else
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
I tried the java archive and the oldest version they currently show is a java9 so I guess no linux VASL for me. :-(
java.com is still showing Java 8.

Although I use a portable installation of Java. I think this thing of it downloading the Java installer is recent, there might be a way of doing a proper offline, portable install but it might involve a bit of stuffing around :-/

Check the forums and they seem to know about it for years but it isnt in the docs.
I agree, don't get me started :-/
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
Tried submitting a vassal bug about it but their bug reporter doesnt work. Check the forums and they seem to know about it for years but it isnt in the docs. sigh throws hands up and goes off to play something else
Knowing about it and having time to do anything about it aren't the same.

I was working on upgrading to to Java 9 last week and ran into the problem that they eliminated the sound interface we use without providing any obvious replacement. If not for that, we could do a test release.
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
Knowing about it and having time to do anything about it aren't the same.
He's talking about documenting the problem.

It's understood that you guys work on this in your spare time, for free, and the work y'all do is very much appreciated, but it would only take a few minutes to update the download page to say "requires Java 8". How many people have wasted how much time trying to get it work with Java 9 or higher (which nowadays seems to be pretty much everyone, since the LTS's seem to be upgrading)?

You and I are techies and can diagnose these kind of problems, but for most people, it's simply incomprehensible and they're going to having an appalling initial experience with VASSAL and, as SLAKslayer did, just give up and walk away. All for want of adding a single sentence to a web page :-(

And, to be honest, even though I was eventually able to figure out what the problem was, I was still pretty annoyed at having wasted so much time figuring out what was wrong, when it had already been a known issue for well over a year beforehand.

EDIT: Actually, the download page says "requires Java 5 or later", so not only does it not mention the problem, it's actively misleading :-(
 
Last edited:

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,247
Reaction score
961
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
Just found this thread on VASSAL not working with new versions of java (while trying to get VASSAL working on the latest opensuse) and ive got the same problem.

I tried the java archive and the oldest version they currently show is a java9 so I guess no linux VASL for me. :-(

Tried submitting a vassal bug about it but their bug reporter doesnt work. Check the forums and they seem to know about it for years but it isnt in the docs. sigh throws hands up and goes off to play something else
Did you try one of the resolutions listed in the forums?

-> Java 9 and Java 11 work for me on Linux after I remove lib/xercesImpl.jar.

You can also try your hand at some of the options in here:

Since you're using LINUX, making some library tweaks should be a cake.
 

jrv

Forum Guru
Joined
May 25, 2005
Messages
21,998
Reaction score
6,206
Location
Teutoburger Wald
Country
llIceland
Just found this thread on VASSAL not working with new versions of java (while trying to get VASSAL working on the latest opensuse) and ive got the same problem.

I tried the java archive and the oldest version they currently show is a java9 so I guess no linux VASL for me. :-(

Tried submitting a vassal bug about it but their bug reporter doesnt work. Check the forums and they seem to know about it for years but it isnt in the docs. sigh throws hands up and goes off to play something else
The debian testing repository has openjdk-8-jdk to openjdk-13-jdk as well as openjdk-8-jre to openjdk-13-jre. I don't know what distro of linux you are using, but you might search for openjdk in your package software. debian uses apt, and I generally use synaptic over apt unless I am doing something synaptic doesn't do the way I want to do it. Your distro's package management software may be different. You can also install java directly from java.com, but I prefer using the standard package software unless I have no alternative. That way I get updates with all the other software.

As I wrote upstream, I use update-alternatives to keep on version 8. Since the only think I use java for is vasl/vassal, I suppose I could just remove the other versions. I just haven't.

JR
 
Last edited:

von Marwitz

Forum Guru
Joined
Nov 25, 2010
Messages
14,376
Reaction score
10,269
Location
Kraut Corner
Country
llUkraine
I am using an offline installation of JAVA8 build 221 (32bit) which works.

Just some guesswork:
Could it be that some JAVA issues could (also) be related of VASSAL/VASL requiring a 32bit version?
If that is the case, then you are stuck with JAVA8. At least I think that there are no 32bit versions of JAVA 9 and 10 - or that JAVA 9 / 10 are not compatible with VASSAL/VASL.

von Marwitz
 

jrv

Forum Guru
Joined
May 25, 2005
Messages
21,998
Reaction score
6,206
Location
Teutoburger Wald
Country
llIceland
I am using an offline installation of JAVA8 build 221 (32bit) which works.

Just some guesswork:
Could it be that some JAVA issues could (also) be related of VASSAL/VASL requiring a 32bit version?
If that is the case, then you are stuck with JAVA8. At least I think that there are no 32bit versions of JAVA 9 and 10 - or that JAVA 9 / 10 are not compatible with VASSAL/VASL.
Up thread it was said that the problem is due to a formerly-optional library (xercesImpl.jar) has become part of standard java. The program gets confused when it tries to load xercesImpl.jar because the classes in it are already loaded. That STUNs it. I just removed (renamed) xercesImpl.jar from my latest vassal installation, installed java 13 and switched to it. Everything runs fine. If I restore it, vassal crashes as above. My openjdk java is 64-bit.

The good news is that I can now delete all those old versions of java.

JR
 
Last edited:

Gordon

Forum Guru
Joined
Apr 6, 2017
Messages
2,491
Reaction score
2,942
Country
llUnited States
Up thread it was said that the problem is due to a formerly-optional library (xercesImpl.jar) has become part of standard java. The program gets confused when it tries to load xercesImpl.jar because the classes in it are already loaded. That STUNs it. I just removed (renamed) xercesImpl.jar from my latest vassal installation, installed java 13 and switched to it. Everything runs fine. If I restore it, vassal crashes as above. My openjdk java is 64-bit.

The good news is that I can now delete all those old versions of java.

JR
At least the STUN didn't result in recall.
 

jrv

Forum Guru
Joined
May 25, 2005
Messages
21,998
Reaction score
6,206
Location
Teutoburger Wald
Country
llIceland
At least the STUN didn't result in recall.
My memory was not good when I was young. Now you could hit me over the head with a shovel and I wouldn't remember. Recall is not an option.

JR
 
Last edited:

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
I've been banging my head against the wall for a few weeks now to have a test build working with a version of Java newer than Java 8. Just a few minutes ago I solved the last major issue I know of, which was working around the fact that the classes we use to play sound were deprecated and then removed after Java 8.

Expect a test build sometime this week.
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,247
Reaction score
961
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
I've been banging my head against the wall for a few weeks now to have a test build working with a version of Java newer than Java 8. Just a few minutes ago I solved the last major issue I know of, which was working around the fact that the classes we use to play sound were deprecated and then removed after Java 8.

Expect a test build sometime this week.
Are we shooting for OpenJDK 12?
 

Will Fleming

Senior Member
Joined
Apr 22, 2003
Messages
4,413
Reaction score
429
Location
Adrift on the Pequod
Country
llUnited States
Well, this is some good news. I hope this frees up the creative types to take advantages of the underlying updates to Java/etc.

Looking forward to it and happy to help test (by playing). :)
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,247
Reaction score
961
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
Have not fully troubleshot yet, but com.apple.eawt.* may not be a thing anymore. Testing with Oracle's JDK 12.0.2 for OSX.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
Have not fully troubleshot yet, but com.apple.eawt.* may not be a thing anymore. Testing with Oracle's JDK 12.0.2 for OSX.
Oh gods, they didn't drop com.apple.eawt, did they? I'd like to see what you're getting for error messages.
 
Top