Thread: Ipk Packager
View Single Post
Old 03/22/2010, 10:41 PM   #13 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Quote:
Originally Posted by DrewPre View Post
I have a java service that I have created a ipk for.....however, the script files reside in the Jar file with the class file.

The service fails though....saying it can't find the sript file specified.

If the path within the Jar file is as stated below how should I code the JAVA file so that it references the right path in order to see the script file.

Jar File:
Code:
/com/tntservices/ppbkuservice/PPBkuService.class
/com/tntservices/ppbkuservice/ppbku
/com/tntservices/ppbkuservice/pprstr
/com/tntservices/ppbkuservice/ppfldr
/com/tntservices/ppbkuservice/bldIncList
/com/tntservices/ppbkuservice/bldExList
my java source references "ppbku" as the executable script file currently.

Should it be the full path as specified??? edit: I am lost cuz that didn't work either.
hmm, this seems completely off topic. Is there an Ipk Packager connection I'm missing? Might be best to create a separate thread if it's unrelated

For my services, whenever I need to extract a script file to execute, I just use something like super.getClass().getResourceAsStream("resources/script.sh") and write the stream out to a new file in /tmp/.
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote