[06:36] <Linukka> hi
[07:04] <hagabaka> it seems that i have to add each .jar file in /usr/share/java/ to the class path for them to be locatable by java. is there an automatic way to do it?
[07:35] <jstansel_> hagabaka: there are ant tasks and other methods that might help you
[07:36] <hagabaka> i'm just using the java command
[07:36] <jstansel_> is it a programming question, or something for deb packaging?
[07:37] <hagabaka> it's about running java programs on Ubuntu I guess. since the java libraries are all installed to /usr/share/java, i thought there was a some way to autoamtically find them there
[07:39] <jstansel_> a packaged program would probably either use a script or a specialized classloader
[07:43] <jstansel_> it's also possible for a jar to specify other jars that it depends on, but I think the feature must not be specified or implemented well, since no one seems to understand it or really be able to explain it
[07:54] <hagabaka> well currently i just use -classpath `joinwith : /usr/share/java/*.jar` where joinwith is a script i wrote
[07:55] <hagabaka> but it seems weird to require programs or users to do that
[07:57] <jstansel_> I wonder if the java-common package has a similar script - seems like it would be useful
[07:57] <hagabaka> i'd expected that at least one .jar installed from ubuntu package would automatically load its dependencies, but no, i have to explicitly list the dependent .jar files too
[08:23] <man-di> you want to to explicitely put the jars you need on your classpath
[08:23] <man-di> putting all automatically onto the classpath only causes problems