OpenJDK port: midterm report

Blog post by hamish on Sat, 2012-07-14 23:47

After my quarter term report I worked on various bugs in the AWT port reported by testers, such as keyboard input problems. I also began reading up on the media kit in preparation for the next part of my project: the jsound port. This will bring audio and MIDI functionality to the OpenJDK port. Over the last week I made a start on the implementation for PCM input/output.

Additionally, since my last report I was given commit access at the official Haiku port project over at the OpenJDK project: http://openjdk.java.net/projects/haiku-port/. This is great as it will provide a more central place for collaboration and possibly attract more developers to the project. I have started merging my work into the repositories there.

Finally, as promised last time, I have built a new set of binaries with the latest revision of the AWT port, which is in quite a stable state: http://dl.dropbox.com/u/61946213/j2sdk-july-r2.tar.xz. The archive is about 160MB extracted. Any bug reports are much appreciated and should be sent to me via my contact form on this site.

Comments

Re: OpenJDK port: midterm report

Wow, amazing work! I can't believe it, but I am running the current Netbeans on Haiku. Thanks and please keep up the awesome work!

Re: OpenJDK port: midterm report

I agree! I was also playing with Netbeans yesterday. Very cool! I then tried to get IntelliJ to launch, but wasn't successful. I also couldn't get ThinkFree Office installed/running, but I think that just needs an edit to the installation shell script to see Haiku as a supported platform. If I get a chance later this week, I'll play some more, as this is pretty exciting progress.

Great work, Hamish!

Re: OpenJDK port: midterm report

it is now posibel to code android ?
(without eclipse)

Re: OpenJDK port: midterm report

Unlikely as Android does not use the standard JDK (only some basic classes from java.lang are common between the two). Also, its virtual machine isn't compatible with the Sun/Oracle JVM since it uses a different architecture.

Re: OpenJDK port: midterm report

true, but i mean " can i code under haiku with android sdk, also build a app for a android device"

Re: OpenJDK port: midterm report

Unlikely since the android SDK has quite a few other components that would need to be ported.

Re: OpenJDK port: midterm report

From a quick browse of the Linux version, there are native binaries in the SDK so some porting effort might be required there. Also it looks like there could be a dependency on SWT, which is a big job to port.

Re: OpenJDK port: midterm report

You ask this on every Java-related news here and the answer is always the same: No you cannot! Unless somebody ports the Android SDK to Haiku. Android uses a different VM and a different bytecode format. When building your Android apps, they get first compiled to Java class files and then converted to dex files, which the Dalvik VM can execute. *At the very least* this last step is missing.

I don't know about you, but I would say I'd also need the emulator, which has nothing to do with Java at all. So again: unless there is an article in the future, that specifically says that the Android SDK has been ported to Haiku, NO you will not be able to develop Android apps on Haiku. This has nothing to do with the JDK porting effort. It's a bit like asking if you can run OpenOffice because Java has been ported.

Also IMHO the Android SDK is not even very useful without the ADT for the Eclipse IDE. And this one will need SWT (and obviously Eclipse) first.

Re: OpenJDK port: midterm report

BRAVO.

I'm very glad to see someone carrying on the work. Great job, hamish!