Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Minecraft crashes on launch

crash launch freebsd

  • Please log in to reply
10 replies to this topic

#1

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 14 June 2012 - 11:51 PM

Hi, I downloaded Minecraft on my FreeBSD machine but when I run it, it just crashes with a 'class not found' exception:
Java HotSpotâ„¢ Client VM warning: Can't detect initial thread stack location - find_vma failed
Exception in thread "main" java.lang.NoClassDefFoundError: minecraft/jar
Caused by: java.lang.ClassNotFoundException: minecraft.jar
		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:306)
		at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: minecraft.jar.  Program will exit.
Does anyone know what the problem might be and how I can fix it please? Thanks for your time.

Register or log in to remove.

#2

starlinvf
    starlinvf

    Glowstone Miner

  • Members
  • 3169 posts

Posted 15 June 2012 - 03:20 AM

What version java are you using?  And whats the command you crafted to launch the game?

#3

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 15 June 2012 - 01:11 PM

I run the game with "java minecraft.jar" from a terminal. I'm not entirely sure which JVM I'm using at the moment, I've tried several and none of them seem to work. "java -version" gives:
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode)
So possibly I'm using 'HotSpot', whatever that is.

#4

gerbil
    gerbil

    Support Guru

  • Members
  • 4916 posts

Posted 15 June 2012 - 02:15 PM

you're doing it wrong.

Follow the directions posted on the download page.

#5

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 15 June 2012 - 11:43 PM

What, you mean the bit about using the Sun JVM? Like I said, I've tried several (including the one from Sun), and none of them work. The current one is just the latest one I've tried.

#6

starlinvf
    starlinvf

    Glowstone Miner

  • Members
  • 3169 posts

Posted 16 June 2012 - 12:57 AM

View PostWSabey, on 15 June 2012 - 01:11 PM, said:

I run the game with "java minecraft.jar" from a terminal. I'm not entirely sure which JVM I'm using at the moment, I've tried several and none of them seem to work. "java -version" gives:
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode)
So possibly I'm using 'HotSpot', whatever that is.



Your command is incomplete. Like really incomplete.  Taken from the download page:

java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame

At minimum you needed 1 switch to execute the jar, and you didn't even include it.    Please hand over your geek card.  Posted Image

#7

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 16 June 2012 - 12:21 PM

Ah, I forgot the -jar switch, right? I don't use java much. The download page says that the provided jar should be executable as-is though, the -Xm switches are just for memory allocation. And I have progress! The login window appears, then when I log in I get "Failed to launch: Fatal error occured (2): Null". (Stack trace from terminal window below)
java.lang.NullPointerException
at net.minecraft.GameUpdater.fatalErrorOccured(GameUpdater.java:867)
at net.minecraft.GameUpdater.loadJarURLs(GameUpdater.java:202)
at net.minecraft.GameUpdater.run(GameUpdater.java:221)
at net.minecraft.Launcher$1.run(Launcher.java:75)
Fatal error occured (2): null
java.lang.NullPointerException
at net.minecraft.GameUpdater.fatalErrorOccured(GameUpdater.java:867)
at net.minecraft.GameUpdater.loadJarURLs(GameUpdater.java:202)
at net.minecraft.GameUpdater.run(GameUpdater.java:221)
at net.minecraft.Launcher$1.run(Launcher.java:75)
This happens regardless of whether I just run with the -jar switch, or the class path search and memory allocation switches. Still, it's progress, when I forgot the -jar switch it wasn't even leaving the terminal. Anyone know what this error is about?

#8

SkyJP
    SkyJP

    Iron Miner

  • Members
  • 273 posts
  • Location: Behind you.
  • Minecraft: SkyJP

Posted 16 June 2012 - 12:41 PM

View Poststarlinvf, on 16 June 2012 - 12:57 AM, said:

Your command is incomplete. Like really incomplete.  Taken from the download page:

java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame

Doesn't seem to work for me, but

 java -jar minecraft.jar 

Or adjusting to your RAM:

 java -Xmx*M -Xms*M -jar minecraft.jar 


#9

starlinvf
    starlinvf

    Glowstone Miner

  • Members
  • 3169 posts

Posted 18 June 2012 - 07:49 PM

Try logging into the MC site and see if the in-browser version will launch.

http://www.minecraft.net/play

#10

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 19 June 2012 - 12:37 AM

No, it says 'Missing Plug-in', even though I already installed the plugin according to http://www.java.com/...nux_install.xml. (Closest I could find, all I could find specific to BSD was the command-line one)

#11

WSabey
    WSabey

    Tree Puncher

  • Members
  • 18 posts

Posted 21 June 2012 - 10:51 PM

Does anyone have any idea what the problem could be?