[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Doubt about a java version of a package



On Wed, Oct 24, 2007 at 10:48:31PM -0400, Muammar El Khatib wrote:
> I have a package (yacas [0]) which is providing a java-based version
> of itself on its latest upstream version. I have read the java-policy.
> I read that the file (in my case a .jar one)  must be executable and
> installed in /usr/bin. What I am not sure it's how the application
> should be launched when it's installed in Debian.

As far as I can tell, the JAR must be put in /usr/share/java, and the
executable must be a wrapper script which calls the java interpreter
with the right jar. For example, in case of JFTP:

[kumar@debian ~] ls -l /usr/share/java/jftp*
-rw-r--r-- 1 root root 466158 2007-10-12 10:57 /usr/share/java/jftp-1.51~pre3.jar
lrwxrwxrwx 1 root root     18 2007-10-25 08:29 /usr/share/java/jftp.jar -> jftp-1.51~pre3.jar

And /usr/bin/jftp has this:
#!/bin/sh
/usr/lib/jvm/java-6-sun/jre/bin/java -jar /usr/share/java/jftp.jar "$@"

(Note that your package shouldn't explicitly use /usr/lib/jvm/<etc.>
unless you specifically require a JVM for it. You should use
/usr/bin/java, which defaults to the JVM alternative the user has set
in /etc/alternnatives/java.)

> I'd like to know if any of you know about a package in Debian that
> installs a java application so I can do an apt-get source and  see how
> to proceed. (I've tried downloading some packages making use of
> aptitude search but I haven't found the right one yet)

Well, you could see jftp, except that it's in contrib, but you may be
able to get it into main if you get it to build it with a free Java
compiler like gcj. Or, see the pkg-java list for a bigger list.

> I hope you can help me.

Come to debian-java for more. :-)

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036



Reply to: