Skip to Content
0
Apr 09, 2010 at 03:44 PM

Accessing a file in a jar

42 Views

Hi All,

I have a program (java mapping) in which i want to access some values from a file. Hence i have the file as part of my imported archive (jar)

But seems in PI, it doesn't recognize the file.

Ex.

my jar file contains

myprogram.java

myprogram.class

myfile.txt

and myfile.txt is being refereed by the program (it works in standalone) but in PI it fails to find the file

Any comments? I am on PI 7.1 EHP1

Note: I can place the file on the PI server directory and refer it in my program but I dont want to do so and want to make the file as part of the imported archive only.

~~ Shabz