installing Vassal on Ubuntu-eee linux

The Vassal.sh file doesn’t run. It is /tmp/VASSAL/VASSAL.sh. In the terminal I get this:

4: java : not found

There is a java folder at /usr/share/java.

Do I need to manually enter a path somewhere?

Thus spake “sbuck”:

Most likely it’s that the java binary isn’t on your path. What do you
get when you type ‘which java’ into your terminal?


J.


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

Post generated using Mail2Forum (mail2forum.com)

“which java” returns nothing at all, just a new prompt

Try typing

sudo update-alternatives --config java

and tell us what you see.

2008/12/11 sbuck <messages@forums.vassalengine.org (messages@forums.vassalengine.org)>

Post generated using Mail2Forum (mail2forum.com)

Thus spake “sbuck”:

What do you get when you do ‘echo $PATH’?


J.


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

Post generated using Mail2Forum (mail2forum.com)

echo $PATH:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:usr/games

Thus spake “sbuck”:

If the only java binary you have is in /usr/share/java, then this is why
you’re not able to run VASSAL from the shell script. The shell script
expects the java binary to be on your path, but the /usr/share/java
directory is not on your path.

I don’t know what the canonical way of solving this is on Ubuntu, however.
You should try what Michael suggested, as it might be the the symbolic
links for java were not setup properly when you installed it.


J.


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

Post generated using Mail2Forum (mail2forum.com)

Whoops, missed Michael’s post. When I try it I get:

no alternatives for java

Thus spake “sbuck”:

I think you don’t have java installed.


J.


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

Post generated using Mail2Forum (mail2forum.com)

OK, how do I install Java?

type

sudo apt-get install sun-java6-bin

  • M.

2008/12/11 sbuck <messages@forums.vassalengine.org (messages@forums.vassalengine.org)>

Post generated using Mail2Forum (mail2forum.com)

Wow, that was impressive. And it seems to work, since the Vassal.sh now starts Vassal. Just need to download some mods, now.

So, uhhh, …

How do you like your eee? I’ve been toying with the idea…

  • M.

2008/12/11 sbuck <messages@forums.vassalengine.org (messages@forums.vassalengine.org)>

Post generated using Mail2Forum (mail2forum.com)

Wonderfully portable. But the 4GB flash drive is too small. It came out of the box with about 300MB free space, and promptly downloaded a bunch of updates that filled the drive and rendered it useless.

It has a built-in SD slot, so I got an 8GB card. But I’m no Linux expert, and working with the file system is no fun. Replacing the OEM OS with Ubuntu helped because it’s a bit smaller (ubuntu-eee.com). But like Windows, the system just grows and grows. . . . lost 100MB to java.

Next problem to solve (not urgent) is how to have two external drives at once. With the SD card in there, when I stick in a USB drive I get a message saying only a “superuser” can do that. Take out the SD card and boot with the USB drive in, it’s fine. Then stick in the SD card and get the message. Type of drive doesn’t matter, but apparently only one at a time.

Sorry, I hadn’t thought of that. There were other versions of Java – that just happened to be the one I’m using, but I have 40 GB on my laptop…

Thanks. All of this was useful for me to know. I may just get one anyway for the plane.

  • M.

Post generated using Mail2Forum (mail2forum.com)

Thus spake “sbuck”:

It’s not lost if you’re going to use it.

You’re having a permissions problem. The system won’t let normal users mount
removable drives; the reason it works when you boot with the drive in is
that when it comes time to mount the drive, the user running the mount
command is the root user (this is because all of the processes running at
boot time are run as the root user).

Relevant search terms would be ‘usb’ and ‘automount’. This guy has a
suggestion about how to fix the the problem:

sltaylor.co.uk/blog/category/coldfusion/


J.


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

Post generated using Mail2Forum (mail2forum.com)

Thus spake Jeffrey Brent McBeth:

Someone else reported problems with the Ubuntu build of OpenJDK a few
days ago; if it were me, I’d try both. On Fedora I can say confidently
that OpenJDK is better.


J.


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

Post generated using Mail2Forum (mail2forum.com)

I had some problems with anything but sun java on Ubuntu, but I haven’t tried anything else since Gutsy Gibbon.

  • M.

2008/12/12 Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)>

Post generated using Mail2Forum (mail2forum.com)

I had some issues with the openjdk-6 package unique to ubuntu (actually xubuntu, but it was intrepid ibex and I do not think once you are running gnome apps it matters wether the the underlying manager is gnome or xfce) and unique to the utf8 charset. I believe it is all documented in gory detail in the thread “graphics stretch in inux” in this forum.
Note that was only that one unique combination… using any of sunjdk-6, fedora, and/or iso charset fixed the problem, and with the exception of fedora the steps to make those changes are detailed in the thread mentioned.

Personally… if you are using linux and especially ubuntu you are probably into the open source idea so using openjdk is nice and can be done, but in that case I suggest making the change to force openjdk to use the iso charset, until a fix is made in the ubuntu openjdk repo.

[edit - might mention I have changed my laptop over to fedora10 x86_64]

Ok, I guess I have a similar problem:

When trying to start the vassal.sh, nothing happens.

I have checked on sun.com if I have java installed on my Acer Aspire One using Linpus Linux (which is based on fedora) and it said I have. Obviously, I am quite a noob concerning linux. My package manager says, I have “jre - 1.6.0_07-fcs.i586” installed. A search for “openjdk” or “sunjdk” turned up no results.

Should I install java manually from somewhere or is there anything I don’t see at the moment?

Thanks for your help!