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