MineCraft flying on *nix
4 replies [Last post]
Tim
WoM Member
Members
WoM Member: 4252
WoM Coins: 0

I have this piece here:

<br>java -Xmx256m -classpath .:lib/jinput.jar:lib/lwjgl.jar:lib/lwjgl_util.jar:lib/minecraft.jar -Djava.library.path=native/linux Main<br>

in a (*.sh) file.  Executing as normal user or superuser, this error is returned:

tim@tim-laptop:~$ sh '/home/tim/Downloads/fly/minecraft.sh'
Exception in thread "main" java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Main.  Program will exit.
tim@tim-laptop:~$ sh '/home/tim/Downloads/fly/minecraft.sh'
Exception in thread "main" java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Main.  Program will exit.

Is anything else required in the (*.sh) file or does the content seem to be correct?

Tim
WoM Member
Members
WoM Member: 4252
WoM Coins: 0
woah, seems like the

woah, seems like the formatting was a little off.  Here are the pastebin links:

http://pastebin.com/m115fb16d

http://pastebin.com/m60d6559e

Sorry for the double post.

eilios
WoM Member
Members
WoM Member: 2967
WoM Coins: -1
Use
Tim
WoM Member
Members
WoM Member: 4252
WoM Coins: 0
Thanks!  However, I receive

Thanks!  However, I receive this:

"Unknown post id, it may have expired or been deleted"

H4X
WoM Founder
WoM Admins
WoM Member: 3
WoM Coins: 6963
Here is my working ubuntu script

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

on 1 line obviously...