Ubuntu 13.04 Unable to access jarfile lib/xaos.jar

Get general Towns support here

Ubuntu 13.04 Unable to access jarfile lib/xaos.jar

Postby Mayor_Mike » Sun Jun 30, 2013 7:22 pm

Terminal always gives me "Unable to access jarfile lib/xaos.jar".
Now before you go and say "Have you extracted it all" or "Are all the files in the same folder?" Yes. They are.
What other reasons would cause this? Does the Towns folder need to be in a specific place?
Mayor_Mike
 
Posts: 2
Joined: Sun Jun 30, 2013 7:15 pm

Re: Ubuntu 13.04 Unable to access jarfile lib/xaos.jar

Postby tom k. » Sun Jun 30, 2013 11:11 pm

How are you executing the game? As in, how are you running it?

Sometimes you need to place:

Code: Select all
cd PATHTOCURRENTFOLDER


Where PATHTOCURRENTFOLDER is the path to the folder where towns.sh resides. This was fixed in an ealier build but is perhaps broken on some systems again, we'll have to revisit the issue
Tom K.
Former Community Moderator


Please read the FAQs before posting.
Image
Towns' Official Modding Partner Site - Townsmods.net
tom k.
 
Posts: 1605
Joined: Wed Mar 28, 2012 7:22 pm
Location: Lincoln, UK

Re: Ubuntu 13.04 Unable to access jarfile lib/xaos.jar

Postby Mayor_Mike » Mon Jul 01, 2013 1:36 am

Thankyou changing the directory and then doing the command "bash towns.sh" made it work.
Mayor_Mike
 
Posts: 2
Joined: Sun Jun 30, 2013 7:15 pm

Re: Ubuntu 13.04 Unable to access jarfile lib/xaos.jar

Postby ldd » Mon Jul 01, 2013 3:30 am

Actually... the sh script can and needs to be updated to take into account the path.
so what I would do:
before line 40, add the following "cd $SCRIPTPATH"
after line 1, add the following "SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )"
now you can run it, even without using
$bash towns.sh
just do
$/dir/to/sh/towns.sh

Here's the updated script: http://pastebin.com/fjUh1QNb
Map Editor make and edit your own towns file!
ldd
 
Posts: 51
Joined: Fri Jun 14, 2013 8:33 am


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron