Problem running Minecraft in Java (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
dalebednell
Posts: 120
Joined: Fri 12 Feb 2010, 09:44
Location: portugal
Contact:

Problem running Minecraft in Java (Solved)

#1 Post by dalebednell »

Hi
Got a little problem with java

sh-4.1# java jar minecraft.jar
Exception in thread "main" java.lang.NoClassDefFoundError: jar
Caused by: java.lang.ClassNotFoundException: jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: jar. Program will exit.
sh-4.1# last time i used every thing worked well.
Does any one have any idea what to do here :roll:
Last edited by dalebednell on Tue 05 Feb 2013, 21:29, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

java jar minecraft.jar
It needs to be

Code: Select all

java -jar minecraft.jar
Note the dash character.

User avatar
dalebednell
Posts: 120
Joined: Fri 12 Feb 2010, 09:44
Location: portugal
Contact:

java

#3 Post by dalebednell »

Hi
Thanks for your help yes it did work your way but strange it work ok for me before the way i put it's ok thanks

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »


Post Reply