<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
You can cheat with J2EE and just create a WAR file. Put in share. I contain all your compile class code, HTML, images, XML, etc. Can even contain that specific version of mysql-connector-java.jar.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Right now, I'm dealing with a WEB-INF directory that has many jar files of forgotten source. This is a vote against placing mysql-connector-java.jar in the WAR because 15 years down the road we've forgotten would've forgotten where we got that file. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
It really does not matter if its lib or share. The question is more like: "Where would it go under FHS rules?"<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jim Kinney <jim.kinney@gmail.com><br>
<b>Sent:</b> Tuesday, November 3, 2020 4:26 PM<br>
<b>To:</b> Chris Fowler <cfowler@outpostsentinel.com>; Atlanta Linux Enthusiasts <ale@ale.org><br>
<b>Subject:</b> Re: [ale] Should JAR files go in lib or share?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">It makes sense to unwrap from different locations yet its a pain. If the lib is unique to the application, it shouldn't be in a lib folder for others to (ab)use.<br>
<br>
If containers were easier track changes within, I'd say toss it in.<br>
<br>
<div class="x_gmail_quote">On November 3, 2020 2:56:36 PM EST, Chris Fowler <cfowler@outpostsentinel.com> wrote:
<blockquote class="x_gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I think share for something like a J2EE application is fine. There are XML files, images, HTML, etc. Dependencies like mysql-connector-java should be in lib.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jim Kinney <jim.kinney@gmail.com><br>
<b>Sent:</b> Tuesday, November 3, 2020 2:45 PM<br>
<b>To:</b> Chris Fowler <cfowler@outpostsentinel.com>; Atlanta Linux Enthusiasts <ale@ale.org><br>
<b>Subject:</b> Re: [ale] Should JAR files go in lib or share?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">Quack!<br>
<br>
Use a lib concept. The alternative method is when it's a large application with lib and logics and it goes in share.<br>
<br>
<div class="x_x_gmail_quote">On November 3, 2020 1:51:56 PM EST, Chris Fowler via Ale <ale@ale.org> wrote:
<blockquote class="x_x_gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I was having a discussion with a developer this morning about my choice to put our JAR files in lib and since they are technically libraries should be there, but when going after another JAR file I noticed Ubuntu uses share. lib.
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I noticed that CentOS and Ubuntu have different ideas too.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
CentOS places the actual file in lib and a symlink in share.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
[DEVEL libxalan-java]$ ls -l /usr/share/java/jna.jar</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
lrwxrwxrwx. 1 root root 22 Nov 8 2019 /usr/share/java/jna.jar -> ../../lib/java/jna.jar</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Ubuntu puts the jar in share:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
chris@mechonis:~/Downloads$ ls -l /usr/share/java/js.jar
<div>lrwxrwxrwx 1 root root 14 Jan 20 2017 /usr/share/java/js.jar -> js-1.7.7.1.jar</div>
<br>
I'm going with lib because the nature of these files aare that they are "libarires" that get loaded, executed, and are an API. They look like a libXXXX.so and quack like a libXXXX.so.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
-- <br>
Computers amplify human error<br>
Super computers are really cool</div>
</body>
</html>