installing Vassal on Ubuntu-eee linux

Thus spake “Farandir”:

I think it’s a classpath problem. Can you show me exactly how you’re
running VASSAL? (I.e., what are you typing into the terminal, what
directory are you in when you do it, what’s in that directory?)


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I’ve started Vassal by typing:

WH40k/Vassal/vassal.sh

as this the directory into which I extracted the Vassal files. It is located on the “Eigene Disk”-drive, which seems to be my home directory. I’m not yet familiar with the linux file system, though.

Thus spake “Farandir”:

Is this exactly what you typed? UNIX filesystems are case-sensitive,
and the shell script which starts VASSAL should be called “VASSAL.sh”
(note that VASSAL is upper-cased). If you typed “vassal.sh” and the
file is called “VASSAL.sh”, then it will not work.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Farandir”:

Also, you said above that you’re running Java 1.6.0_07. That’s a bit old.
Are there any more recent updates for your Linux distribution?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Ah, of course I typed VASSAL.sh. Then I got the error quoted above.

Via the package updater, I could find a “java 1.7.0-iced-tea update” and installed it, but this changed nothing, I still get the error. So has the “could not find main class”-error enything to do with the version of java I have on my machine?

Thus spake “Farandir”:

I can’t tell yet. What output do you get in your terminal from the following
two commands?

which java

java -version


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

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)

Thus spake “Farandir”:

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
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

This is what I get:

Looks like the same error. And thank you very much for your help so far! Although we’re not there yet…

Thus spake “Farandir”:

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
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

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

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…

Thus spake “Farandir”:

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.)

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:

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
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

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…

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.

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.

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

I’m really not sure wth is going on.

Thus spake lauffenp:

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

You want $PATH, all caps.


J.

  1. Show us the output of ‘echo $PATH’.
  2. To what path is java installed? (I.e., where is the java binary itself?)

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

java is installed: /usr/java/jre1.7.0_67

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.