cutelyaware / magiccube4d

Automatically exported from code.google.com/p/magiccube4d
Other
71 stars 16 forks source link

Can't find class def #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Invoke jar using java -jar

What is the expected output? What do you see instead?
The jar crashes with an exception traceback:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: sun/swing
/plaf/synth/SynthUI
        at de.javasoft.plaf.synthetica.SyntheticaDefaultLookup.getDefault(Synthe
ticaDefaultLookup.java:105)
        at sun.swing.DefaultLookup.get(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.getInputMap(Unknown Source
)
        at javax.swing.plaf.basic.BasicButtonListener.installKeyboardActions(Unk
nown Source)
        at javax.swing.plaf.basic.BasicButtonUI.installKeyboardActions(Unknown S
ource)
        at javax.swing.plaf.basic.BasicButtonUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.AbstractButton.setUI(Unknown Source)
        at javax.swing.JButton.updateUI(Unknown Source)
        at javax.swing.AbstractButton.init(Unknown Source)
        at javax.swing.JButton.<init>(Unknown Source)
        at javax.swing.JButton.<init>(Unknown Source)
        at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.installCompatibilit
yDefaults(SyntheticaLookAndFeel.java:702)
        at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel$2.propertyChange(Sy
ntheticaLookAndFeel.java:360)
        at java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
wn Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at javax.swing.UIManager.setLookAndFeel(Unknown Source)
        at com.superliminal.magiccube4d.MC4DSwing$27.run(MC4DSwing.java:1297)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: sun.swing.plaf.synth.SynthUI
        at java.net.URLClassLoader$1.run(Unknown Source)
        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)
        ... 34 more

What version of the product are you using? On what operating system?
Using mc4d-4.0.181.jar with Windows 7.

Please provide any additional information below.
Since it is a JRE class, I have no idea what's going on. Being a java dev 
myself I messed with the jar a little, but it still wouldn't open.

Original issue reported on code.google.com by cameron.mcwilliams8 on 5 Jun 2012 at 12:24

GoogleCodeExporter commented 9 years ago
I verified this is a problem with Java7.  From issue 109: "Problem is class 
SynthUI. In Java 6 it is in package sun.swing.plaf.synth, while in Java 7 it is 
in javax.swing.plaf.synth. This causes a NoClassDefFoundError when attempting 
to run with Java 7."

Hopefully we can get this corrected soon.  A workaround in the meantime is to 
uninstall Java7.  Java6, update 32 worked for me.

Original comment by roi...@gmail.com on 5 Jun 2012 at 2:17

GoogleCodeExporter commented 9 years ago
Hmmm...Okay thanks, I will try that, I had this happen with JRE 6 and 7 latest 
versions of both.

Original comment by cameron.mcwilliams8 on 5 Jun 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Fixed in download mc4d-4.0.185.jar.

Original comment by roi...@gmail.com on 8 Jun 2012 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by roi...@gmail.com on 8 Jun 2012 at 3:41

GoogleCodeExporter commented 9 years ago
Thank you! I can now enjoy this great program!

Original comment by cameron.mcwilliams8 on 8 Jun 2012 at 2:29