openjdk

Any IcedTea war stories?

Okay, my first serious question. :-D I'm playing around with OpenJDK (7, not 6), and am about to start trying to build IcedTea on my Ubuntu system. I'm keen to hear from those who have played with IcedTea and have stories (successes, pitfalls, etc.) to tell. All stories welcome, whatever distribution you use. Chances are, I'll very soo...

Is it possible to browse the source of OpenJDK online?

Is it possible to browse the source code of OpenJDK online, just like I can do with SourceForge's projects? I never used Mercury before, so I felt confused. (Note: I don't want to download the source. I just want to browse it online, to see how some methods are implemented.) ...

what is the equivalent of the following jdk path in slicehost ubuntu?

I got to setup the following two variables: export LD_LIBRARY_PATH=/usr/java/jdk1.6.0/jre/lib/i386/:/usr/java/jdk1.6.0/jre/lib/i386/client/:./ export JAVA_HOME=/usr/java/jdk1.6.0/ Since, the above is for the version of jdk installed via SunJDK, what could be the equivalent path for the openjdk-6-jdk package! My OpenJDK is installed at...

What is the correct target for the JAVA_HOME envrionment variable for a Linux OpenJDK debian-based distribution?

Folks In Windows, JAVA_HOME must point to the JDK installation folder (so that JAVA_HOME/bin contains all executables and JAVA_HOME/libs contains all default jar libraries). If I download Sun's JDK bundle and installs it in Linux, it is the same procedure. However, I need to use Kubuntu's default OpenJDK package. The problem is that a...

Advice on creating derivative works based on OpenJDK sources carrying the "classpath exception"?

I'm trying to provide more JRE support for use in my GWT programs. GWT works by cross-compiling Java source into optimized JavaScript. To do this it must have access to translatable source at compile time. "Translatable" in this case means you can't use anything which is not possible in JavaScript within a browser, like opening files, st...

Using the Deployment Toolkit to detect openjdk under Ubuntu?

Hi, I'm using deployJava.js to detect and redirect for java compatibility. Now, however, I've noticed that deployJava.js does NOT detect openjdk. Is there a modified version of this file that does this? I'm digging through the script right now to attempt to hack in a fix, but it would be nice if this was an already solved problem. Linka...

Is there an Ubuntu 9.04 OpenJDK equivalent of sun-java6-plugin?

Hi, I'm wondering if there exists an implementation of a firefox plugin for OpenJDK, or how one would get firefox to use OpenJDK's java for applets. I've searched endlessly, and I can't seem to find any good resources. Any ideas? ...

Java: Fonts look garbled on Linux, but fine on windows

I'm writing a java application that renders PDF documents to images, and when I run it on windows it works fine. But when I render the PDF on Linux, the standard fonts look a bit garbled, like there would be a few pixels missing on the right side of some characters. I only tested it on a fresh install of Ubuntu 9.04 with OpenJDK 6, but ...

How do I detect the OpenJDK in my applet (System Properties)?

How can I determine if my client is running OpenJDK with a web plugin? I've tried java.version and the rest of the properties listed here. Running java -version from the terminal works fine, but if I went this route, java would have to be on the user's path, which I don't know if I can trust entirely. Is there any other way to see the s...

'Master Gain not supported' in OpenJDK

We have problems playing audio files using JavaZoom's libraries on OpenJDK in Linux, although it works perfectly on Sun JDK. Is there any workaround for this 'Master Gain not supported' exception? Mohsen ...

Why should I use the Sun JDK over the OpenJDK, or vice-versa?

I recently purchased a new laptop and made my old one into a Linux box, running Ubuntu. I started to download the tools that I need, and I'm getting my Java development environment set up now. I have a choice between the Sun Java 6 JDK and the OpenJDK. What advantages does one have over the other? Can I run both side by side? ...

Different implementations of ArrayList

We're getting this error java.lang.NullPointerException at java.util.ArrayList.<init>(Unknown Source) at de.mystuff.ExtendedArrayList.<init>(ExtendedArrayList.java:38) where ExtendedArrayList:38 is new ArrayList(new ArrayCollection<E>(data)); In short: the ArrayList constructor sometimes seems to choke on our home grown Col...

where can I submit a bug report concerning the FOSS Java Sound implementation org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine?

I'm pretty confused by the distinctions between Sun's OpenJDK, IcedTea, GNU CLASSPATH, and the version of OpenJDK distributed by Linux distros. So to keep it simple, where can I submit upstream bug reports on org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine? Thanks for your help. ...

can IcedTea's Pulse Audio implementation of Java Sound be taken from OpenJDK and run on Sun Java

I have found Sun's implementation of JSAPI on Linux to be beyond awful. To put it mildly. The Pulse Audio implementation, courtesy of IcedTea, has some quirks but offers much better performance overall. My only problem is that I don't want to force end-users to install another JRE on my app's behalf. Is there any feasible way to extract ...

For which surprises do I have to prepare myself if I switch from Sun JDK to OpenJDK?

If I'd switch from Sun JDK to OpenJDK which surprises do I have to prepare myself for? What does frequently go wrong and how difficult can this be? Of course, each and every application can have its individual problems, but I'm looking for classes of problems, something many people already have struggled with when switching JDKs. ...

m2eclipse crashes eclipse 3.5.SR2 running on openjdk-6-jdk

I downloaded the latest version of eclipse (3.5.SR2) and get m2eclipse installed on. Instead of running on sun-jdk-6 (which is obsolete for the recent Ubuntu 10.04 alpha), I have eclipse running on open-jdk-6. Everything was just fine. I can open my existing project and have them compiled as well as running tests. However, with m2ecli...

Apache Mina Server Restart java.net.BindException: Address already in use

Hello, I have a rather annoying problem in my server application. I bind Apache Mina with the following code: acceptor.bind(new InetSocketAddress(PORT)); Where acceptor is an NioSocketAcceptor. Over a HTTP interface I can shutdown the server so I can restart it. Server.ioAcceptor.unbind(new InetSocketAddress(Server.PORT)); f...

Error running openjdk with remote debug flags

I'm trying to run Tomcat on openjdk compiled on Redhat. It works fine as long as I run it without remote debug options. When I try to run it with remote debug enabled -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n, the JVM doesn't start and shows the error message: NPT ERROR: Cannot open library Sun JRE with the ...

BigDecimal, division & MathContext - very strange behaviour

CentOs 5.4, OpenJDK Runtime Environment (build 1.6.0-b09) MathContext context = new MathContext(2, RoundingMode.FLOOR); BigDecimal total = new BigDecimal("200.0", context); BigDecimal goodPrice = total.divide(BigDecimal.valueOf(3), 2, RoundingMode.FLOOR); System.out.println("divided price=" + goodPrice.toPlainString()); // prints 6...

How to modify JSSE / How to do custom build

Hi I have a special requirement for one of my applications where I need the servers nounce (Handshaker.srv_random) when verifying the client certificate. Yet JSSEs X509TrustManager only passes me the certificate, no other information of the handshake. I have located the place, where checkClientTrusted is called (inside ServerHandshaker...