cbz1845 / remotedroid

Automatically exported from code.google.com/p/remotedroid
0 stars 0 forks source link

Path problem finding config.xml #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build from source and run.

What is the expected output? What do you see instead?
Throws exception.

What version of the product are you using? On what operating system?
Current source as of 1/25/09. Windows XP

Please provide any additional information below.

 Current version built from source can not find config.xml on windows XP. 
Line 28 of KeyTranslator.java throws an exception because there is a
missing separator between the basePath and sPath.  I have modified the line
to include one in my build:
   this.myDoc = builder.parse( new File(AppFrame.basePath+"/"+sPath) );

Original issue reported on code.google.com by Chet.Bri...@gmail.com on 25 Jan 2010 at 5:10

GoogleCodeExporter commented 8 years ago
This is an issue with running from a .jar vs. running outside of a .jar. As 
long as
you package everything up, it'll work fine.

Original comment by gall.bla...@gmail.com on 10 Feb 2010 at 12:33

GoogleCodeExporter commented 8 years ago
I have the fix for this.

AppFrame.java: Line 76 should be
                basePath = System.getProperty("user.dir") + "\\res\\";

instead of
                basePath = System.getProperty("user.dir");

I would commit if I could :).

Original comment by nicolas....@gmail.com on 27 Feb 2010 at 6:39