Solved: Linux Wrapper Glitch
5 replies [Last post]
eilios
WoM Member
Members
WoM Member: 2967
WoM Coins: -1

Every time I try to run the custom client on Linux, I get this error.

Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -client	  to select the "client" VM
    -server	  to select the "server" VM
    -hotspot	  is a synonym for the "client" VM  [deprecated]
                  The default VM is server, 
                  because you are running on a server-class machine.

    -cp 
    -classpath 
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D=
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:...|:]
    -enableassertions[:...|:]
                  enable assertions
    -da[:...|:]
    -disableassertions[:...|:]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:[=]
                  load native agent library , e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:[=]
                  load native agent library by full pathname
    -javaagent:[=]
                  load Java programming language agent, see java.lang.instrument
    -splash:
                  show splash screen with specified image
Failed to load Main-Class manifest attribute from
/home/eilios/Documents/minecraft/lib/lwjgl.jar
Failed to load Main-Class manifest attribute from
/home/eilios/Documents/minecraft/lib/lwjgl_util.jar
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:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	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)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApplet
	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)
	... 12 more
Could not find the main class: Main. Program will exit.
invalid file (bad magic number): Exec format error

All attempts to fix the code does not work. Any ideas how to fix this?

eilios
WoM Member
Members
WoM Member: 2967
WoM Coins: -1
NVM, fixed. I forgot the

NVM, fixed. I forgot the shebang, rofl.

EDIT: Now when I right click it presses escape, which is very annoying.
The error is

Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)

Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)

Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)

Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)

Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)

Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)

Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)

Linux plugin claims to have found 0 controllers
Flood filled 100938 tiles in 36.62938 ms
LavaCount: 16
Key: 1
Key: 1
Key: 1
Key: 30
Key: 17
Key: 30
Key: 30
Key: 17
Key: 30
Key: 17
Key: 32
Key: 32
Key: 57
Key: 57
Key: 57
Key: 57
Key: 57
Key: 57
Key: 57
Key: 57
Key: 30
Key: 30
Key: 57
Key: 57
Key: 1
Key: 17
Key: 57
Key: 57
Key: 30
Key: 30
Key: 30
Key: 30
Key: 57
Key: 57
stopping...

ummwat
WoM Member
Members
WoM Member: 375
WoM Coins: 13
That's weird...

It basically says its failing to find any controller device plugged in, and stops.

Do you have your keyboard plugged in properly?
If so, I don't know...

eilios
WoM Member
Members
WoM Member: 2967
WoM Coins: -1
I fixed it by running it as

I fixed it by running it as super user, but that doesn't fix the glitch. Any time I right/left click it opens the menu, and I am unable to change menu settings because left/right clicking will open the menu again.

triddin
WoM Developer
WoM Admins
WoM Member: 16
WoM Coins: 8565
To fix this:

#1: Checkout the new version 1.4 download here.
#2: Checkout the focus hack here
#3: Chown those dev files so that the logged in user has read/write access to them.

H4X
WoM Founder
WoM Admins
WoM Member: 3
WoM Coins: 6963
Resolved

StayFocus hack fixes this issue.

Thread closed.