[04:09] <InHisName> How can I tell when I have enough pieces of java installed into ubuntu that java IS complete?
[04:10] <InHisName> I have installed several java items, such as jre such and such, java6 etc. and others.  I have Hardy 64 bit with 64 bit browsers.
[04:14] <InHisName> I have two online classes from different schools and both have java tests and both fail.  One I cannot even log in, says applet running but wont ever accept text at input boxes.  It will work in firefox under XP.   A java applet not running right under ff in Hardy.
[09:19] <Peddy> Is there a way to get Java apps to play sound through Pulseaudio?
[09:26] <persia> Peddy, Yes, but it's new.
[09:26] <Peddy> persia: I'm willing to give it a try.
[09:26] <persia> I'm just checking to see which you need now.
[09:27] <Peddy> Thanks persia
[09:28] <persia> Looks like the version in jaunty is preconfigured to work with the regular sound API.
[09:28] <persia> For intrepid, I think it needs to be configured differently.
[09:28] <Peddy> ok
[09:29] <persia> But I can't find a configuration file :(
[09:30] <Peddy> Is it just a newer version of PA?
[09:30] <persia> It's also passing --enable-pulse-java when building openJDK
[09:31] <Peddy> So I could just build my own openJDK, and use those parametres?
[09:31] <persia> Maybe.
[09:31] <persia> The version in intrepid Recommends pulseaudio, but doesn't depend on it, which makes me uncertain.
[09:32] <Peddy> If I have a Java app that uses ALSA rather than PA, will the sound card still be locked?
[09:33] <persia> What are you using to make sound?  javax.sound.* ?
[09:33] <Peddy> probably, right, since the ALSA stuff is still piped through PA?
[09:33] <Peddy> I don't know, I'm just running someone else's Java program.
[09:34] <persia> Well, it depends on how they've coded it.
[09:34] <Peddy> ok, I'm going to go with the openJDK pulseaudio thing.
[09:34] <persia> If it uses some special library (e.g. tritonus), it may not switch.
[09:35] <Peddy> Ok, I'm going to download the openjdk source. Once it's done, could you help me with compiling it correctly?
[09:35] <persia> If it's just using javax.sound, it should just automatically use pulse if that's enabled in the JRE.
[09:35] <persia> Hold on: there's probably a simpler way.
[09:36] <Peddy> ok
[09:42] <Peddy> Ok, I've downloaded the source, and the binary plug thing.
[09:42] <Peddy> The binary plug is asking where to install itself, where should I install it
[09:42] <Peddy> ?
[09:44] <persia> Hrm?
[09:45] <persia> From where did you download it?  Nothing in Ubuntu should ask anything like that.
[09:45] <Peddy> nevermind, I can install the binary plugs to anywhere.
[09:45] <Peddy> persia, I'm compiling the latest openJDK with --enable-pulse-java
[09:45] <persia> Ah.  I'd consider that the hard way :)
[09:46] <Peddy> well, it seems to be the only way for me right now :) besides, it's already compiling.
[09:46] <persia> OK.
[09:47] <persia> If I were doing it, I'd have used apt-get source to get the version in intrepid, edited the commented-out with_pulse = yes in debian/rules to match the change in the patch at http://launchpadlibrarian.net/19830233/openjdk-6_6b13%7Epre1-0ubuntu2_6b13%7Epre1-0ubuntu3.diff.gz and used debuild to create a package.
[09:48] <Peddy> How do you apt-get source in Ubuntu? That's something I never knew how to do.
[09:48] <persia> From a terminal, run `apt-get source openjdk-6`
[09:49] <persia> That will download the source for openJDK, and the build infrastructure used to create the packge.
[09:49] <Peddy> where does it download it to?
[09:49] <persia> Then you can run `sudo apt-get build-dep openjdk-6` to get all the support libraries you need installed.
[09:49] <persia> It downloads to the current directory.
[09:49] <Peddy> great, thanks.
[09:50] <Peddy> I'd rather do that, anyway.
[09:50] <persia> Yeah.  Saves a few headaches in dealing with known fixes for Ubuntu, and package installation/removal :)
[09:51] <Peddy> ok, it's downloaded.
[09:52] <persia> OK.  Now install the packages required to build with apt-get build-dep
[09:52] <Peddy> done
[09:53] <persia> Next, in the openjdk source directory, you want to edit the debian/rules file
[09:53] <Peddy> wait, it's apt-get build-dep openjdk-6-jdk, right? or -jre
[09:53] <persia> Just openjdk-6
[09:54] <persia> apt-get build-dep works on source packages.
[09:54] <Peddy> ok
[09:54] <Peddy> it's downloading
[09:54] <persia> OK.  While that's going on, you can edit the rules file.
[09:54] <Peddy> ype
[09:54] <persia> Find the place where it has with_pulse = yes commented out.
[09:55] <Peddy> yep*
[09:55] <persia> I've made an edit from the jaunty patch to work on intrepid that you can see at http://paste.ubuntu.com/109301/
[09:55] <persia> Just delete all 5 commented out lines, and add those three lines to build with pulse on intrepid (you are running intrepid, right?)
[09:55] <Peddy> ye
[09:55] <Peddy> s
[09:56] <persia> OK.
[09:56] <persia> Once you save your edits, then from the package directory, run `dch -i`
[09:56] <Peddy> wait
[09:56] <persia> This will create a changelog entry where you can document the change.  I'd recommend something like "* Configure with pulseaudio in intrepid"
[09:57]  * persia waits
[09:57] <Peddy> (:
[09:57] <Peddy> ok
[09:57] <Peddy> where is the rules file?
[09:57] <Peddy> I was in the directory of the manually-downloaded openjdk when I apt-get source, so that kinda messed everything up :/
[09:58] <persia> In the directory where you ran `apt-get source openjdk-6`, it should have created a directory containing the unpacked source code.
[09:58] <Peddy> yes
[09:58] <persia> Ah.  You might want to start in a new scratch directory :)
[09:58] <Peddy> I did, and that's what took so long xD I had to download everything again.
[09:58] <Peddy> and
[09:58] <Peddy> I'm in /debian, what's the file called again?
[09:58] <persia> OK.  So, in that directory, there is a directory named "debian".
[09:58] <persia> The instructions for the build are in debian/rules
[09:59] <Peddy> great
[09:59] <Peddy> ok
[09:59] <Peddy> which lines do I un-comment?
[09:59] <persia> Look for "with_pulse = yes"
[10:00] <Peddy> got it
[10:00] <persia> Then, delete 5 lines and add three lines as outlined at http://paste.ubuntu.com/109301/
[10:00] <Peddy> with_pulse wasn't actually commented.
[10:01] <persia> Interesting.
[10:01] <persia> I've just been guessing off the patch for the upload that said it was enabled.  Now I actually have to look :)
[10:02] <Peddy> It says this: ifeq ($(with_pulse),yes)<newline>CONFIGURE_ARGS += --enable-pulse-java, maybe I should compile like that?
[10:03]  * persia is reading the rules file for intrepid
[10:03] <Peddy> (:
[10:04] <persia> OK.  Di you see where it has DISTRIBUTION_PATCHES
[10:04] <persia> s/Di/Do/
[10:04] <Peddy> yes
[10:04] <persia> Just above that, there are five lines that have logic to set with_pulse
[10:05] <Peddy> yep
[10:05] <persia> You want to delete those lines, and instead use the three lines from the pastebin.
[10:06] <Peddy> done
[10:06] <Peddy> wait a sec chmoding
[10:06] <Peddy> I can't save file :/
[10:07] <persia> Did you run `sudo apt-get source ...` ?
[10:07] <Peddy> Yes L.
[10:08] <Peddy> :/
[10:08] <Peddy> apt-get, right? I'm so used to using 'sudo'.
[10:08] <persia> OK.  This is recoverable without downloading everything again.
[10:08] <Peddy> Yeah, I'm changing the permissions.
[10:08] <persia> No, don't do that.
[10:08] <Peddy> ok
[10:08] <persia> Some of the permissions are important
[10:08] <Peddy> ah
[10:09] <persia> So, go back to your scratch directory, which should have the source directory, a tarball, a .diff.gz file, and a .dsc file.
[10:09] <persia> sudo rm -r the source directory
[10:09] <Peddy> I'm in here.
[10:09] <Peddy> rm -r?
[10:09] <Peddy> so
[10:09] <Peddy> the openjdk-6-6b12/ directory?
[10:09] <persia> Yes.  You want to delete the unpacked source, and keep the tarball, etc.
[10:10] <persia> Then, as a normal user, run dpkg-source -x on the .dsc file.
[10:10] <persia> This will give you an unpacked source directory controlled by your user.
[10:10] <Peddy> ok, I can write to it.
[10:10] <Peddy> Sorry about my noobishness, and thanks for your patience :)
[10:11] <persia> No problems :)  Thanks for taking the trouble to do it the Ubuntu way, rather than giving up and using upstream sources.
[10:11] <Peddy> :)
[10:11] <Peddy> Ok, I've edited and saved the file.
[10:12] <persia> OK.  Next, from the package directory, run dch -i
[10:12] <persia> Then add a note to the changelog that you've configured it with pulse
[10:14] <Peddy> done
[10:14] <persia> Now, run debuild to build your modified package
[10:15] <Peddy> Ok, I have to go :(. After debuild, do I just configure with enable-pulse-java, or does debuild make a deb package?
[10:15] <persia> debuild makes a deb package.
[10:16] <persia> The change you made to debian/rules will cause that package to be configured with enable-pulse-java
[10:16] <Peddy> k
[10:16] <Peddy> ok, thanks a lot for your help.
[10:17] <Peddy> bye! I'll let you know how it went tomorrow.
[10:24] <Peddyt> ok, my mum told me to get off, but i've sshd in from my phone with irssi, persia.
[10:25] <persia> Peddyt, It's late.  Tomorrow will be fine :)
[10:26] <Peddyt> debuild says i need some pulseaudio dev stuff.
[10:26] <persia> Oh, right, because it wouldn't have that in Build-Depends, because it wasn't enabled.  I'll dig it up.
[10:26] <Peddyt> it's not so late where i live :)
[10:27] <persia> You aren't in NZ?
[10:27] <persia> Isn't that UTC+12 ?
[10:27] <persia> You need libpulse-dev and pulseaudio.
[10:28] <persia> It seems like you need versions > 0.9.12 though, and intrepid only seems to have 0.9.10, so I don't promise it works.
[10:29] <persia> There's a pulseaudio 0.9.13 in this PPA: https://launchpad.net/~themuso/+archive
[10:29] <persia> That's the person who usually makes changes to pulseaudio in Ubuntu, so I'd expect a reasonably safe PPA, but it is a PPA, so no promises it works, and when it breaks, you get to keep both pieces.
[10:29] <Peddyt> it's 2330 and i do not have school for a while ;)
[10:30] <persia> Oh, +13.  I always forget about DST.
[10:30] <Peddyt> it says i only need 9.11 so i think i'll be ok.
[10:31] <persia> intrepid is only 9.10, but good luck.
[10:31] <Peddyt> ive tried that ppa it crashed ubuntu
[10:31] <persia> Ah.
[10:32] <Peddyt> excuse lack of grammar :/
[10:32] <persia> I suspect it's good as PPAs go, but PPAs are special.
[10:34] <Peddyt> ok i can't really try java stuff using ssh, so i'll leave it to tomorrow
[10:35] <Peddyt> could you pastebin this convo please?
[10:36] <persia> http://irclogs.ubuntu.com/2009/01/25/%23ubuntu-java.html doesn't have all of it yet, but it will in about half an hour.
[10:36] <persia> It updates about once an hour.
[10:37] <Peddyt> excellent, thanks.
[10:38] <Peddyt> well, goodnight/day. thanks again.
[15:14] <schmiedc> hi
[15:15] <schmiedc> i am new to packaging and read the debian policy for java
[15:16] <schmiedc> just one question about that. how can i understand the CLASSPATH
[18:49] <|aspire|> hello
[18:49] <|aspire|> is there any one here?
[18:54] <schmiedc> yes
[19:23] <|aspire|> schmiedc: how are you
[19:27] <schmiedc> fine thx, and you?
[21:27] <Peddy> Hi persia, I have installed Pulseaudio from 0.9.13 from themuso's PPA, and like I suspected, I can't log in. It gives the 'session lasted less than 10 seconds' thing with some messages, including "Couldn't exec /usr/bin/pulse-session; no such file or directory". Do you know what could be causing this?
[21:28] <Peddy> Logging into failsafe GNOME works.
[21:31] <Peddy> even with the 0.9.13 libpulse installed, when I'm debuilding openjdk, it still says 'configure: error: Could not find pulseaudio>=0.9.11 libraries -     Try installing pulseaudio-libs-devel>=0.9.11" Do you know why this is?
[21:34]  * Peddy purged and reinstalled, brb