#ubuntu-java 2006-05-16
<Xannix> I am while looping a BufferedReader, and keep getting a NullPointerException when trying to create a StringBuffer, however if i System.out.println it displays correctly any idea's what i could be doing wrong ?
#ubuntu-java 2006-05-18
<bddebian> Howdy
<bddebian> Anyone awake by any chance?
#ubuntu-java 2007-05-14
<doko> vil: just ask
<vil> hi doko
<vil> yesterday someone asked me to upload a merge
<vil> I was not sure about the changelog so I wanted to ask
<vil> it was reportbug package
<vil> this one seems to be in ubuntu for ages and the older versions contained a lot of -ubuntu1 records in the changelog
<vil> however the one the guy presented me contained only a few
<vil> so someone omitted that
<vil> you could see that here http://changelogs.ubuntu.com/changelogs/pool/universe/r/reportbug/reportbug_3.37ubuntu1/changelog
<vil> http://changelogs.ubuntu.com/changelogs/pool/universe/r/reportbug/reportbug_3.31ubuntu1/changelog
<vil> so I wanted to ask if we care about that or if it is acceptable to forget the ubuntu records
<vil> doko, any idea about the above?
<doko> vil: well, you should keep the records (and answer general questions on that on #ubuntu-motu maybe)
<vil> ok thx
#ubuntu-java 2007-05-18
<sladeis1> Hi I'm new to java and was wonderng if someone could explain exception throws to me
* #ubuntu-java  [freenode-info]  please register your nickname...don't forget to auto-identify! http://freenode.net/faq.shtml#nicksetup
#ubuntu-java 2007-05-20
* Starting logfile irclogs/ubuntu-java.log
* Starting logfile irclogs/ubuntu-java.log
<Alebak> hi
<Alebak> Help me please!
<man-di> Alebak: how can we help you when you dont write about your problem
<Alebak> I need the source code of Newtons Interpolation... Where to get it?
<man-di> Google?
<man-di> its surely out of the scope of this channe
<man-di> channel
<Alebak> I don't see it in google
<man-di> I don't see what has this to do with Ubuntu and Java either
<Alebak> Where there is other channel of java?
<man-di> Alebak: #java?
<Alebak> thank
<Alebak> you
#ubuntu-java 2008-05-12
<pwnguin> is icedtea comparable in performance with java6?
<qingshi163> å¤§å®¶å¥½
<qingshi163> ååç°è¿æjavaç
#ubuntu-java 2008-05-15
<AlsMe> hey guys
<AlsMe> anyone here?
<AlsMe> what's the name of the c# channel?
<hisingh1_> how to get the VK_UP to work??
<hisingh1_> sup
#ubuntu-java 2008-05-17
<jairodealmeida> when i install java1.3 on ubuntu with apt-get ??
#ubuntu-java 2009-05-12
<perlooooooooo> hello i would like to know what is th best way to interact with a database in java , except JDBC, is there any framework easy to use and easy to deploy?
#ubuntu-java 2009-05-13
<benbloom> I need help with Java, Kubuntu8.04  and Firefox3
<benbloom> I need help with Java, Kubuntu8.04  and Firefox3. can someone help me get it up and running? nothing I've found on google has worked (tried several methods that seemed to work for others)
<Guest73418> NickServ- REGISTER
<Guest73418> ##java
#ubuntu-java 2009-05-14
<mib_hku7zs1f> Can an applet that is compiled on a 64bit open in a 32bit ?
<david_yu> has there been a java project being packaged by debian that was built by maven?
<david_yu> we are trying get jetty6 have an official debian/ubuntu release
<persia> There's been a lot of discussion about maven.  Last I knew it wasn't quite ready to be used to build packages.
<persia> Most of the work on this has been happening in Debian.
<persia> Seems I'm out of date.  See http://wiki.debian.org/Java/MavenBuilder
<persia> And http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425152 is probably of most direct interest
<ubottu> Debian bug 425152 in jetty "jetty: New upstream 6.1.3" [Wishlist,Open]
<david_yu> thanks ... so basically, there has not been any maven-based java projects out there that has been packaged by debian
<persia> Not as such.
<persia> Or rather, not packaged normally.
<persia> There's a means by which freely redistributable binary blobs can be distributed alongside Debian, and some of those are also distributed in Ubuntu's multiverse component.
<persia> This mechanism has been used in the past for distributing the results of a build, but it's neither typical packaging nor generally considered optimal.
<persia> I'd suggest that if you're working on jetty, you contact Tormod.  He's probably the most knowledgeable about the current state of things, and how that affects Jetty.
<persia> Once the remaining issues are resolved, Ubuntu would prefer to just sync.
<david_yu> persia: hmm, so u mean debian accepts pre-built jars and just package it? or do they require that they build the whole project itself?
<persia> For proper inclusion, it is required that everything be built from source.
<persia> There's a means to distribute other bits (e.g. firmware), which has been abused in the past to work around issues with Java.
<persia> If at all possible, I recommend trying to get it done the normal way.
<david_yu> persia: if we could provide them our pom.xml files that they can build for themselves (using maven) and generate the debs (using maven), would they accept that?
<david_yu> since I've noticed most packages I've seen are built with ant ... if they dont have a problem building with maven, that would work
<persia> david_yu, Um.  Could you more explicitly define "we" and "them" in that sentence?
<david_yu> persia: we as in the jetty devs, and them as in the uploaders
<persia> OK.
<persia> I don't even think it's quite that much.  I think it's that there might be some issues with building everything (with maven) from within Debian.
<ttx> persia: What was the question ?
<persia> And I still think that your best path is to chat with Tormod.  I know he's been trying to build jetty, and a closer relationship between you and he would likely determine any remaining issues in short order.
<david_yu> ah, where do I reach him?
<persia> ttx, david_yu> persia: if we could provide them our pom.xml files that they can build for themselves (using maven) and generate the debs (using maven), would they accept that?
<ttx> david_yu, persia: Torsten Werner was working on Maven support with the final objective of packaging Jetty6 with it
<persia> ttx, Right.
<persia> Ah, darn.  I hate it when I misremember names.
 * ttx looks up email address
<persia> david_yu, I'd recommend email right now.  He doesn't seem to be in #debian-java@OFTC right now.
<ttx> david_yu: see pm
<david_yu> ttx: yea I saw his attempt to build jetty... I actually sent him a mail 3 days ago
<ttx> http://wiki.debian.org/Java/MavenBuilder tracks his progress
<persia> Well, and Debian bug 425152
<ubottu> Debian bug 425152 in jetty "jetty: New upstream 6.1.3" [Wishlist,Open] http://bugs.debian.org/425152
<persia> But he's really the best person to chat with about it.
<david_yu> hopefully he's not too busy, sent him mail 3 days ago
<ttx> david_yu: iirc the key issue was getting all the dependencies properly packaged
<ttx> since we cannot use maven to /just/ provide them
<ttx> david_yu: anyway, I am very much interested in getting jetty6 somewhere, so if I can act as facilitator somewhere, let me know
<david_yu> actually with jetty6, the 3rd party dependencies are: slf4j (core), ant(jsp), eclipse-compiler(jsp) ... everything else are jetty modules
<ttx> david_yu: it's not reasonable to try to emulate the build process using a simple ant build.xml ? That would remove the complexity of using maven on our build system from the equation
<david_yu> so like when maven downloads the other depenencies, they are build-time dependencies, but not runtime dependencies
<ttx> david_yu: unfortunately we need to package the build deps as well :)
<david_yu> ttx: hmm, why is that ... most of them are maven-plugins required for build ... and junit
<ttx> david_yu: then they should all be packaged already, good
<ttx> (in Debian, maybe not synced to Ubuntu yet)
<persia> One factor that may be important to note is that the buildds don't have network access, which is part of why we have to take special care, because maven can't download anything, so has to be convinced it's already present.
<ttx> and you cannot install anything else on the buildds than packaged build dependencies.
<ttx> david_yu: you can cc me on future emails with Torsten. At one point if it's a question of disponibility I might be able to stand in for him.
<david_yu> persia: hmm, could we provide an initial repo(temporary ... just for the maven-plugins required along the way)?
<persia> david_yu, If you'd like to help get the plugins packaged, that'd be great.
<david_yu> yea I'd like to help
<persia> I don't think it's best to try to hack around packaging them: that just increases the chance of some integration issue once they are packaged.
<ttx> david_yu: basically we have been trying to make maven-built things compatible with our build-daemons for some time
<ttx> david_yu: the initial Ubuntu spec was https://wiki.ubuntu.com/JavaTeam/Specs/MavenSupportSpec
<persia> So, based on the Plans on the Debian wiki page, I think building agreement on http://wiki.debian.org/Java/MavenRepoSpec is probably the next step.
<ttx> it outlines the challenges and proposes a solution
<ttx> but Torsten went faster with his solution
<persia> And then adding the hooks to all the required libraries.
<ttx> MavenRepoSpec and MavenBuilder
<ttx> so we met in Berlin to discuss convergence and agreed that he was on the right track
<ttx> david_yu: what TZ are you in ?
<david_yu> +8
<ttx> hm, that doesn't help to join our #ubuntu-java meetings, unless we don't sleep, like persia
<ttx> unless you don't sleep, I mean
<david_yu> what time (GMT) do the meetings start?
<ttx> 1400
<ttx> but we could move the time. It's not as if so much people came in
<ttx> persia: no meeting this week ?
<persia> Yes, I'm just not paying enough attention to the clock :/
<astromme> Hi all. I've got a question about https://bugs.launchpad.net/ubuntu/+source/soprano-backend-sesame/+bug/334186
<ubottu> Ubuntu bug 334186 in soprano-backend-sesame "soprano-backend-sesame requires missing /usr/lib/libjvm.so" [Undecided,Confirmed]
<astromme> It looks like all that needs to happen is a symlink to /usr/lib/libjvm.so
<astromme> Is that something that could happen for a Jaunty SRU? ScottK pointed me here
<astromme> The bug currently prevents Soprano and Strigi (A pillar of kde, part of the search framework) from working at all with the java backend.
<persia> Glah.  Native libraries suck.
<astromme> And the java backend is needed for anything resembling decent performance
<persia> Right.
<astromme> One of the comments on the bug report said that this is something that update-java-alternatives should probably be setting this symlink
<persia> I'm not sure which of the fixes is the right one, unfortunately.
<astromme> :(
<persia> There's a fairly good argument that nothing should use /usr/lib/libjvm.so directly, because there's no promise the ABI is constant for different implementations.
<persia> Which would make this a bug in the way that soprano-backend-sesame was built.
<astromme> It looks like a symlink from $JAVA_HOME/jre/lib/i386/server/libjvm.so to /usr/lib/libjvm.so is what is needed
<astromme> persia: hmm, interesting
<astromme> but wait... then why are there headers for libjvm.so and why can things be built against it?
<astromme> and what would be the 'correct' way? (I'm a true java packaging/library newb)
<persia> Well, see, one builds against the .so and headers, and *should* end up linked against some specific implementation with a known ABI (e.g. libfoo.so.3.4.1)
<persia> But that's in C.
<astromme> persia: but java has many implementations
<astromme> and you don't know which will be installed
<persia> Right, which makes it tricky to know how to deal with something like this.
<astromme> how do other java apps do this?
<astromme> s/java apps/things that link against java libs/
<persia> 99% of java applications don't need to access libraries directly.
<persia> Nearly nothing does, and arguably nothing should, except for JVM implementations.
<persia> In an ideal world, each library that isn't written in Java provides Java bindings that link against the specific implementation.
<persia> Then the JVM just runs itself, java apps, and the bindings glue.
<persia> This looks like an extra-special case.
<persia> Personally, I think that it ought link directly to openjdk's implementation, and depend on openjre, rather than on java2-runtime, but that's clearly not ideal.
<persia> The risk of doing it any other way is that since it builds against openjdk, if someone has another implementation, we can't know it's ABI-compatible (since I don't think it must be for Java compliance)
<persia> Of course, my knowledge of this corner of stuff isn't very deep, as it's the part of Java that I hide from the most.  I prefer pure-java apps and libraries.
<astromme> persia: ok, I think I understand
<astromme> persia: this is something that really hurts kde users who want desktop search
<persia> astromme, Then it needs fixing.  How do you think it ought be fixed?
<astromme> because the only way around it is to symlink manually (and of course that assumes an abi)
<persia> Or hack ld.conf, which comes to the same thing.
<astromme> true
<persia> Or change the build instructions for the package, and rebuild to hardlink against openjdk (which means that people can't use it with Sun Java)
<astromme> persia: For the Karmic cycle it is likely that soprano will move to a c++ library called virtuoso by default, which means this may not be as important after Jaunty
<astromme> persia: Is java updated to be an abi break during the Jaunty update cycle?
<astromme> persia: if not, I would suggest doing the symlink/ld.conf
<astromme> (after testing it using openjvm, sun jvm)
<persia> astromme, Would you mind testing that against all Java implementations in jaunty?
<persia> If it happens to work with all of them, I'm happy with that solution.
<persia> If it only works with some of them, then I think that's not complete
<persia> (and only worry about java2-runtime providers: we don't care about the others, because they wouldn't satisfy the dependencies anyway)
<astromme> persia: sure, I would test against all of them. Other than openjvm and sun java, what are the others?
<persia> astromme, `aptitude show java2-runtime` should give you the list.
<persia> It's basically openJDK, 2 versions of Sun java, and GCJ.
<astromme> persia: I assume 'default-jre' is a metapackage?
<persia> No, it's an actual package, with some bits here and there, but it doesn't contain a JVM implementation.
<persia> It depends on different implementations for different architectures though.
<persia> So, extra points if you also test against cacao :)
 * astromme has never even heard of cacao! :P
<persia> http://www.cacaovm.org/
<astromme> So my plan would be purge old package, install new one, start all the daemons/etc fresh, test basic features (if it failed it would fail from the starting of the binary, right?), do a checkoff?
<persia> Right.
<persia> Install your package.
<persia> Install a JVM
<persia> make the symlink
<persia> run it.
<persia> purge the JVM, and install the next
<persia> make the (different) symlink.
<persia> run it.
<persia> etc.
<persia> To test cacao I think you need powerpc.
<astromme> persia: if you can belive it, I had a Jaunty running powerpc until last week
<astromme> we have a bunch of G5s here
<astromme> Sadly it got reverted to osx. No nvidia drivers, meh
<persia> Cool!  It'd be lovely if you could test with cacao, as it's one of the less well tested JVMs, and I know that powerpc has a kubuntu userbase.
<persia> pity.
<astromme> truely is
<astromme> the machine ran great
<astromme> just that silly video card
<astromme> (we need the machine as a media center, more or less)
<persia> Oh well.  For extra points, find someone who can test that case :)
<astromme> ok
<astromme> I'll see what I can do
<astromme> I wonder if a livecd would be enough...
<persia> But I suspect the package doesn't even build properly for architectures that don't have openjdk, so it probably doesn't matter that much.
<persia> Nevermind.  Looks like openjdk on powerpc does work to some degree.
<astromme> hmm, interesting
<astromme> Uh oh.... starting the server, terminate called after throwing an instance of 'CLuceneError'
<astromme> I wonder if that has any relation to the java stuff
 * astromme doesn't know how it all fits together really
<persia> astromme, So it worked with openJDK, and failed with the next JVM?
<astromme> persia: that might just be my fault, I'm restarting my session. And it might be something else. It *looks* like it loaded the library correctly
<astromme> (Soprano::PluginManager) loaded plugin from "/usr/lib/soprano/libsoprano_sesame2backend.so"
<astromme> sesame2backend.so sesame2 is the java component that it uses
<persia> Right, but that indicates that it loaded that library.  The trick is when that library actually makes a call to java.
<persia> Or rather to libjvm.so
<astromme> hmm, ok
<astromme> well let me see
<persia> If the entry points don't match then it crashes (or executes something unexpected if you're particularly unlucky)
<astromme> ok
<astromme> Well, it appears to be indexing, which is a good sign
 * astromme tries a search
<astromme> It found some music files, this is looking like it is working
<astromme> Nepomuk is eating ram as usual.... lol they really need to figure out if the ram usage is a: reasonable and b: worth it
<persia> That's encouraging.  I don't suppose one of the ones you tried was gcj?
<astromme> persia: not yet, the sun and openjdk
<persia> They share some code history, which makes it easier that they match :)
 * astromme is on stage 3 of four, sun-java6-jre
<astromme> persia: bad news bears... We might have problems with gcj
<astromme> the nepomuk search process just hung on me
<persia> That was the reason I feared this might not be the right solution.
<persia> At least it makes it easier to fix, because it's only the one package that needs updating and testing, rather than the fuss involved in an update to how the JVM shared libaries are coordinated between JVMs.
<persia> So, just change the build in such a way that the link is against the real location, rather than /usr/lib/libjvm.so
<persia> And have the package depend on the openjdk jre, rather than java2-runtime
<astromme> this is curios... now it is working
<astromme> curious*
<astromme> Hmm, ok, I suppose that would work
<astromme> especially if we know it does work with one specific java implementation
<astromme> wow, gcj is much slower, at least it seems so
<persia> gcj is much slower when running java bytecode.  Many gcj users prefer to compile java to native code.
<astromme> interesting
<astromme> persia: ok, I need your suggestion. It appears to work on all 4 java2-runtime providing-packges. I had a bit of instability with gcj, but that could have just as easily been nepomuk doing its "I'm going to hang" dance that it likes to do
<astromme> Should we do the symlink?
<astromme> Or should I run off to find whoever maintains the sesame2 package to get them to change how it is built
<persia> astromme, You tell me which you think is less work for you (as you'll be the person who chases it, or so I guess from your interest).
<persia> I can't upload the fixes for either solution.
<persia> I'm not happy with the situation existing, but I'm not sure which solution is less bad.
<astromme> hmm
<persia> The real fix would be for the package not to link against that, but that's not going to happen in an SRU, because it would require massive code changes.
<astromme> persia: I would go for option 1, symlink. My only worry is that would this give others a 'conceptual license' to exhibit the same bad behavior?
<astromme> and if I understand it correctly, "symlink" can be replaced with "ld.conf change" and would result in the same thing?
<astromme> how would this affect apps that linked against a specific (say openjvm) libjvm.so? Could they potentially get screwed up?
<persia> Umm, maybe?
<persia> I don't know how ld works well enough to answer that.
<astromme> persia: Ok. Thank you for all of your help. Where would I go to move this further towards people who can actually make the change?
<persia> I'd start by documenting the results in the bug.
<persia> Then, I'd prepare a debdiff for any packages you want to change to fix it, and generally follow the guidelines for SRU
<persia> !sru
<ubottu> Stable Release Update information is at http://wiki.ubuntu.com/StableReleaseUpdates
<persia> When you get to the upload point, find a sponsor using one of the sponsoring queues.
<persia> And I'm fairly certain the sponsoring will get bounced about until someone who understands the problem well enough gets it.
<astromme> persia: ok, yikes sounds involved :P
<persia> Well, yeah.
 * astromme is just a humble kde dev, he hasn't messed with packages. 
<astromme> But I understand the critical situation
<persia> Oh, in that case, grab someone in kubuntu-devel to help you out.
<astromme> I will, I came from there originally
<persia> I know :)
<persia> I'm hoping my explanations can help describe the issue better.
<astromme> But not now, I've got other work :)
<astromme> And I also understand how updates have to be taken very seriously, it is not good to break things in a release distro... not good at all
<persia> Truth be told, the symlink solution scares me, largely because we rely so heavily on Debian to decide if things like that are safe.
<astromme> That's true, I kept mulling it over
<persia> And I'm just not sure the hack-the-build-to-force-openjdk is right either.
<astromme> And in theory if something is packaged internally to a libjvm.so it could find (wrongly) /usr/lib/libjvm.so
<astromme> which could cause bad bad problems if these things aren't ABI compat
<astromme> well, that's the reason why we have multiple java implementations in the first place... so we don't depend on one single one
<astromme> In any case, I'm out for now. Thanks persia, I will likely be back for more advice :)
<persia> Happy to help to my limited ability :)
#ubuntu-java 2009-05-15
<ScottK> What is the defaultjdk in intrepid?
<ttx> ScottK: default-java -> java-6-openjdk
<ScottK> ttx: Thanks.
<persia> ScottK, Note that default-java is nothing for hppa (not that it matters that much)
#ubuntu-java 2009-05-17
<light> anyone home?
<light> I got an error while installing java from the application installer, ubuntu then told me I had an update for java, how can I tell if its running correctly?
<light> the broken package icon disapeard when I did the update
#ubuntu-java 2010-05-17
<MetalnaS> hi guys i have a problem connecting to Mysql from a servlet can someon help ?
#ubuntu-java 2010-05-23
<kobrien> anyone around? I need help with packaging
#ubuntu-java 2011-05-16
<exs> hi
<exs> i have problems
<exs> who can help me?
#ubuntu-java 2011-05-17
<HebiIchigo> .-.;
#ubuntu-java 2011-05-20
<Petrolea> anyone here?
#ubuntu-java 2012-05-16
<Rajkane> hello :)
#ubuntu-java 2012-05-17
<xannen> do anyone know of any other java support irc channels?
#ubuntu-java 2014-05-13
<shmoolUbun> nicksrv
<debutant> Hi i am a beginner in Java , i would like to know if i can in java create a class that contains a parameters that its type is another class
#ubuntu-java 2014-05-18
<pikachuza> hey all, anyone here?
<pikachuza> hello?
<Faux> Hi!  If this is related to something that could be answered by the topic, I'll cry.
<pikachuza> just looking for more info on how to package java war archives for Ubuntu?
<pikachuza> I am looking for info on how to adjust the rules file for a maven build process?
#ubuntu-java 2015-05-11
<Titoune> Coucou
<Titoune> C'est bien un channel d'aide pour Java ?
<Titoune> :p
