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

Re: [DebianGIS] Creating Packages for FOSS Java GIS Applications



Francesco and Petter,

Thank you for your responses.

I will do the following for the preparation of an OpenJUMP Package:

[1] Configure the Java Classpath in the shell script that launches the program.
[2] Place the JAR file with the main class in /usr/bin/openjump.

I will try to overcome the challenges that arise from placing plug-in
jars and supporting files in /usr/share/openjump or
/usr/share/java/openjump. (Which one of these folders would be more
appropriate?)

If this can't be done I will place the plug-ins in a subfolder of
/usr/bin/openjump.

If OpenJUMP is using a fairly generic Java library, and a Debian
package for it does not exist, should I prepare a Debian package for
it and declare a dependency in my control file? I imagine sharing of
Debs for common Java libraries is one of the benefits of Debian's
package system.

The Sunburned Surveyor




On Nov 9, 2007 6:18 AM, Petter Reinholdtsen <pere@hungry.com> wrote:
>
> [Redefined Horizons]
> > After reading through the Debian Java Policy I believe that I need
> > to place the main JAR for OpenJUMP in /user/bin/openjump. I also
> > realize I need to create separate Debian packages for the Java
> > libraries that OpenJUMP stores in /lib, and that the JARs for these
> > packages should be stored in /usr/share/java.
>
> I do not believe you need to create separeate debian packages for the
> java jar file that openjump consist of.  It is not a library, it is an
> application.  It just happen to consist of several .jar files.
>
> >
> > I'm not sure about two (2) things:
> >
> > [1] Where do I put the plugins? Do they stay in /user/share/java or do
> > they go somewhere else? They aren't really libraries, they are like
> > mini-exectuables, but they are pacakged in separate JARs.
>
> /usr/share/java/ sound ok, but as they are not really libraries, I
> would store them in /usr/share/openjump/ or /usr/lib/openjump/
> instead.
>
> > [2] How do I ensure that the required libraries are on the Java
> > Classpath that OpenJUMP needs? At this time we just add the /lib
> > folder to the classpath in the launch script, but I'm not sure how I
> > would accomplish this if the libraries are scattered around in
> > different folders in /usr/share/java.
>
> Not sure about that.
>
> > I hope these questions don't seem foolish. I've been using Debian
> > for a couple years now, but there is still a lot I don't know about
> > Linux.  I've also never made a Debian package of my own.
>
> Nothing foolish about the question.  But note that /user/ and /usr/ is
> not the same thing.
>
> Happy hacking,
> --
> Petter Reinholdtsen
>
>
>
> _______________________________________________
> Pkg-grass-general mailing list
> Pkg-grass-general@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general
>



Reply to: