View previous topic :: View next topic |
Author |
Message |
kenyarnall
Joined: 18 Sep 2003 Posts: 35 Location: Pennsylvania |
Posted: Sat Feb 14, 2004 2:31 pm Post subject: Remote Master on Linux |
|
|
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 |
|
Back to top |
|
|
kenyarnall
Joined: 18 Sep 2003 Posts: 35 Location: Pennsylvania |
Posted: Sat Feb 14, 2004 2:36 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
gfb107 Expert
Joined: 03 Aug 2003 Posts: 3411 Location: Cary, NC |
|
Back to top |
|
|
Nils_Ekberg Expert
Joined: 02 Aug 2003 Posts: 1689 Location: Near Albany, NY |
Posted: Sat Feb 14, 2004 5:19 pm Post subject: |
|
|
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
Files Section
Diagnosis File Section |
|
Back to top |
|
|
kenyarnall
Joined: 18 Sep 2003 Posts: 35 Location: Pennsylvania |
Posted: Sat Feb 21, 2004 10:39 am Post subject: |
|
|
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 |
|
Back to top |
|
|
gfb107 Expert
Joined: 03 Aug 2003 Posts: 3411 Location: Cary, NC |
|
Back to top |
|
|
kenyarnall
Joined: 18 Sep 2003 Posts: 35 Location: Pennsylvania |
Posted: Sat Feb 21, 2004 2:26 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|