Create account / Log in

installing Vassal on Ubuntu-eee linux

Issues with the Vassal engine.

Moderators: Tim M, uckelman

Postby Farandir » April 11th, 2009, 6:09 am

which java:
/usr/bin/java

java -version:
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)
Farandir
 
Posts: 9
Joined: April 8th, 2009, 2:02 pm

installing Vassal on Ubuntu-eee linux

Postby uckelman » April 11th, 2009, 1:10 pm

Thus spake "Farandir":
which java:
/usr/bin/java

java -version:
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)


That looks fine.

Go to the directory you installed VASSAL (this directory should contain
VASSAL.sh, and two subdirectories, lib and doc), and type this into
your terminal:

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

What happens?

--
J.

_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
uckelman
Site Admin
 
Posts: 8140
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Postby Farandir » April 14th, 2009, 10:46 am

This is what I get:

[user@localhost Vassal]$ java -classpath lib/Vengine.jar VASSAL.launch.ModuleManager
Exception in thread "main" java.lang.NoClassDefFoundError: VASSAL/launch/ModuleManager
Caused by: java.lang.ClassNotFoundException: VASSAL.launch.ModuleManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again


Looks like the same error. And thank you very much for your help so far! Although we're not there yet...
Farandir
 
Posts: 9
Joined: April 8th, 2009, 2:02 pm

installing Vassal on Ubuntu-eee linux

Postby uckelman » April 14th, 2009, 10:52 am

Thus spake "Farandir":
This is what I get:


[user@localhost Vassal]$ java -classpath lib/Vengine.jar VASSAL.launch.Modu
leManager
Exception in thread "main" java.lang.NoClassDefFoundError: VASSAL/launch/Mo
duleManager
Caused by: java.lang.ClassNotFoundException: VASSAL.launch.ModuleManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try aga
in


Looks like the same error. And thank you very much for your help so far! Alth
ough we're not there yet...


Show me what's in the directory you were in when you typed that command.
(The command for that is 'ls'.)


--
J.

_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
uckelman
Site Admin
 
Posts: 8140
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Postby Farandir » April 14th, 2009, 11:44 am

I'm not quite sure about what you mean. The contents of the "Vassal"-directory listed by "dir" are:

AboutScreen.png miglayout-3.6.3-swing.jar
ActionButton.htm ModuleInstaller.htm
ActionButton.png ModuleUpdater.htm
AreaOfEffect.htm ModuleUpdater.png
AreaOfEffect.png MovementTrail.htm
AreaOfEffectSample1.png MovementTrail.png
AreaOfEffectSample2.png MultiActionButton.htm
AtStartStack.png MultiActionButton.png
BasicPiece.htm NamedColor.png
BasicPiece.png NonRectangular.htm
batik-anim.jar NonRectangular.png
batik-awt-util.jar NonStacking.htm
batik-bridge.jar NonStacking.png
batik-codec.jar NotesWindow2.png
batik-css.jar NotesWindow.png
batik-dom.jar NOTICE
batik-extension.jar OverviewWindow.png
batik-ext.jar PanelWidget2.png
batik-gui-util.jar PanelWidget.png
batik-gvt.jar PieceRecenterer.png
batik-parser.jar PieceWindow.htm
batik-script.jar PieceWindow.png
batik-svg-dom.jar Pivot.htm
batik-svggen.jar Pivot.png
batik-swing.jar PlayerHand.htm
batik-transcoder.jar PlayerHand.png
batik-util.jar PlayerSides.png
batik-xml.jar PlaySound.htm
Board2.png PlaySound.png
Board.htm PredefinedSetup1.png
BoardPicker.png PredefinedSetup2.png
Board.png PrivateMap.png
BrowserLauncher2-1_3.jar PrivateWindow.htm
ChangePropertyButton.png Properties.htm
ChartMap.png PropertyMarker.htm
Chart.png PropertyMarker.png
ChartWindow.htm propertysheet-edit2.png
ChartWindow.png propertysheet-edit4.png
Clone.png propertysheet-edit5.png
configuration_window.png propertysheet-fieldtypes.png
connect.gif PropertySheet.htm
ConsoleWindow.png property_sheet_map.png
COPYING PropertySheet.png
COPYING.LIB PrototypeDefinition.png
COPYING.txt Prototypes.htm
CounterDetailViewer.png RandomTextButton.png
CounterGlobalKeyCommand.png README
createInstaller.png README.html
DeckGlobalKeyCommand.htm README.js.txt
DeckGlobalKeyCommand.png README.pdf-transcoder.txt
Deck.htm README.txt
Deck.png README.xalan-2.6.0.txt
Delete.png README.xerces_2_5_0.txt
DiceButton.png README.xml-apis-ext.txt
DoActionButton.htm README.xml-apis.txt
DoActionButton.png RectangularGrid.htm
DynamicProperty.htm RectangularGrid.png
DynamicProperty.png Replace.htm
Extension.htm Replace.png
FontStyle.png ReportChanges.htm
GameModule.htm ReportChanges.png
GameModule.png ReportFormat.png
GamePiece.htm RestrictCommands.htm
GamePieceImageDefinitions.htm RestrictCommands.png
GamePieceImageDefinitions.png RestrictedAccess.htm
GamePieceImage.htm RestrictedAccess.png
GamePieceLayerControl.png ReturnToDeck.htm
GamePieceLayers.htm ReturnToDeck.png
GamePieceLayers.png Rotate.htm
GamePieceLayouts.htm Rotate.png
GamePiece.png SavedGameUpdater.htm
GlobalHotKey.htm SavedGameUpdater.png
GlobalHotkey.png SelectionHighlighter.png
GlobalKeyCommand.htm SendToLocation.htm
GlobalKeyCommand.png SendToLocation.png
GlobalOptions.htm SetGlobalProperty.htm
GlobalOptions.png SetupStack.htm
GlobalProperties.htm ShapeItemInstance.png
GlobalProperty.png ShapeItem.png
GridNumbering2.png smack.jar
GridNumbering.htm smackx-debug.jar
GridNumbering.png smackx.jar
HelpFile.png SpecialDiceButton.htm
HelpMenu.htm SpecialDiceButton.png
HexGrid.htm SpecialDieFace.png
HexGrid.png SpecialDie.png
Hideable.htm Splash.png
Hideable.png Spreadsheet.htm
HidePieces.png Spreadsheet.png
HtmlChart.png StackingOptions.png
HtmlHelpFile.png StepForward.png
ImageCapture.png SubMenu.htm
imagedefn.png SubMenu.png
imageitem.png swing-layout-1.0.3.jar
imagelayoutbuttons.png swing-worker-1.2.jar
imagelayoutitems.png swingx-0.9.4.jar
imagelayout.png symbolinstance.png
imagelayouttext1.png symbolitem.png
imagelayouttextbox.png TakeTheTour.png
imagelayoutvisualizer.png textboxinstance.png
index.htm textinstance.png
InternetDiceButton.png TimingFramework-1.0.jar
Inventory.htm ToolbarMenu.htm
Inventory.png ToolbarMenu.png
InventoryWindow.png tour.log
IrregularGrid.htm tour.mod
IrregularGrid.png Translate.htm
java-getopt-1.0.13.jar TranslateModule.png
jna.jar Translate.png
Label.htm TranslateVassal.png
Label.png Translations.htm
LastMoveHighlighter.png TriggerAction2.png
Layer2.png TriggerAction.htm
Layer.htm TriggerAction.png
Layer.png TurnTrackerCounter.png
LibraryWindow.png TurnTrackerGlobalHotkey.png
LICENSE TurnTracker.htm
LICENSE.dom-documentation.txt TurnTrackerList.png
LICENSE.dom-software.txt TurnTracker.png
LICENSE.js.txt TurnTrackerTurnWindow.gif
LICENSE.pdf-transcoder.txt Tutorial.png
LICENSE.sax.txt UseGridLocation.png
LICENSE.txt UsePrototype.htm
LICENSE.xalan-2.6.0.txt UsePrototype.png
LICENSE.xerces_2_5_0.txt VASSAL.sh
LOS_Thread.png Vengine.jar
Map.htm versionHistory.html
Map.png wizard.jar
MapShading.png xalan-2.6.0.jar
Marker.htm xercesImpl.jar
Marker.png xml-apis-ext.jar
MarkMoved.htm xml-apis.jar
MarkMoved.png ZonedGrid.htm
Mask.htm ZoneHighlighter.png
Mask.png Zone.png
MessageFormat.htm Zoomer.png


The "Is" command does not seem to work. Do I have to use it with the original command line you gave me? As this was executed in the "Vassal"-directory, the contents should be the same as those listed above?

You mentioned that there should be two subdirectories "lib" and "doc". As far as I can see, they are missing in my Vassal-directory. I'll try and download vassal again, maybe there was something wrong with my original archive? It'd be nice if it is as easy as this...
Farandir
 
Posts: 9
Joined: April 8th, 2009, 2:02 pm

installing Vassal on Ubuntu-eee linux

Postby uckelman » April 14th, 2009, 11:54 am

Thus spake "Farandir":
The "Is" command does not seem to work. Do I have to use it with the original
command line you gave me? As this was executed in the "Vassal"-directory, th
e contents should be the same as those listed above?

It's a lower-case L, not an upper-case I. The command is 'ls', not 'Is'.

(I didn't even know there was a 'dir' command.)

You mentioned that there should be two subdirectories "lib" and "doc". As far
as I can see, they are missing in my Vassal-directory. I'll try and download
vassal again, maybe there was something wrong with my original archive? It'd
be nice if it is as easy as this...


The files which should be in the lib and doc directories somehow all ended
up together in one directory. This is why you can't get VASSAL to run---the
files aren't where VASSAL expects them to be. This should not happen. What
exactly did you do to install VASSAL?

What you should have done is grabbed the Linux bundle:

https://sourceforge.net/project/downloa ... a=77550957

And then unpacked it into the directory of your choice like so:

cd directory/where/you/want/VASSAL/to/be
tar xjvf path/to/VASSAL-3.1.3-linux.tar.bz2

--
J.

_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
uckelman
Site Admin
 
Posts: 8140
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Postby Farandir » April 14th, 2009, 3:20 pm

That did the trick! I had the linux-package, but I used the GUI the first time, and obviously that didn't work as it was intended. Using the terminal was the way to go.

So thanks again for helping getting rid of the bug sitting 30 cm in front of the monitor...
Farandir
 
Posts: 9
Joined: April 8th, 2009, 2:02 pm

Re: installing Vassal on Ubuntu-eee linux

Postby lauffenp » September 7th, 2014, 8:31 pm

Well, I hate to drag an old thread up from the underworld, but I am not able to get VASSAL installed on linux running on a chroot in chrome. There is a lot I don't know, but I have java installed into a usr/jva folder, and I am reasonable certain VASSAL is correctly installed.

Command: bash VASSAL.sh
Returns:line 11 java: command not found

cmnd: which java
rtrns:

cmnd: echo $path
rtrns:

... So obviously I have a core problem here. I am VERY new to linux and have tried following everything in this forum but I think there is something wrong at the root. Any ideas?

Thanks for your help in advance.
lauffenp
 
Posts: 3
Joined: September 7th, 2014, 8:25 pm

Re: installing Vassal on Ubuntu-eee linux

Postby uckelman » September 7th, 2014, 9:38 pm

Thus spake lauffenp:
> Well, I hate to drag an old thread up from the underworld, but I am not
> able to get VASSAL installed on linux running on a chroot in chrome.
> There is a lot I don't know, but I have java installed into a usr/jva
> folder, and I am reasonable certain VASSAL is correctly installed.
>
> Command: bash VASSAL.sh
> Returns:line 11 java: command not found
>
> cmnd: which java
> rtrns:
>
> cmnd: echo $path
> rtrns:

Environment variables are case-sensitive. You should be checking
$PATH, not $path.

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

Re: installing Vassal on Ubuntu-eee linux

Postby lauffenp » September 11th, 2014, 4:09 pm

echo $PAth returns nothing, as well as echo $Path.

I'm really not sure wth is going on.
lauffenp
 
Posts: 3
Joined: September 7th, 2014, 8:25 pm

Re: installing Vassal on Ubuntu-eee linux

Postby uckelman » September 11th, 2014, 5:26 pm

Thus spake lauffenp:
> echo $PAth returns nothing, as well as echo $Path.

You want $PATH, all caps.

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

Re: installing Vassal on Ubuntu-eee linux

Postby uckelman » September 12th, 2014, 8:54 am

Ok... so I get a return with a number of paths, none point to the java folder though. My internet connection is sheite right now, so it is difficult for me to even log in to my gmail account on the crouton!! What
should I be looking for?


1) Show us the output of 'echo $PATH'.
2) To what path is java installed? (I.e., where is the java binary itself?)
User avatar
uckelman
Site Admin
 
Posts: 8140
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: installing Vassal on Ubuntu-eee linux

Postby lauffenp » September 12th, 2014, 2:27 pm

echo $PATH:
rtrns:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

java is installed: /usr/java/jre1.7.0_67
lauffenp
 
Posts: 3
Joined: September 7th, 2014, 8:25 pm

Re: installing Vassal on Ubuntu-eee linux

Postby uckelman » September 12th, 2014, 2:49 pm

Thus spake lauffenp:
> echo $PATH:
> rtrns:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> java is installed: /usr/java/jre1.7.0_67
>

This is why it's not working. Your shell looks in the directories listed
in $PATH for programs which you try to execute without any relative or
absolute path components specified. So, when you try to run java (or,
when VASSAL.sh tries to run java), your shell looks in /usr/local/sbin,
/usr/local/bin, and so on.

If you have java installed in /usr/java/jre1.7.0_67, there are several
things you could do to get that on your path.

What I would do is make a symbolic link from /usr/bin/java to
/usr/java/jre1.7.0_67/java:

ln -s /usr/java/jre1.7.0_67/java /usr/bin/java

After doing that that, 'which java' should show you:

/usr/bin/java

Alternatively, you could append /usr/java/jre1.7.0_67 to $PATH.

NB: I suspect that the java binary is in /usr/java/jre1.7.0_67/bin,
not in /usr/java/jre1.7.0_67 as you reportred. You'll want to check
that, and adjust the paths to match what you find. My instructions are
assuming /usr/java/jre1.7.0_67.

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

Previous

Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 0 guests