zhaowm | hello,everyone | 02:53 |
---|---|---|
zhaowm | Is anybody,here? | 02:55 |
Jpdota | hey guys i'm working on packaging a java program i'm writing, and i was wondering how classpaths for jars are supposed to be handled? | 07:57 |
Koon | Jpdota: what does your app expect to find ? A directory with all the JARs it should load ? | 08:02 |
Koon | or it uses a static per-file classpath definition ? | 08:02 |
Koon | in first case, we often use symbolic links from the classpath lib dir to the installed JARs in /usr/share/java | 08:03 |
Jpdota | Koon: it expects to find the JAR's in the standard java location, wherever that is i guess, should i create symbolic links from that location to /usr/share/java in the start script for it then? | 08:05 |
Jpdota | Koon: or in the install part of the rules file | 08:05 |
Koon | in the rules file (use dh_link for example) | 08:06 |
Koon | look at existing java packages and see how they do it | 08:07 |
Jpdota | Koon: do you know an example of a relatively simple java package? the only ones i know of are openoffice and eclipse which are huge and have a lot of extra stuff in their files | 08:08 |
Koon | You can look at tomcat6 | 08:08 |
Jpdota | alright thanks | 08:08 |
Koon | (but I'm biased) | 08:08 |
Jpdota | haha did you package that? | 08:09 |
Koon | yes :) | 08:09 |
Jpdota | ah :) | 08:09 |
Jpdota | that's a pretty popular package isn't it? | 08:09 |
Koon | I have no idea. I have little feedback on it, very few bugs posted | 08:10 |
Jpdota | that's probably a good thing! | 08:10 |
Koon | So sometimes I'm wondering if people don't continue to install it by hand | 08:10 |
Jpdota | I would hope not, packaged programs are so much nicer! | 08:11 |
Koon | yep :) | 08:12 |
Jpdota | at this point in the game with linux, if i have to compile anything i get annoyed :P | 08:13 |
Jpdota | and i've been using linux since the days of conectiva and red hat 8 | 08:13 |
Jpdota | so i know how to compile a program :P | 08:13 |
Jpdota | Koon: if you just run dh_link it knows what to link? | 08:16 |
Koon | no, you have to provide it with a links file | 08:16 |
Jpdota | ah, that's the tomcat6.links file ok | 08:17 |
Koon | or you can specify the link to create in dh_link command line | 08:17 |
Koon | see man dh_link | 08:17 |
Jpdota | i see | 08:18 |
Jpdota | Koon: do the settings you used survive switching JRE's? | 08:23 |
Jpdota | for example, using openjdk then switching to sun's jdk and vice versa | 08:24 |
Koon | yes... what settings are you talking about ? | 08:24 |
Jpdota | the classpath settings | 08:24 |
Koon | oh yes, they survive quite well | 08:25 |
Jpdota | ah ok | 08:25 |
Jpdota | alright thanks for the help Koon im going to bed, i'll look at this some more tomorrow | 08:34 |
Koon | cool, merry christmas then. | 08:35 |
Jpdota | merry christmas to you too | 08:35 |
Jpdota | hello again everyone, i still haven't resolved my issue with the java classpath, even after looking at eclipse and tomcat. my program has two library dependencies, and im trying to see how i would make it so the jarfile for the program can find the jars for two libraries it needs, even if the default jre of the user changes | 20:39 |
Jpdota | does anyone know how to do that? | 20:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!