Create account / Log in

Starting Vassal in Linux

Issues with the Vassal engine.

Moderators: Tim M, uckelman

Starting Vassal in Linux

Postby cyberjockey » November 27th, 2017, 2:06 am

Hi,
I am running Fedora 27 with Java 8 U151. After downloading the file, I went into the terminal and unpacked the file using the 'tar' command. It seemed like everything unzipped fine, but when I go to run the 'VASSAL.sh' file, nothing happens. The cursor blinks for a couple of seconds and then the prompt comes up again. I'm new to Linux and I don't really know the terminal commands very well. So I don't know if maybe there are other steps I missed or if it is something else.


Here are the contents of my 'VASSAL.sh' file (copied and pasted from the file):
#!/bin/sh

#
# Execute this file to launch VASSAL on MacOS or Linux
#

# Find absolute path where VASSAL is installed
INSTALL_DIR=$(cd "$(dirname "$0")"; pwd)

# Launch VASSSAL
java -Duser.dir="$INSTALL_DIR" -classpath "$INSTALL_DIR"/lib/Vengine.jar VASSAL.launch.ModuleManager "$@"
cyberjockey
 
Posts: 3
Joined: November 27th, 2017, 1:38 am

Re: Starting Vassal in Linux

Postby uckelman » November 27th, 2017, 12:58 pm

Thus spake cyberjockey via messages:
> Hi,
> I am running Fedora 27 with Java 8 U151. After downloading the file, I
> went into the terminal and unpacked the file using the 'tar' command. It
> seemed like everything unzipped fine, but when I go to run the
> 'VASSAL.sh' file, nothing happens. The cursor blinks for a couple of
> seconds and then the prompt comes up again. I'm new to Linux and I don't
> really know the terminal commands very well. So I don't know if maybe
> there are other steps I missed or if it is something else.
>
>
> Here are the contents of my 'VASSAL.sh' file (copied and pasted from the
> file):
> #!/bin/sh
>
> #
> # Execute this file to launch VASSAL on MacOS or Linux
> #
>
> # Find absolute path where VASSAL is installed
> INSTALL_DIR=$(cd "$(dirname "$0")"; pwd)
>
> # Launch VASSSAL
> java -Duser.dir="$INSTALL_DIR" -classpath "$INSTALL_DIR"/lib/Vengine.jar
> VASSAL.launch.ModuleManager "$@"

My guess is that you have only headless Java installed, which lacks all
of the libraries for displaying anything graphically.

What's the output when you run this in your terminal?

rpm -qa | grep openjdk

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

Re: Starting Vassal in Linux

Postby cyberjockey » November 27th, 2017, 8:54 pm

This is what i get for output:
java-1.8.0-openjdk-headless-1.8.0.151-1.b12.fc27.x86_64 (copied and pasted from terminal screen)
cyberjockey
 
Posts: 3
Joined: November 27th, 2017, 1:38 am

Re: Starting Vassal in Linux

Postby uckelman » November 28th, 2017, 11:05 am

Thus spake cyberjockey via messages:
> This is what i get for output:
> java-1.8.0-openjdk-headless-1.8.0.151-1.b12.fc27.x86_64 (copied and
> pasted from terminal screen)

Yep, that's your problem. You have only headless Java installed. The
package you need to install is called java-1.8.0-openjdk.

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

Re: Starting Vassal in Linux

Postby cyberjockey » November 28th, 2017, 8:34 pm

That seemed to be the problem. I installed the Openjdk and Vassal is now working. Thanks for the help.
cyberjockey
 
Posts: 3
Joined: November 27th, 2017, 1:38 am


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 3 guests