It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
Please explain more. Setting a system CLASSPATH usually does more harm than good.Joe Areeda wrote: . . . Right now the best option I can come up with is to have the installer set the CLASSPATH variable system wide, . . .
Campbell Ritchie wrote:]Please explain more. Setting a system CLASSPATH usually does more harm than good.
It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
Stephan van Hulst wrote:I really don't understand what kind of architecture would lead these applications to be able to use the API that your library implements, while omitting a way to configure the plugin locations.
If these applications were compiled by you, but you don't include the library in each individual distribution to link against, this is BAD.
Setting a global classpath is WORSE.
It's not what your program can do, it's what your users do with the program.
Joe Areeda wrote:It is also worth mentioning that the applications that use these libraries are separate they are developed completely independent of this project. For example I maintain a Matlab app that uses these libraries. In their current form they are installed in /usr/lib64/java on Linux as .class and .so files. I know, I can't think of a worse way to do it. What the Matlab app has to do is figure out which OS it's running on, find the installation and set up the java path on startup.
Joe Areeda wrote:For java it's not just java -jar myLittlePlot.jar but a wrapper script that figures out what OS your running on and figure out how to find the libraries the run java -cp ${libLoc} -jar myLittlePlot.jar.
Stephan van Hulst wrote:I don't believe -cp and -jar work very well in conjunction. Anyway, consider shipping the application with a shortcut fit for the OS (or shotgun all the shortcuts). For windows, the target should be java -cp myLittlePlot.jar;%MYLIB_HOME%\mylib.jar my.little.plot.Main.
It's not what your program can do, it's what your users do with the program.
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|