Linux Client Again.
18 replies [Last post]
mapster
WoM Member
Members
WoM Member: 7860
WoM Coins: 0

Ok, so I used the script that H4X gave out here http://www.worldofminecraft.com/H4X/linux.php

I replaced the text in minecraft-osx.sh with the text from the page above.  Now, I have an error stating that the java statement was used wrong.  Do I need to install the openJDK before continuing?  As far as I know I only have the JRE installed.  If I did anything else wrong, please let me know thanks!

mapster
WoM Member
Members
WoM Member: 7860
WoM Coins: 0
Nevermind. It was my mistake

Nevermind. It was my mistake :S  I didn't copy the full statement! Sorry! Please close.

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
I accidentally my minecraft.sh

invis@invis-laptop:~$ '/home/invis/Desktop/World of Minecraft/minecraft-osx.sh'
Exception in thread "main" java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: Main. Program will exit.

mapster
WoM Member
Members
WoM Member: 7860
WoM Coins: 0
Be sure to copy the entire

Be sure to copy the entire script!  Here is exactly what you should use:

<strong>
#!/bin/sh

java -Xms800M -Xmx800M -classpath
.:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar
-Djava.library.path=native/linux Main

</strong>

This worked perfect for me. Just replace the entire contents of the "minecraft-osx.sh" file with the script above, and you won't have a problem.  Be sure that you copy EVERYTHING too because that was my problem.

I hope that helps you.

guyboy
WoM Member
Members
WoM Member: 680
WoM Coins: 0
Won't work

I know this is probably a ridiculous failure of mine, but when I try mapster's script, I get:

bash: /media/TREKSTOR/minecraft/minecraft-osx.sh: /bin/sh^M: bad interpreter: No such file or directory

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
Sigh.

I'm using the script provided by H4X, which you reposted.

mapster
WoM Member
Members
WoM Member: 7860
WoM Coins: 0
Ok.

I didn't say it was my script.  I was just reposting it here, and if that offends anyone, then I'm sorry for not applying proper credit.

Listen, Invisible, are you 150% positive that you have every single character accounted for in the script you are trying to execute?  I got that exact same error when I left out the last "Main" in the script. 

If that's not the issue, then I am not sure I can help any further.

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
Over 9000% sure.

Over 9000% sure.

edit: Fixed. Turns out my JRE was corrupted and my OpenJDK was old.

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
New problem

::Start code::

Exception in thread "main" java.lang.SecurityException: SHA1 digest error for com/mojang/minecraft/l.class
    at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:210)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:218)
    at java.util.jar.JarVerifier.update(JarVerifier.java:205)
    at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:428)
    at sun.misc.Resource.getBytes(Resource.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:273)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    at Main.main(Main.java:92)

::End code::

This happens when I try to run program. I get the login screen, just not anything after I log in. I did the Don't lose focus hack.

zuperxtreme
WoM Member
Members
WoM Member: 8251
WoM Coins: 0
I'm getting: gij:

I'm getting:

gij: unrecognized option -- `-classpath.:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar'
Try `gij --help' for more information.

Using:

#!/bin/sh

java -Xms800M -Xmx800M -classpath.:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar -Djava.library.path=native/linux Main

mapster
WoM Member
Members
WoM Member: 7860
WoM Coins: 0
Zuper's Problem.

Your problem is right here: "-classpath.:lib/jinput.jar" should be "-classpath .:lib/jinput.jar". That space in between classpath and . is so important! That should fix your problem.

gdude2002
WoM Member
Members
WoM Member: 130
WoM Coins: 6
Graagh.

damnit. What I get is this:

org.lwjgl.LWJGLException: X Error - disp: 0x7874c980 serial: 37 error: BadMatch (invalid parameter attributes) request_code: 1 minor_code: 0
this is AFTER I try to play, in SP or MP.

noahsan
WoM Member
Members
WoM Member: 4376
WoM Coins: 0
My error:JNLParseException[

My error:
JNLParseException[ Could not parse launch file. Error at line 0.]
    at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:69)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:57)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:75)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:121)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:349)
    at com.sun.javaws.Main.launchApp(Main.java:306)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:250)
    at com.sun.javaws.Main$1.run(Main.java:111)
    at java.lang.Thread.run(Thread.java:619)

Metalpak
WoM Member
WoM Member: 26553
WoM Coins: -1
client won't work

This is what I keep on getting..

@echo off

rem If you have a custom path to java, change auto below to
rem point to your java.exe file
rem eg:  set JAVA6="C:\MyPath\bin\java.exe"

set JAVA6="roel/home/.wine/windows/C/Program Files/Java/jre1.5.0/bin/java.exe"

set X86="%ProgramFiles(x86)%"
if %JAVA6% == "auto" (
  echo Autodetecting java
  if %X86% NEQ "" (
    echo Testing x86 folder
    for /D %%j in ("%ProgramFiles(x86)%\jre6*" "%ProgramFiles(x86)%\jre1.6.*" "%ProgramFiles(x86)%\jdk1.6.*" "%ProgramFiles(x86)%\Java\jre6*" "%ProgramFiles(x86)%\Java\jre1.6.*" "%ProgramFiles(x86)%\Java\jdk1.6.*") do (
      echo Checking %%j folder
      if exist "%%j\bin\java.exe" (
        echo Found java in %%j folder
        set JAVA6="%%j\bin\java.exe"
      )
    )
  ) else (
    echo Testing default folder
    if defined ProgramFiles (
    for /D %%j in ("%ProgramFiles%\jre6*" "%ProgramFiles%\jre1.6.*" "%ProgramFiles%\jdk1.6.*" "%ProgramFiles%\Java\jre6*" "%ProgramFiles%\Java\jre1.6.*" "%ProgramFiles%\Java\jdk1.6.*") do (
        echo Checking %%j folder
        if exist "%%j\bin\java.exe" (
          echo Found java in %%j folder
          set JAVA6="%%j\bin\java.exe"
        )
      )
    )
  )
)

:rerun
if %JAVA6% == "auto" (
  echo ERROR: 32-bit Java 6 not found!
  echo Please download and install from java.com
  pause
  exit
) else (
  echo Starting java from %JAVA6%
  %JAVA6% -classpath skin;lib\jinput.jar;lib\lwjgl.jar;lib\lwjgl_util.jar;lib\World of Minecraft.jar;lib\minecraft.jar -Djava.library.path=native\windows -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx800M Main

  if errorlevel 11 (
    if not exist lib\minecraft.jar (
      echo ========================================
      echo Warning: lib\minecraft.jar not found.
      echo Did you read instructions / download it?
      echo ========================================
    )

    echo ERROR: Failed to run minecraft
    echo JAVA6=%JAVA6%
    pause
    exit
  )

  if errorlevel 10 (
    goto rerun
  )

  if errorlevel 1 (
    if not exist lib\minecraft.jar (
      echo ========================================
      echo Warning: lib\minecraft.jar not found.
      echo Did you read instructions / download it?
      echo ========================================
    )

    echo ERROR: Failed to run minecraft
    echo JAVA6=%JAVA6%
    pause
    exit
  )
)

I am using the latest version of Opensuse.. Don't know if it is important.. just in case of.. What is the problem? Cuz, I don't get any of it =p

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
Wrong file. Linux uses the

Wrong file. Linux uses the .sh.

Metalpak
WoM Member
WoM Member: 26553
WoM Coins: -1
.sh

ok.. how do I open it?

Metalpak
WoM Member
WoM Member: 26553
WoM Coins: -1
new problem arrived

Now this is the problem..
please help =(

Compass initialized                                            
Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1678)                         
        at java.lang.Runtime.loadLibrary0(Runtime.java:840)                                 
        at java.lang.System.loadLibrary(System.java:1047)                                   
        at org.lwjgl.Sys$1.run(Sys.java:72)                                                 
        at java.security.AccessController.doPrivileged(Native Method)                       
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)                                         
        at org.lwjgl.Sys.loadLibrary(Sys.java:81)                                           
        at org.lwjgl.Sys.<clinit>(Sys.java:98)                                              
        at org.lwjgl.opengl.Display.<clinit>(Display.java:129)                              
        at com.mojang.minecraft.l.run(Unknown Source)                                       
        at java.lang.Thread.run(Thread.java:636)                                            
stopping...         

a-k-t-w
WoM Member
Members
WoM Member: 10425
WoM Coins: 0
Right, I've got it to work

Right, I've got it to work nicley. However, when I try and click it opens the ESC menu. Help!

Edit: Nevermind, didn't read the read me.

Zaiaku
WoM Member
Members
WoM Member: 99795
WoM Coins: 0
Minecraft not working

So, I have the same problem as Invisable had.

Using H4X's script, Not missing a letter or whatnot..:

#!/bin/sh
java -Xms800M -Xmx800M -classpath .:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar -Djava.library.path=native/linux Main

Checked JRE(Which I can only assume was Java Runtime Envirement) and Open JDK for newest updates...Both were and are up to date...

I has:
OpenJDK java 6 runtime
OpenJDK jaba 6 Web Start
Sun JRE 6 architectual.

When I run(Or try to run) minecraft-osx.sh from the terminal using sh minecraft-osx.sh I get:

$:~/Desktop/Minecraft$ sh minecraft-osx.sh
Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/MinecraftApplet
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApplet
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    ... 11 more
Could not find the main class: Main. Program will exit.

Any help?

also i should mention im using Ubuntu 10.04