JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Remote Master on Linux

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
kenyarnall



Joined: 18 Sep 2003
Posts: 35
Location: Pennsylvania

                    
PostPosted: Sat Feb 14, 2004 2:31 pm    Post subject: Remote Master on Linux Reply with quote

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
View user's profile Send private message
kenyarnall



Joined: 18 Sep 2003
Posts: 35
Location: Pennsylvania

                    
PostPosted: Sat Feb 14, 2004 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Sat Feb 14, 2004 2:54 pm    Post subject: Reply with quote

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?
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Nils_Ekberg
Expert


Joined: 02 Aug 2003
Posts: 1689
Location: Near Albany, NY

                    
PostPosted: Sat Feb 14, 2004 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kenyarnall



Joined: 18 Sep 2003
Posts: 35
Location: Pennsylvania

                    
PostPosted: Sat Feb 21, 2004 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Sat Feb 21, 2004 12:50 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
kenyarnall



Joined: 18 Sep 2003
Posts: 35
Location: Pennsylvania

                    
PostPosted: Sat Feb 21, 2004 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control