RM v1.26 on WinXP machine - problem solved

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

RM v1.26 on WinXP machine - problem solved

Post by The Robman »

I'm trying to use RM for the first time on my WinXP machine, having previously used it successfully on my Win98 machines.

I just downloaded v1.26 along with Java j2re-1_4_2_08-windows-i586-p.exe

When I double click on RemoteMaster.jar nothing happens, then when I check the rmaster.err file, I see this...
Caught exception in RemoteMaster.main()!
java.lang.NullPointerException
at com.hifiremote.jp1.Preferences.load(Preferences.java:34)
at com.hifiremote.jp1.KeyMapMaster.<init>(KeyMapMaster.java:92)
at com.hifiremote.jp1.RemoteMaster.createAndShowGUI(RemoteMaster.java:12)
at com.hifiremote.jp1.RemoteMaster.access$100(RemoteMaster.java:6)
at com.hifiremote.jp1.RemoteMaster$1.run(RemoteMaster.java:33)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Any clues?
Last edited by The Robman on Fri Jul 15, 2005 3:30 pm, edited 1 time in total.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Strange place for a NullPointer exception.

The problem is in the code for finding the default path to the RDF files.

Try creating an empty rdf folder in the foler where you installed RM.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Rob,

If you're still having trouble, download Test.jar to the folder where you installed RM. Then start up a command line prompt and type

Code: Select all

java -jar Test.jar
and then post the results here.
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

When I download the "Test.jar" file, it's really a file called Test.zip which contains Test.class and Manifest.mf, but just in case there was some larger picture that I was missing, I went ahead and tried the command line entry you siad, and as I expected I got the message "Unable to access jarfile Test.jar"

Is there really a Test.jar file you'd like me to try?
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
mtakahar
Expert
Posts: 281
Joined: Sun Aug 03, 2003 2:46 pm

Post by mtakahar »

Rob,

Try:

Code: Select all

java -jar Test.zip
or you can just rename it to Test.jar.

I think either your browser or download manager changed the file suffix (.jar file format is almost identical to .zip.)
Greg's link is really to a .jar file. I see: http://home.nc.rr.com/lbush2/Test.jar in my browser (Firefox 1.0.4) and it just creates Test.jar if I download it.


Hal
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Or, if you've unzipped it, just run

Code: Select all

java -cp . Test
Case is important.
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I just tried downloading the jar file at work and it downloads "as is", so I have no idea why it got converted to a zip file at home, so I'll give it another try.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
mtakahar
Expert
Posts: 281
Joined: Sun Aug 03, 2003 2:46 pm

Post by mtakahar »

The Robman wrote:I just tried downloading the jar file at work and it downloads "as is", so I have no idea why it got converted to a zip file at home, so I'll give it another try.
I've just tried IE. It pops up a dialog box saying:
Do you want to open or save this file?
Name: Test.zip
Type: zip Archive, 1.10 KB
From: home.nc.rr.com
IE seems to scan the file header and ignores the original file name suffix once it figures out the file format.

Hal
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Curiously, I'm using IE both at home and at work, but at work the file downloaded "as is".
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
ElizabethD
Advanced Member
Posts: 2348
Joined: Mon Feb 09, 2004 12:07 pm

Post by ElizabethD »

The Robman wrote:Curiously, I'm using IE both at home and at work, but at work the file downloaded "as is".
Rob, you once taught me a trick to tell IE to use All Files at the bottom.
The IE default on this file was win zip, but the file name did not have zip in it. Try that at home. I just did it at work but it needed the change.
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

ElizabethD wrote:
The Robman wrote:Curiously, I'm using IE both at home and at work, but at work the file downloaded "as is".
Rob, you once taught me a trick to tell IE to use All Files at the bottom.
The IE default on this file was win zip, but the file name did not have zip in it. Try that at home. I just did it at work but it needed the change.
If I did I forgot what the trick is.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

gfb107 wrote:Rob,

If you're still having trouble, download Test.jar to the folder where you installed RM. Then start up a command line prompt and type

Code: Select all

java -jar Test.jar
and then post the results here.
Having previously created an empty directory called "rdf", I renamed the file back to Test.jar and ran it, which gave the following results...
user.dir='C:\Documents and Settings\Owner\My Documents\b remotes files\RM'
Checking 'C:\Documents and Settings\Owner\My Documents\b remotes files\RM\rdf' - Passed, directory exists!
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Well, that didn't help any. Here's a version of RemoteMaster.jar that should put more information in rmaster.err.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

I'm betting you copied the directory structure from another PC, and on the other PC that directory existed on a drive that doesn't have a corresponding drive letter on the new PC. Either delete the RemoteMaster.properties or edit it and correct any saved paths.
The Robman
Site Owner
Posts: 22064
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

gfb107 wrote:I'm betting you copied the directory structure from another PC, and on the other PC that directory existed on a drive that doesn't have a corresponding drive letter on the new PC.
Excellent work detective, that is exactly what I did. I just deleted the properties file and voila, everything works again, thanks Greg!
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Post Reply