VASSAL not compatible with java v9?

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,235
Reaction score
948
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener
at VASSAL.launch.ModuleManager.<init>(ModuleManager.java:271)
at VASSAL.launch.ModuleManager.main(ModuleManager.java:183)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.ApplicationListener
...

Looks like maybe there is a new generic API for this kind of stuff
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
714
Reaction score
439
Location
Durham
Country
llUnited Kingdom
I've attempted to convert our code which uses com.apple.eawt to use java.awt.Desktop, but I have no way of testing it. I've uploaded new builds (same filenames). What do you see now?
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,235
Reaction score
948
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
I've attempted to convert our code which uses com.apple.eawt to use java.awt.Desktop, but I have no way of testing it. I've uploaded new builds (same filenames). What do you see now?
Better!

2019-09-13 17:05:13,077 [0-main] INFO VASSAL.launch.StartUp - Starting
2019-09-13 17:05:13,084 [0-main] INFO VASSAL.launch.StartUp - OS Mac OS X 10.14.6
2019-09-13 17:05:13,085 [0-main] INFO VASSAL.launch.StartUp - Java version 12.0.2
2019-09-13 17:05:13,085 [0-main] INFO VASSAL.launch.StartUp - VASSAL version 3.2.18-svn9251
2019-09-13 17:05:13,422 [0-AWT-EventQueue-0] INFO VASSAL.launch.ModuleManager - Manager

I think the last step will be to update the VASSAL.sh file to find the correct Java version. I was launching manually from the Terminal.

I changed the final two lines of the .sh file to just read:
# fire it up
exec java -classpath Contents/Resources/Java/Vengine.jar -Dapple.awt.graphics.UseQuartz=false -Xdock:name=VASSAL -Xdock:icon=Contents/Resources/VASSAL.icns VASSAL.launch.ModuleManager "${ARGS[@]}"

and I was able to double-click but obviously some extra error trapping would be needed.

My desktop has Oracle Java8 and Oracle Java12 both installed via the Oracle installer.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
714
Reaction score
439
Location
Durham
Country
llUnited Kingdom
Better!

2019-09-13 17:05:13,077 [0-main] INFO VASSAL.launch.StartUp - Starting
2019-09-13 17:05:13,084 [0-main] INFO VASSAL.launch.StartUp - OS Mac OS X 10.14.6
2019-09-13 17:05:13,085 [0-main] INFO VASSAL.launch.StartUp - Java version 12.0.2
2019-09-13 17:05:13,085 [0-main] INFO VASSAL.launch.StartUp - VASSAL version 3.2.18-svn9251
2019-09-13 17:05:13,422 [0-AWT-EventQueue-0] INFO VASSAL.launch.ModuleManager - Manager

I think the last step will be to update the VASSAL.sh file to find the correct Java version. I was launching manually from the Terminal.
Oh, you weren't using the DMG?

This leads me to a question: Would it be odd at this point to bundle Java with VASSAL, from the point of view of someone running OS X?

I changed the final two lines of the .sh file to just read:
# fire it up
exec java -classpath Contents/Resources/Java/Vengine.jar -Dapple.awt.graphics.UseQuartz=false -Xdock:name=VASSAL -Xdock:icon=Contents/Resources/VASSAL.icns VASSAL.launch.ModuleManager "${ARGS[@]}"

and I was able to double-click but obviously some extra error trapping would be needed.

My desktop has Oracle Java8 and Oracle Java12 both installed via the Oracle installer.
I'm curious what happens if you remove "-Dapple.awt.graphics.UseQuartz=false".
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,235
Reaction score
948
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
Oh, you weren't using the DMG?

This leads me to a question: Would it be odd at this point to bundle Java with VASSAL, from the point of view of someone running OS X?
I used the VASSAL dmg after changing the .sh file. Before that it kept using Java8.
(edit) perhaps more specifically, I installed VASSAL from the dmg, but without manual edits, I could not run it unless I ran from Terminal since the .sh kept preferring Java8 to Java12.

I'm curious what happens if you remove "-Dapple.awt.graphics.UseQuartz=false".
Editing the .sh to remove that bit, it ran and looked pretty much the same.

-z
 

Will Fleming

Senior Member
Joined
Apr 22, 2003
Messages
4,410
Reaction score
424
Location
Adrift on the Pequod
Country
llUnited States
Got this working with Java11 on Linux without any trouble. Fonts/buttons look a bit big, but maybe I can play with some settings.

Will try this out in my next 'real' game of VASL with the Kwanster!


12135

3.3 also working on Linux/Windows 10 for me. Thanks!
 
Last edited:

The Rookie

Member
Joined
Nov 3, 2014
Messages
45
Reaction score
6
Location
Port Austin Michigan
Country
llUnited States
New laptop arrived today. Trying to install VASSAL and keep getting this message:
13379

Any thoughts or help? I some computer experience but not with Java

Ken
 

DougRim

Forum Guru
Joined
Apr 23, 2012
Messages
1,957
Reaction score
2,234
Location
Ottawa
Country
llCanada
Just a reminder that VASL6.6.0-beta now works with VASSAL3.3.2 which uses Java 11. For Windows, Java 11 comes bundled with VASSAL. No need to install separately. For other OS, see the VASSAL site.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
714
Reaction score
439
Location
Durham
Country
llUnited Kingdom
For Windows, Java 14 comes bundled with VASSAL. Java 11 is the minimum requirement. Otherwise this is correct.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
714
Reaction score
439
Location
Durham
Country
llUnited Kingdom
This thread could be unpinned at this point, as it's now rather out of date.
 
Top