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

Re: Problem with the Debian policy for Java



On 08.11.2014 22:17, Bill Zaumen wrote:
[...]
> The problem is that extensions are really java libraries but the
> Debian policy for libraries does not cover them as it does not allow
> the libraries to be installed in the correct location.  Either that
> policy needs to be modified or a new section dealing with extensions
> needs to be added.

The correct location for Java libraries on Debian systems is
/usr/share/java. If you set the CLASSPATH correctly and the extension
framework does not find classes in ext/lib, it will fall back to the
CLASSPATH mechanism for loading classes. If all applications and
libraries make use of it, as it is the case for Debian, you can run them
directly by either putting a wrapper script in /usr/bin or using
binfmt_misc to load the class directly. There won't be any conflict of
permissions then.

One advantage of using extensions is that you can simply type

java MyApp

to execute it. On Debian systems it is even simpler. Just type

MyApp

In addition you can install multiple Java runtime environments on your
system and choose between them by using the Debian Alternatives System.

Regards,

Markus


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: