I occasionally try using RM, though I haven't ever been serious about it. I'm using a linux machine as my JP1 host, so eventually I'd like to move to rm (ir works fine via wine, but of course km is out).
Anyway, I've had a problem the last couple of times I've used RM, which I think is related simply to file names. When I try to load my remote (URC 9960), I get an error dialog, an rmaster.err reports:
java.io.FileNotFoundException: /home/share/rm/images/urc-9960.map (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at com.hifiremote.jp1.Remote.readMapFile(Remote.java:1095)
at com.hifiremote.jp1.Remote.load(Remote.java:211)
at com.hifiremote.jp1.KeyMapMaster.setRemote(KeyMapMaster.java:528)
at com.hifiremote.jp1.KeyMapMaster.actionPerformed(KeyMapMaster.java:600)
and so on (I think this is enough to find the code --- if you want the complete stack trace, let me know).
I'm guessing this is simply because *nix is case-sensitive wrt filenames, and windows is not --- the file in the images directory is called URC-9960.map.
Cheers,
Ken
Remote Master on Linux
Moderator: Moderators
-
kenyarnall
- Posts: 35
- Joined: Thu Sep 18, 2003 4:14 pm
- Location: Pennsylvania
-
kenyarnall
- Posts: 35
- Joined: Thu Sep 18, 2003 4:14 pm
- Location: Pennsylvania
Well, RM gets the name of the .map from the .rdf file, and the name of the .jpg file from the .map file.
The 9960 RDF files specify urc-9960.map, which in turn specifies URC-9960.JPG (note the case of the extension) Try editing the .map file and changing the extension to lower case.
Nils, are you watching?
The 9960 RDF files specify urc-9960.map, which in turn specifies URC-9960.JPG (note the case of the extension) Try editing the .map file and changing the extension to lower case.
Nils, are you watching?
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
-
Nils_Ekberg
- Expert
- Posts: 1689
- Joined: Sat Aug 02, 2003 2:08 pm
- Location: Near Albany, NY
I assume this means Linux wants matching case which windows/Java does not care about. I guess the answer is to match the case in all iterations of file naming.gfb107 wrote:Well, RM gets the name of the .map from the .rdf file, and the name of the .jpg file from the .map file.
The 9960 RDF files specify urc-9960.map, which in turn specifies URC-9960.JPG (note the case of the extension) Try editing the .map file and changing the extension to lower case.
Nils, are you watching?
If I understand this correctly I will take care of it before next distribution.
-
kenyarnall
- Posts: 35
- Joined: Thu Sep 18, 2003 4:14 pm
- Location: Pennsylvania
Nils, you are correct. I did the following:Nils_Ekberg wrote:I assume this means Linux wants matching case which windows/Java does not care about. I guess the answer is to match the case in all iterations of file naming.gfb107 wrote:Well, RM gets the name of the .map from the .rdf file, and the name of the .jpg file from the .map file.
The 9960 RDF files specify urc-9960.map, which in turn specifies URC-9960.JPG (note the case of the extension) Try editing the .map file and changing the extension to lower case.
Nils, are you watching?
If I understand this correctly I will take care of it before next distribution.
(1) rename URC-9960.map to urc-9960.map
(2) edit urc-9960.map to change .JPG to .jpg
Now rm runs without error, and loads the image for the 9960 correctly.
Ken
Allow me to suggest that rather than renaming URC-9960.map to urc-9960.map, we edit the URC-9960 RDF to refer to URC-9960.map
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
-
kenyarnall
- Posts: 35
- Joined: Thu Sep 18, 2003 4:14 pm
- Location: Pennsylvania