/srv/irclogs.ubuntu.com/2008/12/25/#ubuntu-java.txt

persiaJpdota, The default classpath for dependent libraries oughtn't change just because the JRE changes.07:23
persiaJust make sure you have the dependencies correct.07:24
Jpdotai do have the dependencies correct :-/07:24
Jpdotai've been playing around with this problem for two days now and haven't come to a solution07:24
persiaOn which packages are you depending?07:25
Jpdotahsqldb and jpcap07:25
Jpdotajpcap isn't packaged in ubuntu, but i installed the deb, and i moved the jar to /usr/share/java07:25
Jpdotabut hsqldb is giving me the error07:25
Jpdotajpcap may too, the program doesnt get that far in its execution07:26
persiaYou might want to look at the entagged package, which relies on hsqldb.07:27
Jpdotaentagged?07:27
persiaYep.  It's just an audio file tagger, but since it's packaged and relies on hsqldb, it might contain the hint you need.07:27
Jpdotaah ok07:28
Jpdotaawesome let me take a look at that one07:28
persiaGood luck.07:28
Jpdotapersia: it's strange, the only mention of hsqldb is it assigns it to a variable which is never used, and the classpath is set using only squareness.jar, but not hsqldb.jar07:33
Jpdotaah it lists hsqldb.jar in the MANIFEST, but im not sure how that would resolve07:34
Jpdotaone second i'll try doing that in my program07:34
Jpdotapersia: hmm no such luck with that :(07:39
persiaSo, the problem is that when you run your program, it's not finding the jar?07:40
Jpdotacorrect07:40
Jpdotacould it have something to do with hsqldb.jar being numbered with a version?07:40
Jpdotawhat i mean is, in /usr/share/java hsqldb.jar is just a link to hsqldb-1.8.0.9.jar07:41
persiaI would have thought that would work.07:41
persiaAs far as I understand things, symlinks get parsed before they are handed to the program, when an open request is made.07:42
persiaSo opening /usr/share/java/hsqldb.jar ought to open hsqldb-1.8.0.9.jar.07:42
Jpdotaright, but could the file having a different name matter?07:42
Jpdotai'm not sure how java does its loading07:42
persiaI don't think it does, but I don't know.07:43
Jpdotahmm do you want to take a look at what im working with?  see if im doing something stupid?  this is the first package if packaged for ubuntu/debian07:44
persiaSure.  Post it somewhere.  I can't promise to see the problem though.07:45
Jpdotahttp://jwc3banlist.svn.sourceforge.net/viewvc/jwc3banlist/trunk/debian/ <-- link to the svn for the debian directory07:45
persiaI'll recommend using install rather than mkdir -p followed by cp -R07:46
persiaYou might also want to look at dh_install, which lets you just make a list.07:47
Jpdotaah ok07:47
persiaOf course, that's completely unrelated to your issue :)07:47
Jpdotaright, but any advice is of course appreciated :P07:47
persiaAlso, drop debian/dirs : you don't need it.07:47
persiaAnd debian/files should almost never be present07:48
Jpdotagotcha, i think they autogenerated and i just didn't delete them07:49
persiaI've never been a fan of the autogeneration.07:49
Jpdotame neither, but i was just following the instructions :P07:49
persiaAlso, you want Architecture: all rather than any for this: you only need to compile it once: the jvm should take care of portability.07:49
Jpdotaok07:50
persiaOh, I'm a fan of autogeneration in general: I just don't like any of the current autogenerators for debian-format packaging.07:50
persiaYour docs file is empty, and can be dropped.07:50
Jpdotai tend to dislike it when it's something i'll eventually have to edit, because it usually makes things confusing07:51
persiaThat's unfortunately true.  Sometimes one gets autogenerators that match one's style, but it's hard to find one.07:51
Jpdotayeah exactly07:52
persiaLooks to me like you could do most of what you're doing with debhelper 5 or 6, and don't need debhelper 7 (you're not using dh $@).07:52
Jpdota$@?07:53
persiaHave you tried adding libhsqldb-java to Build-Depends-Indep?  I wonder if something is happening at compile time if the package is absent.07:53
Jpdotanope, i'll try it07:54
persia$@ is an automatic variable in make that represents the current rule name.  debian/rules is a makefile.07:54
Jpdotaah07:54
persiaAlso, please be sure that your procedure for building the release version of bancraft doesn't include the debian/ directory.  Having that in the diff.gz file is a widely accepted standard practice, and makes it easier if someone wants to package it for other distributions.07:55
persiaNothing wrong with having it in your VCS, but be aware that once it's in a repo, there will likely be growing variance between your copy and the version in any given distro.07:56
Jpdotayeah07:57
Jpdotatrue07:57
Jpdota"I have no package to build" from a bunch of the dh's?08:00
persiahrm?08:01
Jpdotafrom changing the libhsqldb-java to a Build-Depend-Indep and the architecture to all08:01
persiaI wasn't suggesting you switch to dh7, only reduce your requirements.  How ar you calling the build?08:02
Jpdotadebuild or do you mean the compile?08:02
persiadebuild08:02
Jpdotajust debuild08:02
Jpdotait's strange, the program compiles and installs then when it gets to the dh_testdir -a it starts saying it has no package to build08:04
persiaRight.  Change -a to -i in binary-indep08:05
Jpdotaah :X08:05
persiabinary-arch is supposed to be arch-dependent, and use -a, binary-indep is supposed to be arch-independent, and use -i.  Sorry for not mentioning this previously.08:06
Jpdotano problem, i should have rtfm :P08:07
Jpdotatesting different classpaths to see if they work08:09
Jpdotathe one like entagged has doesn't work08:09
Jpdotaunless maybe they make a link one sec08:09
Jpdotahmm that doesn't seem to have fixed it08:11
Jpdotai'm so confused, looking at entagged didn't yield anything, im going to see if there's other packages08:11
persiaapt-cache rdepends hsqldb-java provides a short list, unfortunately.08:12
Jpdotawow, yeah08:12
Jpdotaand i looked at openoffice, whew....08:13
persiaAnd you've already looked at openoffice, right?08:13
persiaBut your program works unpackaged?08:13
Jpdotai've looked at openoffice, and i don't understand it at all, way too much "stuff"08:14
persiaYeah.  That's a disturbingly complex package.08:14
Jpdotayep08:14
persiaYou might try #debian-java@OFTC, but dunno how many people will be there: most of the regulars here aren't present today.08:14
Jpdotai see..hmm08:15
Jpdotawow there's basically nothing that uses hsqldb08:15
Jpdotaitself, entagged, and oo.org08:16
persiaOn the bright side, that's a small set of stuff to investigate to find a solution :)08:19
Jpdotatrue, however there's hardly any mention of hsqldb in entagged08:19
persiaBut it does use it at runtime, doesn't it?08:20
Jpdotaentagged?08:21
persiayes.08:21
Jpdotai would assume so, it requires it08:21
persiaThat matches my previous understanding, that as long as the dependencies are correct, it ought to work.08:21
persiaYou shouldn't have to do much to be able to use the library.08:22
Jpdotayeah08:22
Jpdotai thought that too08:22
Jpdotahave you packaged a java application?08:24
persiaNope.  Reviewed some packages.  Fixed a few bugs, but not packaged anything.08:24
Jpdotaah ok08:25
Jpdotait shouldn't matter that the program is run as root right?08:31
persiaShouldn't, although running stuff as root is generally dangerous.08:32
Jpdotai guess not, even run as a regular user, it doesn't work08:32
Jpdotayeah i know, it needs to be, it uses libpcap (through jpca)08:32
Jpdotajpcap)08:32
persiaAnd it does work with your program just there, unpackaged?08:32
Jpdotahmm08:32
Jpdotalet me check that the jar it's trying to use works correctly08:32
Jpdotawell it's making the jar anyway but yeah08:33
Jpdotahmm one sec trying something that may work08:39
Jpdotanope08:52
Jpdotawell persia thanks for the help, i didn't gain any traction on it so i guess i'll come back after the holidays09:26
persiaSorry I couldn't be more help.  Good luck with it.09:31
Jpdotapersia no problem you helped a lot thanks09:35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!