Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: 0.6 Linux Start up Issue- Jre_linux folder java not found? [SOLVED]  (Read 8231 times)

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile

Code
peter@peter-K84L ~/Documents/linuxgames/starsector $ sudo ./starsector.sh
./starsector.sh: 1: ./starsector.sh: ./jre_linux/bin/java: not found
peter@peter-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: No such file or directory
Using this script, i was able to get so far before it ended up... Well, freezing, locking up! And i couldn't tell you whats up. everything loads up well, but then one preloading ends, the game just locks every up!

EDIT: using the original script results in the same error code...

heeellllp.
« Last Edit: September 15, 2013, 02:05:21 PM by Azmond »
Logged

Tchey

  • Lieutenant
  • **
  • Posts: 60
    • View Profile
    • Jeux1d100
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #1 on: September 14, 2013, 06:10:49 AM »

I don't knon much about Linux, even if i'm running Lubuntu since a coupe of years.
I can play 0.6 without any problem.

Also, your script link is broken, no ?

I'm really glad Starsector considers Linux with a native build, thanks !
Logged

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #2 on: September 14, 2013, 07:06:34 AM »

You don't need that script. Try using the the native script that is supplied with the game and see if the problem stays.
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #3 on: September 14, 2013, 09:40:37 AM »

I have to wonder if it's not my OS, or something I did, damn it!
I hate linux some days, but others, I just love the minty Linux OS... =3=;

In anycase, i've been scratching my head at this for some time, it worked- then froze after preload -with the script, and it did the same when i simply put  "java" in the bash file, replacing the . /jre_linux/bin /java. In other words, from THIS: /jre_linux/bin/java  TO THIS: java.
And that yeilded the same result as the script. which was, at the preload, when it was done preloading, it froze up, my mouse was locked in the game, and it wouldn't work.

Using the native script supplied, I got the code you saw at my first post  "bash: ./jre_linux/bin/java: No such file or directory"
« Last Edit: September 14, 2013, 09:43:53 AM by Azmond »
Logged

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #4 on: September 14, 2013, 10:54:13 AM »

Just tried .6 RC4 and everything works. Even with system-JRE.

Perhaps the downloaded file was corrupted.
Try the following:
1) Download
2) Unpack
3) Open terminal in folder that you unpacked to
4) run "./starsector.sh"
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #5 on: September 14, 2013, 01:53:02 PM »

Allright, i re-downloaded the files, and got this, "./starsector.sh
./starsector.sh: line 1: ./jre_linux/bin/java: Permission denied "
 ???

going to download again an extract on the desktop, no other webpages are up, so it can't be corrupt every time i Download it~!


Result when taken to the desktop?

azzy@azzy-K84L ~/Desktop/starsector $  ./starsector.sh
./starsector.sh: line 1: ./jre_linux/bin/java: No such file or directory
azzy@azzy-K84L ~/Desktop/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: No such file or directory
azzy@azzy-K84L ~/Desktop/starsector $

« Last Edit: September 14, 2013, 01:58:46 PM by Azmond »
Logged

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #6 on: September 14, 2013, 02:26:44 PM »

Even running sudo doesn't seem to help!

azzy@azzy-K84L ~/Desktop/starsector $ ./starsector.sh
./starsector.sh: line 1: ./jre_linux/bin/java: No such file or directory
azzy@azzy-K84L ~/Desktop/starsector $ sudo ./starsector.sh
[sudo] password for azzy:
./starsector.sh: 1: ./starsector.sh: ./jre_linux/bin/java: not found

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #7 on: September 14, 2013, 02:32:32 PM »

I have one last idea left. Can you run a "ls -l" in the starsector directory?
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #8 on: September 14, 2013, 02:33:01 PM »

Will do, I'll post whever shows up.

RESULT:

Code
 azzy@azzy-K84L ~/Desktop/starsector $ ls -l
total 6496
-rw-r--r--  1 azzy azzy   28045 Sep 13 17:25 commons-compiler.jar
-rw-r--r--  1 azzy azzy   43330 Sep 13 17:25 commons-compiler-jdk.jar
drwxr-xr-x 14 azzy azzy    4096 Sep 13 17:25 data
-rw-r--r--  1 azzy azzy  289584 Sep 13 17:25 fs.common_obf.jar
-rw-r--r--  1 azzy azzy   28870 Sep 13 17:25 fs.sound_obf.jar
drwxr-xr-x 23 azzy azzy    4096 Sep 13 17:25 graphics
-rw-r--r--  1 azzy azzy  545720 Sep 13 17:25 janino.jar
-rw-r--r--  1 azzy azzy  214859 Sep 13 17:25 jinput.jar
-rw-r--r--  1 azzy azzy    6839 Sep 13 17:25 jogg-0.0.7.jar
-rw-r--r--  1 azzy azzy   58917 Sep 13 17:25 jorbis-0.0.15.jar
drwxr-xr-x  8 azzy azzy    4096 Sep 14 14:11 jre_linux
-rw-r--r--  1 azzy azzy   44055 Sep 13 17:25 json.jar
-rw-r--r--  1 azzy azzy  228650 Sep 13 17:25 LICENSE.txt
-rw-r--r--  1 azzy azzy  352291 Sep 13 17:25 log4j-1.2.9.jar
-rw-r--r--  1 azzy azzy  941293 Sep 13 17:25 lwjgl.jar
-rw-r--r--  1 azzy azzy  173342 Sep 13 17:25 lwjgl_util.jar
drwxr-xr-x  2 azzy azzy    4096 Sep 13 17:25 mods
drwxr-xr-x  3 azzy azzy    4096 Sep 13 17:25 native
drwxr-xr-x  2 azzy azzy    4096 Sep 13 17:25 saves
drwxr-xr-x  2 azzy azzy    4096 Sep 13 17:25 screenshots
drwxr-xr-x 13 azzy azzy    4096 Sep 13 17:25 sounds
-rw-r--r--  1 azzy azzy  254652 Sep 13 17:25 starfarer.api.jar
-rw-r--r--  1 azzy azzy  143320 Sep 13 17:25 starfarer.api.zip
-rw-r--r--  1 azzy azzy 2739942 Sep 13 17:25 starfarer_obf.jar
-rw-r--r--  1 azzy azzy     599 Sep 13 17:25 starsector.bat
-rw-r--r--  1 azzy azzy     789 Sep 13 17:25 starsector.command
-rwxrwxrwx  1 azzy azzy     626 Sep 14 14:13 starsector.sh
-rw-r--r--  1 azzy azzy  481672 Sep 13 17:25 xstream-1.4.2.jar
« Last Edit: September 14, 2013, 02:36:31 PM by Azmond »
Logged

Vind

  • Admiral
  • *****
  • Posts: 785
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #9 on: September 14, 2013, 07:32:54 PM »

From this "./starsector.sh ./starsector.sh: line 1: ./jre_linux/bin/java: Permission denied " i can assume you dont have right permissions on unpacked files. Use chown -R <your user name>:<you user group> <path to star sector directory> command to fix it. Like this: chown -R user:users /home/user/starsector
« Last Edit: September 14, 2013, 07:35:37 PM by Vind »
Logged

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #10 on: September 14, 2013, 10:54:41 PM »

Allright, i don't know how this came to be, but, I'll repair it. In the mean time, it seems that my brother was right... It was something to do with linux, don't know what, don't care. In either case, i can play now!

to anyone else who's had a problem with this, try the soulutions found here or try doing this.

replace ./jre_linux/bin/java with the word java, as simple as it is, somehow, SOMEHOW! That works.

heres the code for anyone intrested in how it works. I don't know how, but it does. And it doesn't seem to give much either...


Code
0    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.6a launcher
2    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Running in /home/azzy/Documents/linuxgames/starsector
3    [main] INFO  com.fs.starfarer.StarfarerLauncher  - OS: Linux 3.5.0-17-generic
3    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.7.0_25
101  [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [data/config/settings.json]
815  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 640x480, 60Hz, 24bpp
815  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 800x600, 56Hz, 24bpp
815  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 800x600, 60Hz, 24bpp
816  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 1024x768, 60Hz, 24bpp
816  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 1360x768, 60Hz, 24bpp
816  [main] INFO  com.fs.starfarer.StarfarerLauncher  - Found display mode: 1366x768, 60Hz, 24bpp

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found? [SOLVED]
« Reply #11 on: September 15, 2013, 01:06:47 AM »

Um... The script you linked to in the first post uses your systems JRE. Just like writing "java".

Here's how: by using a path in a command (./jre_linux/bin/java), the script tries to execute the file. If you use just a word (java) it checks the PATH environment variable for the program. Because these two point towards different things, the result is different.

Also, if you still have time: Can you revert your changes (turn java into ./jre_linux/bin/java) and tell us if Vinds solution worked?
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found? [SOLVED]
« Reply #12 on: September 15, 2013, 10:52:34 AM »

well, I gave it a go, Vinds solution fully, an heres the result:
Code
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ sudo chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
[sudo] password for azzy:
Sorry, try again.
[sudo] password for azzy:
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.shbash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $

I'll be trying it a few more times to see if i didn't do something wrong.


Further messing around has given me nothing = =; The permissions are all set for me, even the java itself! even when i've gone in as root on the GUI and done it through GUI, as well as chown -R it doesn't want to work.
heres what  I did...
Code
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ sudo chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
[sudo] password for azzy:
Sorry, try again.
[sudo] password for azzy:
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.shbash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ sudo chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.shbash: ./jre_linux/bin/java: Permission denied
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy
chown: missing operand after `azzy:azzy'
Try `chown --help' for more information.
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown --help
Usage: chown [OPTION]... [OWNER][:[GROUP]] FILE...
  or:  chown [OPTION]... --reference=RFILE FILE...
... ... ... ... ... ... ... ...
General help using GNU software: <http://www.gnu.org/gethelp/>
For complete documentation, run: info coreutils 'chown invocation'
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector/jre_linux/bin/java
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector/jre_linux/bin
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector/jre_linux
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
bash: ./jre_linux/bin/java: Permission denied
 
« Last Edit: September 15, 2013, 11:01:41 AM by Azmond »
Logged

FloW

  • Captain
  • ****
  • Posts: 282
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #13 on: September 15, 2013, 11:16:47 AM »

Dumb as I am, I didn't realize that that was the false solution.

You don't have to change the fileowner, but the actual permissions. Try to make starsector/jre_linux/bin/java executable:
Code
chmod -v +x starsector/jre_linux/bin/java

Some other stuff: absolute paths are not needed. This here
Code
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ sudo chown -R azzy:azzy /home/azzy/Documents/linuxgames/starsector
is the same as
Code
azzy@azzy-K84L ~/Documents/linuxgames/starsector $ sudo chown -R azzy:azzy .
Note the small dot at the end of the line, which is the current directory.

Should make life in the bash easier.
Logged
"The point is, you see, that there is no point in driving yourself mad trying to stop yourself going mad. You might just as well give in and save your sanity for later.''
- Ford Prefect, creator of the giraffe; a very long time ago

Az the Squishy

  • Captain
  • ****
  • Posts: 469
  • I'm but a woman with a pencil.
    • View Profile
Re: 0.6 Linux Start up Issue- Jre_linux folder java not found?
« Reply #14 on: September 15, 2013, 11:33:40 AM »

You got to be kidding me...
Allright, give me asecond...

Result of the code snippet given:
Code
chmod -v +x starsector/jre_linux/bin/java
chmod: cannot access `starsector/jre_linux/bin/java': No such file or directory
failed to change mode of `starsector/jre_linux/bin/java' from 0000 (---------) to 0000 (---------)

I think, my computer doesn't like me... LOL~!

Going through the GUI method of permissions while having a Root user window open (or elevated priviliages) and editing hte java permissions this way, come to THIS, result, which is MUCH better!!!

Code
 azzy@azzy-K84L ~/Documents/linuxgames/starsector $ . starsector.sh
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/azzy/Documents/linuxgames/starsector/jre_linux/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Unknown Source)
at java.awt.Toolkit.<clinit>(Unknown Source)
at java.awt.Color.<clinit>(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.<init>(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.main(Unknown Source)
« Last Edit: September 15, 2013, 11:47:25 AM by Azmond »
Logged
Pages: [1] 2