[12:38] what's the best technology to use to for ubuntu gui java programming? [12:39] martin_, CMOS? [12:39] Kidding aside, the "best" technology is hard to answer. [12:39] If you're building a standard GUI app, I'd recommend using swing for maximum portabilty. [12:39] what they best supported for native looking apps [12:40] There are higher-level toolkits if you're looking for that. [12:40] can I bind java to gtk ? [12:40] Well, "native" depends on the desktop environment. Last I looked, the GTK bindings in Ubuntu were confusing (lots of incompatible versions), but that was a while ago. [12:40] I remember hearing something about issues with QT, but that's pure hearsay, I haven't looked myself. [12:41] Yes. There are gtk bindings. Getting the right version might be tricky, but that's it. [12:41] I heard of swing, I must research maximum though, thanks [12:43] do you know of a good place on the web for unix/linux introduction to java programming? [12:43] i mean linux centric [12:46] Actually, no. [12:47] My experience is that most of the time it doesn't matter if you're coding for linux or windows or OS/400. The trick is to use the abstraction classes whenever you need services from the OS (e.g. file names need to use FILENAME_SEPARATOR rather than \ or / or :) [12:48] thanks for the advice [12:49] do you use eclipse or just a text editor? [12:51] I mostly use a text editor for quick stuff, but I don't do that much Java development anymore. When I did a lot of Java, I used netbeans. [12:54] when I attempted to use eclipse a while in ubuntu it was really slow so I didn't bother with java anymore, but now using Suns JVM in it seems like a native app for speed, I really now want to get into java, android spurred my interest again [12:54] * a while ago [12:56] As I understand things, it's still an ancient version of eclipse. [12:57] I know netbeans is up-to-date: perhaps it's worth a try. [13:03] I'm using the eclipse download from their website, codenamed ganymede or something like that! [13:03] Version: 3.4.1 [13:04] That works on Ubuntu? [13:06] yeah, properly fast too, if your using Sun JVM [13:07] How about with OpenJDK? [13:08] I don't know the difference between versions to I went with the sun version [13:09] what exactly is openJDK v Sun's version? [13:10] martin_: what do you mean? [13:13] well when installing the java run time and java jdk i went with the ones with sun in the name, [13:15] i have sun-java6-jdk & sun-java6-jdk installed and not openJDK [13:16] but I don't know the difference, but it seems really fast now [13:19] martin_: openjdk is GPLed version of Sun's JDK. It may not be 100% compatible to Sun's JDK, but it is close. Also it is far better than any of the other free java compilers/runtimes [13:21] but hasn't sun released all of java under the GPL, which I presume would mean sun-java6-jdk is GPL'ed right, having said it did ask me to accept a license [13:23] martin_: No. Not all of the APIs were completely developed by Sun. So Openjdk does not contain all the apis that Sun JDK contains. I don't have any link handy to show compatibility status. [13:24] The versions with "sun" in the name are older versions, before the license change. So OpenJDK is newer than those, but (as noted) only contains those bits that could be open-sourced. [13:29] yeah I was reading that sun couldn't open some parts as they don't own the copyright on them [13:30] which seems strange to me how they can incorporate things into a language that they don't own [13:31] martin_, Well, for instance, if pre-opening, Sun wanted to have an MP3 encoder, they'd go to the MP3 inventors, and negotiate some licensing and sample code, and then they'd implement something. [13:31] That license might not permit them to release the code open-source, so they'd have to remove that for the open-source version. [13:32] With it now open, it's much more likely that any arrangements like that would include a clause to make sure the resulting code could be open. [13:32] oh I see, good point, I never thought of that, yeah good point [13:32] I guessing openJDK is exactly the same baring the stuff not included and so should run and comparable speed? [13:34] martin_: right [13:35] Might eve nbe faster, as it's a newer snapshot of the trunk code, so contains various improvements and fixes. [13:36] Plus it's licensed to allow patches, and has gotten a few. [13:45] I might dabble in using that then, thanks [13:51] It's the default Java everywhere it works, and it's the JRE against which we test most things. [17:10] hi [17:10] I can't get java to work on my new Intrepid install [17:10] if I type "java" into the CLI I get nothing [17:10] :( [17:11] Did you install default-jre? [17:11] persia, er [17:11] I have sun-java6-jre [17:12] Oh. I'm not sure if that has the right glue. `dpkg -L sun-java6-jre` to see where it put the files. [17:13] ah ok [17:16] I pasted the text here [17:16] http://paste.ubuntu.com/72440/ [17:16] lots of text! [17:16] no executables, AFAIKT [17:25] icheyne, Hrm. Dunno. You might try reading the README [17:26] Perhaps you need to run update-alternatives, although I'd think the maintainer scripts should do that for you. [17:26] I'm just trying a reinstall right now [17:26] purge, autoclean, etc [17:30] sweet [17:30] it works now [17:30] 90% of stuff can be fixed with that [17:30] somehow my install was borked and aptitude didn't realise it [17:30] :D === Leon_Nardella is now known as Anarion