Unix [Debian 7] FTB Lite fails to launch

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

Vicerious

New Member
Jul 29, 2019
63
0
1
I already followed all of the steps in the Basic Troubleshooting guide. I've tried using Oracle Java 7 Runtime as well as OpenJDK Runtime 6 and 7. They all result in the same crash,

PasteBin debug log

Any help is greatly appreciated, thank you.
 

Philo

New Member
Jul 29, 2019
89
0
0
Have you also tried 32bit Java?

Look at line #123 of your log: it reports a link file architecture mismatch, which I interpret in a way that your 64bit Java could not work with the 32bit link file 'liblwjgl.so' provided by the FTB installation.
 

Philo

New Member
Jul 29, 2019
89
0
0
Sadly, all I can do here is guesswork. My own Debian desktop install hasn't been updated for years (still Lenny) and was never tailored towards playing games.

1. Make sure you run the latest Java Game Library by upgrading package liblwjgl-java
2. Experiment with Java versions:
---- a) Try Oracle Java 6 instead of 7 (since on OS X Java 6 is required to successfully run MC)
---- b) Try a 32bit version of Java (don't even know if that is possible)
3. If you don't need Debian for anything else, try installing Linux Mint instead: it's derived from Debian and Ubuntu and makes gaming, multimedia plus other desktop use much easier to configure.

I'm sorry I can't be of more help. Oracle really made a mess out of Java on Linux (well, they made a mess out of pretty much everything that was nice about Sun), so you will have to heavily rely on Google, I'm afraid.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
Unfortunately, the Sun Java repositories are not available in Debian 7, so I'm stuck with Oracle and the OpenJDK.

Now that you've pointed it out, I remember have the ELF class issue with vanilla Minecraft. I had to use a script to get it to work that looked like this:
Code:
#!/bin/bash
cd ~/.minecraft
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/  java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

However, that script no longer functions.

Could we adapt this somehow to my FTB launcher?
 

Philo

New Member
Jul 29, 2019
89
0
0
I feel like in a dark cave with no torches left .....

You could try this:
Code:
#!/bin/bash
cd ~/FTBLite/.minecraft
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/ java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

but:
cd ~/FTBLite/.minecraft could also be cd ~/FTB/FTBLite/.minecraft or anything similar, depending on where your FTB was installed and where the FTB /.minecraft folder actually resides.

java-7-oracle (my modification) is only correct if you actually still run the Java mentioned in your log; adapt, if necessary.

net.minecraft.LauncherFrame - this is where I really don't know what to do. Does FTB/Forge still use that LauncherFrame or replace it? What about Voxelmenu, doesn't that replace parts of the launching procedure for sure?
My installation of the MC source code was made by Forge and does not contain a package "net.minecraft.LauncherFrame", so I cannot check which other package offers similar functionality.
Hence I suggest the following workaround:
- first try with net.minecraft.LauncherFrame, as I posted;
- on failure, disable the Voxelmenu mod and try again;
- failing that, leave Voxelmenu disabled, replace net.minecraft.LauncherFrame by any of the following strings and try again:
cpw.mods.fml.client
cpw.mods.fml.client.modloader
cpw.mods.fml.common.modloader
cpw.mods.fml.relauncher
- if still no avail, try to contact the person who helped you make the original script :(
 

Philo

New Member
Jul 29, 2019
89
0
0
ps:
I just realized there were 2 blank spaces in your script between amd64/ and java -Xmx
That is odd. There shouldn't be more than 1 blank space.
But judging by its contents, the java -Xmx plus following command should belong into its own line anyway. Was there a line break that didn't copy over?
Please check the original script again and adapt my version accordingly.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
The contents of /FTB/FTBLite/minecraft/ is
Code:
bin    coremods                    ForgeModLoader-client-0.log.lck  lib
config  ForgeModLoader-client-0.log  ForgeModLoader-client-1.log      mods

/FTB/FTBLite/.minecraft ([dot]minecraft) contains no files.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
.../bin contains:
Code:
jinput.jar  lwjgl.jar  lwjgl_util.jar  minecraft.jar  natives

Still no net.minecraft.LauncherFrame or similar. It's possible that file was deprecated in a previous version of Minecraft.
 

Philo

New Member
Jul 29, 2019
89
0
0
No, net.minecraft.LauncherFrame is a package inside the minecraft.jar. Or at least for Vanilla it is.
Don't look for a file, just follow my suggested procedure.[DOUBLEPOST=1371412567][/DOUBLEPOST]ps:
Please make note of all the exact versions of the modified script you tried, and should you not be successful with any of them, post a list of those non-working versions here.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
The minecraft.jar is in /FTB/FTBLite/minecraft/bin. Going from that:

Non-working:
Code:
#!/bin/bash
cd ~/FTB/FTBLite/.minecraft
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/ java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
Code:
#!/bin/bash
cd ~/FTB/FTBLite/minecraft/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/  java -Xmx1024M -Xms512M -cp minecraft.jar cpw.mods.fml.client
Code:
#!/bin/bash
cd ~/FTB/FTBLite/minecraft/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/  java -Xmx1024M -Xms512M -cp minecraft.jar  cpw.mods.fml.client.modloader
Code:
#!/bin/bash
cd ~/FTB/FTBLite/minecraft/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/  java -Xmx1024M -Xms512M -cp minecraft.jar  cpw.mods.fml.common.modloader
Code:
#!/bin/bash
cd ~/FTB/FTBLite/minecraft/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/  java -Xmx1024M -Xms512M -cp minecraft.jar cpw.mods.fml.relauncher

All scripts returned a variation of
Code:
Error: Could not find or load main class <filename>
 

Philo

New Member
Jul 29, 2019
89
0
0
Hmm...

@ Script #1:
You tried this only with cd ~/FTB/FTBLite/.minecraft which cannot be expected to work since the dotted hidden folder is either empty or doesn't exist.
a) Try it also with:
cd ~/FTB/FTBLite/minecraft
cd ~/FTB/FTBLite/minecraft/bin

b) While you're at it, try also leaving out the Launcherframe bit, i.e.:
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/ java -Xmx1024M -Xms512M -cp minecraft.jar
and:
LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/jre/lib/amd64/ java -Xmx1024M -Xms512M

Combining a) and b), this gives you 6 new combinations to try.

@ Scripts #2 to #5:
All of these contain the double blank space I talked about above (while script #1 doesn't). I find it hard to believe that it is supposed to be there. Did you check with the old script? Try with only one space instead.
Likewise, of course, if the old once functional script should prove these double blanks actually have to be there, try them on Script #1 in all combinations.
 

nerd65536

New Member
Jul 29, 2019
2
0
0
Code:
2013-06-16 11:28:51 [INFO] [STDERR] Caused by: java.lang.UnsatisfiedLinkError: /home/victor/FTB/FTBLite/minecraft/bin/natives/liblwjgl.so: /home/victor/FTB/FTBLite/minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

It's loading liblwjgl.so, expecting it to be the 64-bit version but finding the 32-bit (ELFCLASS32) version instead. Just overwrite the files in this folder with the included 64-bit versions.

In: /home/victor/FTB/FTBLite/minecraft/bin/natives/

Code:
cp libjinput-linux64.so libjinput-linux.so
cp liblwjgl64.so liblwjgl.so
cp libopenal64.so libopenal.so

Now try running it as normal.
 
  • Like
Reactions: Philo

nerd65536

New Member
Jul 29, 2019
2
0
0
If you still need to specify the ld library path, you can create an entry that will apply system-wide. That way, you won't have to use a custom script to launch the game.

As root:
Code:
echo /usr/lib/jvm/java-7-oracle/jre/lib/amd64/ > /etc/ld.so.conf.d/java.conf
Make sure your ld path is appropriate for the currently enabled version of Java (java -version).
 

Philo

New Member
Jul 29, 2019
89
0
0
I dare to contradict. The issue would only "persist" if it were still the same as before, but I'm pretty sure this log looks quite different to the original one (which unfortunately is expired and can no longer be consulted). I even see some progress.

Please give us details on which exact path you followed in order to end up with the above log. Which of nerd65536's suggestions did you implement, and what did the applied script look like?

The launcher complains about a missing libjawt.so. This library should be in the following path: /usr/lib/jvm/java-7-oracle/jre/lib/amd64/
Is it? If not, do a locate libjawt.so and inform us about the results.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
I made the changes that Nerd suggested, both the 3 cp lines and the system change.

Scripts returned the same error: "Could not find or load..."

Results of locate:
Code:
/usr/java/jre1.7.0_10/lib/amd64/libjawt.so
/usr/java/jre1.7.0_10/lib/i386/libjawt.so
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/libjawt.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjawt.so
/usr/lib/jvm/java-7-oracle/jre/lib/amd64/libjawt.so
 

Philo

New Member
Jul 29, 2019
89
0
0
Ok, so I take it you launched MC without a script. Was this the command used: 'java -jar minecraft.jar'?

As to the libjawt.so which should have been found and wasn't, try running
ldconfig
or
/sbin/ldconfig
as root and then launch MC again.
 

Vicerious

New Member
Jul 29, 2019
63
0
1
I ran ldconfig.
When I then ran java -jar minecraft.jar Minecraft launched! Though the News section of the launcher was entirely garbled garbage text.
Emboldened, I ran java -jar FTB_launcher.jar from my FTB directory.
It launched!
I connected to my server!
I played!

SUCCESS! Thank you so much to both Philo and Nerd65536 :D
 
Status
Not open for further replies.