Remote Master on Linux

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
kenyarnall
Posts: 35
Joined: Thu Sep 18, 2003 4:14 pm
Location: Pennsylvania

Remote Master on Linux

Post by kenyarnall »

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
kenyarnall
Posts: 35
Joined: Thu Sep 18, 2003 4:14 pm
Location: Pennsylvania

Post by kenyarnall »

Hmmm. Followup: I copied the URC-9960.(map|jpg) files to urc-*, and re-ran RM. Now it runs, but I don't get to see a picture of my remote.

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

Post by gfb107 »

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?
Nils_Ekberg
Expert
Posts: 1689
Joined: Sat Aug 02, 2003 2:08 pm
Location: Near Albany, NY

Post by Nils_Ekberg »

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?
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.

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

Post by kenyarnall »

Nils_Ekberg wrote:
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?
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.

If I understand this correctly I will take care of it before next distribution.
Nils, you are correct. I did the following:

(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
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

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
kenyarnall
Posts: 35
Joined: Thu Sep 18, 2003 4:14 pm
Location: Pennsylvania

Post by kenyarnall »

gfb107 wrote: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
I didn't realize that that was where the map file was named. Yes, that works too (and is of course a better solution)

Ken
Post Reply