jemplode won't start

Posted by: Shonky

jemplode won't start - 12/04/2006 20:10

On a fairly new install of WinXP Pro, I can't get jemplode to start. I've got the latest .jar file from jempeg.org and I removed and reinstalled the latest jre from Sun.

When it starts it just puts up the "Reunion Tour" splash screen and stops. The javaw.exe process is not using 100% CPU and allocates about 16 megs of RAM. Nothing happens even after minutes on a fast machine.

I can't really think of anything related that might break it. I do have the Nokia PC Suite software installed which had associated itself with .jar files but I was specifically selecting the Sun java interpreter. After reinstalling the jre it took back the file association anyway.

I've never had a this problem before. Any ideas?
Posted by: wfaulk

Re: jemplode won't start - 12/04/2006 20:59

You could try running it from the command line by typing "c:\path\to\java.exe -jar jemplode.jar" and see if it prduces any output.
Posted by: Shonky

Re: jemplode won't start - 12/04/2006 22:02

OK thanks Bitt. This is what I'm getting, but it doesn't mean a hell of a lot to me although a null pointer is obviously a bad thing:

C:\Program Files\Java\jre1.5.0_06\bin>java.exe -jar jemplode.jar
java.lang.NullPointerException
at com.sun.java.swing.plaf.windows.XPStyle.getString(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.getString(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.<init>(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.getXP(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsTreeUI$ExpandedIcon.<init>(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsTreeUI$ExpandedIcon.createExpandedIcon(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initComponentDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Unknown Source)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
at org.jempeg.empeg.manager.EmplodeUI.<init>(EmplodeUI.java:204)
at org.jempeg.empeg.manager.Main.start(Main.java:83)
at org.jempeg.empeg.manager.Main.main(Main.java:133)

Exception in thread "main" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JRootPane.createGlassPane(Unknown Source)
at javax.swing.JRootPane.<init>(Unknown Source)
at javax.swing.JFrame.createRootPane(Unknown Source)
at javax.swing.JFrame.frameInit(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at org.jempeg.empeg.manager.EmplodeUI.<init>(EmplodeUI.java:214)
at org.jempeg.empeg.manager.Main.start(Main.java:83)
at org.jempeg.empeg.manager.Main.main(Main.java:133)
Posted by: Shonky

Re: jemplode won't start - 13/04/2006 03:42

I thought I'd have a look at the source (although I know nothing about java). Unfortunately the link is broken.

It works fine on other machines for me just fine - just not the one I want to use it on. In fact, I'm pretty certain it even worked on this machine at one stage.
Posted by: wfaulk

Re: jemplode won't start - 13/04/2006 13:22

Well, it's a problem with the "Look-and-Feel" setting, which I'd suggest you change, except the place to change it is inside the application, which won't open. Under Unix platforms, you could change that by editing the .openrio/jempegrc in your home directory, but I don't know where that would exist under Windows. The registry, maybe? Nope. Looks like "C:\Documents and Settings\<username>\.openrio\jempegrc". Open it with a text editor (like Notepad) and find the "jempeg.lookAndFeel" setting and change it (from "system"?) to "metal". Then try restarting it.
Posted by: Shonky

Re: jemplode won't start - 13/04/2006 20:26

Thanks Bitt. That wasn't it exactly, but you got me on the right track. My Windows user name has a space in it. The .openrio directory was there in the profile but there was no jempegrc file - obviously I haven't run it on this machine before. I removed the .openrio directory and ran it again. It created the directory and that was it.

Anyway, I created a new profile without a space in it and it seems to work fine. However, I'd like to be able to run it under my profile that has a space in it.

I would have thought for sure someone would have run it with a Windows user name with a space in it before.

Thanks for your help Bitt. At least I now know what's wrong.
Posted by: matthew_k

Re: jemplode won't start - 13/04/2006 20:42

Quote:
I would have thought for sure someone would have run it with a Windows user name with a space in it before.

Just for the reccord, OSX takes the space out of the home directory name if the username has a space. Isn't it nice when things just work.(*)?

Matthew