can't run .jar file using java launcher in Mac OSX 10.6

Discussion in 'macOS' started by maclover2011, Jan 24, 2011.

  1. maclover2011 macrumors newbie

    Joined:
    Jan 24, 2011
    #1
    Hello guys,
    I am a new macbook pro (10.6) user. and I have difficulty to run a .jar file. This file runs very good on my window laptop. I did some google research but can not find a solution.
    I runed this .jar file using java launcher, but there is no response.
    Below is the console log message when I run the .jar file. (I check the java version on my mac pro, it is Java SE 6)

    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at javax.swing.plaf.metal.MetalSliderUI.installUI(MetalSliderUI.java:92)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.gui.MetalMThumbSliderUI.installUI(MetalMThumbSliderUI.java:37)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at javax.swing.JComponent.setUI(JComponent.java:662)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at javax.swing.JSlider.setUI(JSlider.java:300)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.gui.MThumbSlider.updateUI(MThumbSlider.java:45)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at javax.swing.JSlider.<init>(JSlider.java:261)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at javax.swing.JSlider.<init>(JSlider.java:167)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.gui.MThumbSlider.<init>(MThumbSlider.java:15)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp.createSliders(MyApp.java:1141)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp.createwindowingPanel(MyApp.java:1306)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp.createwidgetPanel(MyApp.java:1389)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp.createGUI(MyApp.java:1418)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp.access$700(MyApp.java:27)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at myctapp.MyApp$49.run(MyApp.java:1435)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    11-01-24 1:21:17 PM [0x0-0x57057].com.apple.JarLauncher[1178] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    In case you want to see this .jar file, you can download it at http://homepage.ntlworld.com/jfarrell/javactapp/download.html (don't worry, this is a safe site.)
    Hope someone can help me out. Thank you very much!
     
  2. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #3
    It seems that the app is launching, but is then crashing due to a bug.

    Code:
    11-01-24 1:21:17 PM	[0x0-0x57057].com.apple.JarLauncher[1178]	Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    11-01-24 1:21:17 PM	[0x0-0x57057].com.apple.JarLauncher[1178]	 at javax.swing.plaf.metal.MetalSliderUI.installUI(MetalSliderUI.java:92)
    11-01-24 1:21:17 PM	[0x0-0x57057].com.apple.JarLauncher[1178]	 at myctapp.gui.MetalMThumbSliderUI.installUI(MetalMThumbSliderUI.java:37)
     
  3. charles4u macrumors newbie

    Joined:
    Oct 13, 2011
    #4
    Hello,

    I have exactly the same problem.

    Building it on Netbeans, it open from the netbeans folder but not outside the folder.

    It's a desktop application.

    Thanks in advance,
    Charles
     

Share This Page