Resolved: Error whilst trying to run the sh file; Linux
4 replies [Last post]
InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18

Linux

invis@invis-laptop:~$ '/home/invis/Desktop/World of Minecraft/minecraft-osx.sh'
[: 14: true: unexpected operator

How is it fixed?


==Update==
See H4X's post below.

Daedal
WoM Member
Members
WoM Member: 297
WoM Coins: 49
Invis.. asking or help? oh

Invis.. asking or help? oh how the tables have turned.
oh, linux. nvm. thought it was mac

InvisiblePerson
WoM Member
Contributor
WoM Member: 446
WoM Coins: 18
I'm not used to linux, at

I'm not used to linux, at all. The only reason I have it is for emergencies. But even with emergencies, I still need to be connected to World of Minecraft.

#!/bin/sh

JAVA=/usr/java/jre1.6.0_17/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/macosx -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx700M Main
    if [ $? -ne 10 ]; then RUN=false; fi
done

All that was altered was the "JAVA=" namespace.

macrocat
WoM Member
Members
WoM Member: 7886
WoM Coins: 0
I have this same problem.

I have this same problem. Anyone able to help?

H4X
WoM Founder
WoM Admins
WoM Member: 3
WoM Coins: 6963
Heres my script for linux