You are not logged in.

#1 2009-04-21 15:36:04

hypnotic_meat
Member
Registered: 2009-04-15
Posts: 32

Executing a JAR [SOLVED]

I'm having some trouble executing a specific JAR when X starts up.  I'm trying to create a kiosk environment where a java app launches as soon as X starts.  I made a shell script that executes the jar using the following:

java -cp {correct path to JAR containing main method} -jar {JAR name}

Everything works peachy when I run startx if I've cd'd into the directory that the JAR I want to execute is sitting.  However, if I navigate away from that folder, X can no longer access the JAR.  What am I missing here?

Any help is greatly appreciated.

Last edited by hypnotic_meat (2009-04-21 17:41:56)

Offline

#2 2009-04-21 17:41:45

hypnotic_meat
Member
Registered: 2009-04-15
Posts: 32

Re: Executing a JAR [SOLVED]

Looks like the -cp option was unnecessary and simply doing: java -jar {full path to the JAR} did the trick.

Offline

Board footer

Powered by FluxBB