I tried many things.. and got many errors, until now, I'm stuck here in Terminal
[: 15: true: unexpected operator
I use Linux Mint 9, and here's the .sh file that I'm using:
#!/bin/sh
JAVA=/usr/lib/jvm/java-6-sun-1.6.0.20/jre/bin/java
DIR=`echo $0 | sed -E 's/\/[^\/]+$/\//'`
if [ "X$0" != "X$DIR" ]; then
cd $DIR
fi
RUN=true
while [ $RUN == "true" ]; do
$JAVA #!/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
if [ $? -ne 10 ]; then RUN=false; fi
done
What am I doing wrong? I've also copied H4X's stuff up there.
If there's something wrong with the .sh file, please edit it and repost it if you don't mind.
Thank you!
Can someone tell me what I'm doing wrong? This is what my dad posted :S --
I modified the script file minecraft-osx.sh per the instructions (I
hope I did that right) The java file was under /usr/bin. I made the
permissions so the script file was executable and then tried to run it
straight out and also in a terminal and nothing happens. I looked at
the script file in hopes of some clarity, but this was unsuccessful. I
can include the script file. Can you tell me where I am going wrong????
Helppppp,
Jim
Also, sorry for multiple posts. It looks like you have modified it just like me. Probably why we are running into the same problems. My dad's Question is what does "unexpected operater" mean?
Please someone HELP!
Change #!/bin/sh
to
#!/bin/bash
use this instead of everything:
java -classpath skin:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar -Djava.library.path=native/linux -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx800M Main
We made some changes to the script per some of the suggestions and actually got some different error message. So, let me post the sript...
------------------------------------------------------------------------
#!/bin/bash
JAVA=/usr/bin/java
DIR=`echo $0 | sed -E 's/\/[^\/]+$/\//'`
if [ "X$0" != "X$DIR" ]; then
cd $DIR
fi
RUN=true
while [ $RUN == "true" ]; do
$JAVA -classpath skin:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/World of Minecraft.jar:lib/minecraft.jar -Djava.library.path=native/linux -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx800M Main
if [ $? -ne 10 ]; then RUN=false; fi
done
------------------------------------------------------------------------------
and now the error message we got:
-------------------------------------------------------------------------------adam@JARL:~/Minecraft_womclient$ ./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.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApplet
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
Could not find the main class: Main. Program will exit.
-------------------------------------------------------------------------------
We did try a lower case java instead of a $JAVA, but got the same result either way. Changing the shbang to #!/bin/bash and changing the section in there that said macos to linux were the changes that made the difference. Can anyone tell us why we are getting this error????
Jim
WoM Coins: 12
WOW! I got the same exact error, "[: 15: true: unexpected operator"! Well. What I did do is modify the OSX file. Did you do the same? No one will post back on my forum topic. I don't get it. I'm using Debian, I think (I can't remember well because of bad memory @.@).