[fedora-java] Creating a wrapper for a application in /usr/share/%{name}

Orion Poplawski orion at cora.nwra.com
Mon Dec 10 05:53:26 UTC 2012


I'm trying to create a wrapper for a java application (kmttg).  I need 
to have the application jar file and helper files/scripts in 
/usr/share/kmttg.

I've tried:

%jpackage_script com.tivo.kmttg.main.kmttg 
'-Djava.net.preferIPv4Stack=true' '-Xmx256m' 
Chart2D:jmdns:swingx:%{_datadir}/%{name}/%{name}.jar %{name} true

But that doesn't work because build-classpath can't handle full paths to 
jars.  Is their a better way to achieve this?  The application appears 
to look for its helper files in the directory relative to its jar file. 
  I suppose I could install into /usr/share/java/kmttg, but that doesn't 
feel quite right.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the java-devel mailing list