/srv/irclogs.ubuntu.com/2008/11/15/#ubuntu-java.txt

martin_what's the best technology to use to for ubuntu gui java programming?12:38
persiamartin_, CMOS?12:39
persiaKidding aside, the "best" technology is hard to answer.12:39
persiaIf you're building a standard GUI app, I'd recommend using swing for maximum portabilty.12:39
martin_what they best supported for native looking apps12:39
persiaThere are higher-level toolkits if you're looking for that.12:40
martin_can I bind java to gtk ?12:40
persiaWell, "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
persiaI remember hearing something about issues with QT, but that's pure hearsay, I haven't looked myself.12:40
persiaYes.  There are gtk bindings.  Getting the right version might be tricky, but that's it.12:41
martin_I heard of swing, I must research maximum though, thanks12:41
martin_do you know of a good place on the web for unix/linux introduction to java programming?12:43
martin_i mean linux centric12:43
persiaActually, no.12:46
persiaMy 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:47
martin_thanks for the advice12:48
martin_do you use eclipse or just a text editor?12:49
persiaI 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:51
martin_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 again12:54
martin_* a while ago12:54
persiaAs I understand things, it's still an ancient version of eclipse.12:56
persiaI know netbeans is up-to-date: perhaps it's worth a try.12:57
martin_I'm using the eclipse download from their website, codenamed ganymede or something like that!13:03
martin_Version: 3.4.113:03
persiaThat works on Ubuntu?13:04
martin_yeah, properly fast too, if your using Sun JVM13:06
persiaHow about with OpenJDK?13:07
martin_I don't know the difference between versions to I went with the sun version13:08
martin_what exactly is openJDK v Sun's version?13:09
slytherinmartin_: what do you mean?13:10
martin_well when installing the java run time and java jdk i went with the ones with sun in the name,13:13
martin_i have sun-java6-jdk & sun-java6-jdk installed and not openJDK13:15
martin_but I don't know the difference, but it seems really fast now13:16
slytherinmartin_: 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/runtimes13:19
martin_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 license13:21
slytherinmartin_: 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:23
persiaThe 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:24
martin_yeah I was reading that sun couldn't open some parts as they don't own the copyright on them13:29
martin_which seems strange to me how they can incorporate things into a language that they don't own13:30
persiamartin_, 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
persiaThat license might not permit them to release the code open-source, so they'd have to remove that for the open-source version.13:31
persiaWith 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
martin_oh I see, good point, I never thought of that, yeah good point13:32
martin_I guessing openJDK is exactly the same baring the stuff not included and so should run and comparable speed?13:32
slytherinmartin_: right13:34
persiaMight eve nbe faster, as it's a newer snapshot of the trunk code, so contains various improvements and fixes.13:35
persiaPlus it's licensed to allow patches, and has gotten a few.13:36
martin_I might dabble in using that then, thanks13:45
persiaIt's the default Java everywhere it works, and it's the JRE against which we test most things.13:51
icheynehi17:10
icheyneI can't get java to work on my new Intrepid install17:10
icheyneif I type "java" into the CLI I get nothing17:10
icheyne:(17:10
persiaDid you install default-jre?17:11
icheynepersia, er17:11
icheyneI have sun-java6-jre17:11
persiaOh.  I'm not sure if that has the right glue.  `dpkg -L sun-java6-jre` to see where it put the files.17:12
icheyneah ok17:13
icheyneI pasted the text here17:16
icheynehttp://paste.ubuntu.com/72440/17:16
icheynelots of text!17:16
icheyneno executables, AFAIKT17:16
persiaicheyne, Hrm.  Dunno.  You might try reading the README17:25
persiaPerhaps you need to run update-alternatives, although I'd think the maintainer scripts should do that for you.17:26
icheyneI'm just trying a reinstall right now17:26
icheynepurge, autoclean, etc17:26
icheynesweet17:30
icheyneit works now17:30
icheyne90% of stuff can be fixed with that17:30
icheynesomehow my install was borked and aptitude didn't realise it17:30
icheyne:D17:30
=== Leon_Nardella is now known as Anarion

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