Create account / Log in

Ubuntu install problem

Issues with the Vassal engine.

Moderators: uckelman, Tim M

Ubuntu install problem

Postby RoyTheBoy » April 21st, 2014, 10:19 am

Hi guys,
I just downloaded VASSAL-3.2.11-linux.tar.bz2
I unpacked it but when I try and run VASSAL.sh i get this message
Could not find or load main class VASSAL.launch.ModuleManager

I'm running Ubuntu 13.10
I do have java installed
'which java' returns
/usr/bin/java

and
'java -version' returns
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)


any help please

Roy
RoyTheBoy
 
Posts: 4
Joined: April 21st, 2014, 10:13 am

Re: Ubuntu install problem

Postby uckelman » April 21st, 2014, 10:40 am

Thus spake RoyTheBoy:
> [This message has been edited.]
>
> Hi guys,
> I just downloaded VASSAL-3.2.11-linux.tar.bz2
> I unpacked it but when I try and run VASSAL.sh i get this message
> Could not find or load main class VASSAL.launch.ModuleManager
>
> I'm running Ubuntu 13.10
> I do have java installed
> 'which java' returns
> /usr/bin/java
>
> and
> 'java -version' returns
> java version "1.7.0_51"
> OpenJDK Runtime Environment (IcedTea 2.4.4)
> (7u51-2.4.4-0ubuntu0.13.10.1)
> OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
>
>
> any help please

Does lib/Vengine.jar exist? (This path is relative to the directory
where VASSAL.sh is.)

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby RoyTheBoy » April 21st, 2014, 11:00 am

There is no lib directory
there is a Vengine.jar in the root directory I unpacked to, so its in the same directory as VASSAL.sh
RoyTheBoy
 
Posts: 4
Joined: April 21st, 2014, 10:13 am

Re: Ubuntu install problem

Postby RoyTheBoy » April 21st, 2014, 11:07 am

OK so that was enough of a pointer to help me. Thanks
I let Chrome download and unpack it
By just downloading it and manually unpacking with
tar -xf VASSAL-3.2.11-linux.tar.bz2
the correct directory structure was created and it works

Thanks again, I'm off to 'take the tour'
RoyTheBoy
 
Posts: 4
Joined: April 21st, 2014, 10:13 am

Re: Ubuntu install problem

Postby Rapha » May 5th, 2014, 1:30 pm

I have the same thing than Roy, BUT : Vengine.jar is in the correct lib.

java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Server VM (build 24.55-b03, mixed mode)
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Re: Ubuntu install problem

Postby uckelman » May 5th, 2014, 2:35 pm

Thus spake Rapha:
> I have the same thing than Roy, BUT : Vengine.jar is in the correct lib.
>
> java version "1.7.0_55"
> Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
> Java HotSpot(TM) Server VM (build 24.55-b03, mixed mode)
>

Change the first line of VASSAL.sh to:

#!/bin/bash -ex

Then run it and show us the output.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby Rapha » May 6th, 2014, 8:14 am

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Re: Ubuntu install problem

Postby uckelman » May 15th, 2014, 11:47 am

Thus spake Rapha:
> Exception: java.lang.NoClassDefFoundError thrown from the
> UncaughtExceptionHandler in thread "main"
>

Are you sure that was all the output? The '-ex' options to bash should
have caused more output to be printed than that.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby Rapha » May 16th, 2014, 1:17 pm

yes sorry here it is:

+++ readlink VASSAL.sh
+++ echo VASSAL.sh
++ dirname VASSAL.sh
+ INSTALL_DIR=.
+ cd .
+ java -classpath lib/Vengine.jar VASSAL.launch.ModuleManager

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Re: Ubuntu install problem

Postby uckelman » May 20th, 2014, 8:42 pm

Thus spake Rapha:
> yes sorry here it is:
>
> +++ readlink VASSAL.sh
> +++ echo VASSAL.sh
> ++ dirname VASSAL.sh
> + INSTALL_DIR=.
> + cd .
> + java -classpath lib/Vengine.jar VASSAL.launch.ModuleManager
>
> Exception: java.lang.NoClassDefFoundError thrown from the
> UncaughtExceptionHandler in thread "main"
>

It's very strange if you're not getting more output than that. There
ought to be a several-line stack trace accompanying the Exception
message.

What's in the lib directory with Vengine.jar?

Does ~/.VASSAL exist? If so, is there an errorLog file in it? If so,
post the contents of the errorLog here.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby Rapha » May 20th, 2014, 10:40 pm

so i have this:
:~/VASSAL-3.2.11/lib$ dir
licenses

batik-anim.jar batik-gui-util.jar batik-util.jar janino.jar slf4j-api-1.7.6.jar Vengine.jar
batik-awt-util.jar batik-gvt.jar batik-xml.jar java-getopt-1.0.13.jar smack.jar wizard.jar
batik-bridge.jar batik-parser.jar BrowserLauncher2-1_3.jar jl1.0.1.jar smackx-debug.jar xalan-2.6.0.jar
batik-codec.jar batik-script.jar commons-codec-1.6.jar smackx.jar xercesImpl.jar
batik-css.jar batik-svg-dom.jar commons-compiler.jar logback-classic-1.1.1.jar swing-layout-1.0.3.jar xml-apis-ext.jar
batik-dom.jar batik-svggen.jar commons-io-1.4.jar logback-core-1.1.1.jar swing-worker-1.2.jar xml-apis.jar
batik-extension.jar batik-swing.jar commons-lang-2.5.jar miglayout-core-4.2.jar swingx-0.9.4.jar
batik-ext.jar batik-transcoder.jar guava-r06.jar miglayout-swing-4.2ju.jar TimingFramework-1.0.jar


no other thing
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Re: Ubuntu install problem

Postby uckelman » May 21st, 2014, 7:32 am

Thus spake Rapha:
> so i have this:
> :~/VASSAL-3.2.11/lib$ dir
> batik-anim.jar batik-gui-util.jar batik-util.jar
> janino.jar slf4j-api-1.7.6.jar Vengine.jar
> batik-awt-util.jar batik-gvt.jar batik-xml.jar
> java-getopt-1.0.13.jar smack.jar wizard.jar
> batik-bridge.jar batik-parser.jar BrowserLauncher2-1_3.jar
> jl1.0.1.jar smackx-debug.jar xalan-2.6.0.jar
> batik-codec.jar batik-script.jar commons-codec-1.6.jar
> licenses smackx.jar xercesImpl.jar
> batik-css.jar batik-svg-dom.jar commons-compiler.jar
> logback-classic-1.1.1.jar swing-layout-1.0.3.jar xml-apis-ext.jar
> batik-dom.jar batik-svggen.jar commons-io-1.4.jar
> logback-core-1.1.1.jar swing-worker-1.2.jar xml-apis.jar
> batik-extension.jar batik-swing.jar commons-lang-2.5.jar
> miglayout-core-4.2.jar swingx-0.9.4.jar
> batik-ext.jar batik-transcoder.jar guava-r06.jar
> miglayout-swing-4.2ju.jar TimingFramework-1.0.jar

It looks like all of the JARs are present.

> no other thing

To which of the other questions are you saying 'no'?

1) Does ~/.VASSAL exist?
2) If so, is there an errorLog file in it?

Please add '-verbose' to the invocation of java in VASSAL.sh:

java -verbose -classpath lib/Vengine.jar VASSAL.launch.ModuleManager

What output do you get when you run VASSAL.sh now?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby Rapha » May 21st, 2014, 10:22 am

no i haven't ~/.VASSAL and so no errorLog.

I do -verbose and... here is the last ten results lines (after a lot of)

[Loaded VASSAL.launch.PlayerWindow from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]
[Loaded VASSAL.tools.image.ImageTileSource from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]
[Loaded VASSAL.command.Command from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]
[Loaded VASSAL.command.NullCommand from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]
[Loaded javax.swing.JPanel from /opt/java/32/jre1.7.0_51/lib/rt.jar]
[Loaded VASSAL.counters.GamePiece from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]
[Loaded VASSAL.tools.ErrorDialog$1 from file:/home/raphaelle/VASSAL-3.2.11/lib/Vengine.jar]

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
[Loaded java.lang.Shutdown from /opt/java/32/jre1.7.0_51/lib/rt.jar]
[Loaded java.lang.Shutdown$Lock from /opt/java/32/jre1.7.0_51/lib/rt.jar]
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Re: Ubuntu install problem

Postby uckelman » May 21st, 2014, 11:02 am

Thus spake Rapha:
> no i haven't ~/.VASSAL and so no errorLog.

Are you certain that ~/.VASSAL doesn't exist? (Please check with
'ls -la ~'.) Given the classes which are being loaded by your JVM,
I don't see how it could fail to.

> I do -verbose and... here is the last ten results lines (after a lot of)

Please post the complete output.
--
J.
User avatar
uckelman
Site Admin
 
Posts: 8798
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Ubuntu install problem

Postby Rapha » May 21st, 2014, 5:50 pm

:~/VASSAL-3.2.11/lib$ ls -la
total 15732
drwxr-xr-x 3 raphaelle raphaelle 4096 févr. 14 23:35 .
drwxr-xr-x 4 raphaelle raphaelle 4096 mai 21 12:12 ..
-rw-r--r-- 1 raphaelle raphaelle 69165 avril 6 2013 batik-anim.jar
-rw-r--r-- 1 raphaelle raphaelle 282601 avril 6 2013 batik-awt-util.jar
-rw-r--r-- 1 raphaelle raphaelle 426345 avril 6 2013 batik-bridge.jar
-rw-r--r-- 1 raphaelle raphaelle 78298 avril 6 2013 batik-codec.jar
-rw-r--r-- 1 raphaelle raphaelle 244494 avril 6 2013 batik-css.jar
-rw-r--r-- 1 raphaelle raphaelle 133433 avril 6 2013 batik-dom.jar
-rw-r--r-- 1 raphaelle raphaelle 52960 avril 6 2013 batik-extension.jar
-rw-r--r-- 1 raphaelle raphaelle 10377 avril 6 2013 batik-ext.jar
-rw-r--r-- 1 raphaelle raphaelle 150236 avril 6 2013 batik-gui-util.jar
-rw-r--r-- 1 raphaelle raphaelle 176373 avril 6 2013 batik-gvt.jar
-rw-r--r-- 1 raphaelle raphaelle 53567 avril 6 2013 batik-parser.jar
-rw-r--r-- 1 raphaelle raphaelle 51593 avril 6 2013 batik-script.jar
-rw-r--r-- 1 raphaelle raphaelle 514294 avril 6 2013 batik-svg-dom.jar
-rw-r--r-- 1 raphaelle raphaelle 170522 avril 6 2013 batik-svggen.jar
-rw-r--r-- 1 raphaelle raphaelle 151168 avril 6 2013 batik-swing.jar
-rw-r--r-- 1 raphaelle raphaelle 88022 avril 6 2013 batik-transcoder.jar
-rw-r--r-- 1 raphaelle raphaelle 103484 avril 6 2013 batik-util.jar
-rw-r--r-- 1 raphaelle raphaelle 25910 avril 6 2013 batik-xml.jar
-rw-r--r-- 1 raphaelle raphaelle 102603 avril 6 2013 BrowserLauncher2-1_3.jar
-rw-r--r-- 1 raphaelle raphaelle 232771 avril 6 2013 commons-codec-1.6.jar
-rw-r--r-- 1 raphaelle raphaelle 29924 avril 6 2013 commons-compiler.jar
-rw-r--r-- 1 raphaelle raphaelle 109043 avril 6 2013 commons-io-1.4.jar
-rw-r--r-- 1 raphaelle raphaelle 279193 avril 6 2013 commons-lang-2.5.jar
-rw-r--r-- 1 raphaelle raphaelle 934385 avril 6 2013 guava-r06.jar
-rw-r--r-- 1 raphaelle raphaelle 602320 avril 6 2013 janino.jar
-rw-r--r-- 1 raphaelle raphaelle 56709 avril 6 2013 java-getopt-1.0.13.jar
-rw-r--r-- 1 raphaelle raphaelle 105363 avril 6 2013 jl1.0.1.jar
drwxr-xr-x 21 raphaelle raphaelle 4096 févr. 10 13:26 licenses
-rw-r--r-- 1 raphaelle raphaelle 270858 févr. 10 13:23 logback-classic-1.1.1.jar
-rw-r--r-- 1 raphaelle raphaelle 427794 févr. 10 13:23 logback-core-1.1.1.jar
-rw-r--r-- 1 raphaelle raphaelle 66663 avril 6 2013 miglayout-core-4.2.jar
-rw-r--r-- 1 raphaelle raphaelle 15485 avril 6 2013 miglayout-swing-4.2ju.jar
-rw-r--r-- 1 raphaelle raphaelle 28688 févr. 10 13:23 slf4j-api-1.7.6.jar
-rw-r--r-- 1 raphaelle raphaelle 268021 avril 6 2013 smack.jar
-rw-r--r-- 1 raphaelle raphaelle 54808 avril 6 2013 smackx-debug.jar
-rw-r--r-- 1 raphaelle raphaelle 602264 avril 6 2013 smackx.jar
-rw-r--r-- 1 raphaelle raphaelle 118119 avril 6 2013 swing-layout-1.0.3.jar
-rw-r--r-- 1 raphaelle raphaelle 12852 avril 6 2013 swing-worker-1.2.jar
-rw-r--r-- 1 raphaelle raphaelle 1220130 avril 6 2013 swingx-0.9.4.jar
-rw-r--r-- 1 raphaelle raphaelle 102616 avril 6 2013 TimingFramework-1.0.jar
-rw-r--r-- 1 raphaelle raphaelle 4356554 févr. 14 23:35 Vengine.jar
-rw-r--r-- 1 raphaelle raphaelle 218329 avril 6 2013 wizard.jar
-rw-r--r-- 1 raphaelle raphaelle 1781922 avril 6 2013 xalan-2.6.0.jar
-rw-r--r-- 1 raphaelle raphaelle 935264 avril 6 2013 xercesImpl.jar
-rw-r--r-- 1 raphaelle raphaelle 85686 avril 6 2013 xml-apis-ext.jar
-rw-r--r-- 1 raphaelle raphaelle 194354 avril 6 2013 xml-apis.jar
Rapha
 
Posts: 10
Joined: May 5th, 2014, 1:27 pm

Next

Return to Technical Support & Bugs

Who is online

Users browsing this forum: Google [Bot] and 2 guests