Page 1 of 5

Crashing on startup (MAC)

PostPosted: Mon Nov 05, 2012 9:17 pm
by HasseKebab
If you have this issue, try the solutions below.

Code: Select all
javax.media.opengl.GLException: java.lang.NoClassDefFoundError: apple/awt/ComponentModel
   at com.sun.opengl.impl.Java2D.invokeWithOGLContextCurrent(Java2D.java:296)
   at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:266)
   at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
   at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
   at haven.HavenPanel.uglyjoglhack(HavenPanel.java:382)
   at haven.HavenPanel.run(HavenPanel.java:416)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: apple/awt/ComponentModel
   at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
   at com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:56)
   at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable$1.run(MacOSXOnscreenGLDrawable.java:165)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable.lockSurface(MacOSXOnscreenGLDrawable.java:163)
   at com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:57)
   at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
   at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:182)
   at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
   at sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:234)
Caused by: java.lang.ClassNotFoundException: apple.awt.ComponentModel
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:356)


***SOLUTION***

nostra wrote:I SOLVED IT!

Step 1: Uninstall your Java 7 stuff
Step 2: Install this http://support.apple.com/kb/DL1572?viewlocale=de_DE
Step 3: Run your Salem with the 1.6 version with direct path (from command line):
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javaws /path/to/game/salem.jnlp

It works perfect!!

Re: Crashing on startup (MAC)

PostPosted: Tue Nov 06, 2012 6:27 am
by MagicManICT
loftar posted up a reply earlier (saw your replay to it). He said that there is quite likely a problem with your Java installation. The only possible fix you can do is reinstall Java. Something may have become corrupted. It may be that a file that should have been saved to your computer didn't or is corrupted, so downloading the client again before reinstalling might fix. (A hard drive scan probably may be a good idea.)

Re: Crashing on startup (MAC)

PostPosted: Tue Nov 06, 2012 8:12 am
by HasseKebab
Ive found where the file should be and its not there, and i cannot reinstall my Client since it just starts and crashes, i have reinstalled java millions times now :cry:

Re: Crashing on startup (MAC)

PostPosted: Tue Nov 06, 2012 1:41 pm
by MagicManICT
Then if I understand correctly, you're only option is to contact Apple or run wine or another Windows on *nix tool.

Re: Crashing on startup (MAC)

PostPosted: Tue Nov 06, 2012 4:46 pm
by HasseKebab
Can i manually re-install Salem to my mac somehow?

Re: Crashing on startup (MAC)

PostPosted: Tue Nov 06, 2012 6:13 pm
by MagicManICT
I'm not used to using a Mac, so I'm not familiar with the jargon and program/group names.

There should be a place to set Java options (this would be the Java control panel in Windows). In that, you should be able to set temporary internet files storage as well as manage the programs stored. Clear out this cache (or at least Salem from the cache). Here's a short pictorial guide on doing it in various operating systems. OS X is a bit farther down the page. Once it's cleared, go back to the Salem home page or Account page and download the .jnlp file again (or if you saved it to your computer, you can launch from there).

Re: Crashing on startup (MAC)

PostPosted: Wed Nov 07, 2012 10:42 am
by HasseKebab
Well it didn't fix it :/
seems like i have to goto java support.

Re: Crashing on startup (MAC)

PostPosted: Wed Nov 07, 2012 4:03 pm
by DeputyLunchbox
Bump.

I am also having the exact same issue. I have followed the recommended fixes with no results.

Re: Crashing on startup (MAC)

PostPosted: Wed Nov 07, 2012 4:54 pm
by HasseKebab
DeputyLunchbox wrote:Bump.

I am also having the exact same issue. I have followed the recommended fixes with no results.


Im glad im not the only one with this issue :)
btw are you a mac user?

Re: Crashing on startup (MAC)

PostPosted: Wed Nov 07, 2012 5:34 pm
by DeputyLunchbox
Yes, I am using an iMac.