henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Questions for Oracle re Java?

Tue Dec 18, 2012 4:42 pm

Hi all,

Just a heads-up that I and others from the Java group at Oracle are lurking here. We will try to make sure to communicate any news we have wrt Java support for the Pi, as well as be available to answer questions. We see an enormous interest in the Pi from our development community and is trying to do our best to meet the expectation that we provide support in terms of a stable JDK etc. If you have any immediate questions, feel free to respond to this mail and we'll do our best to answer.

Some quick links...

Oracle JDK for Linux/ARM download (note that we released an update earlier this week):
http://www.oracle.com/technetwork/java/ ... 80260.html

My blog on the initial Linux/ARM release (also a good place for Java related news from us):
https://blogs.oracle.com/henrik/entry/o ... _for_linux

Cheers,

Henrik Ståhl
Sr. Director, Product Management
Java Platform Grop, Oracle

ps. What do I use the Raspberry for? Waiting for Minecraft open source and will then use it to teach my kids programming!

User avatar
xranby
Posts: 538
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 5:40 pm

Is it possible for developers to deploy the Oracle jre/jdk in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?
Last edited by xranby on Tue Dec 18, 2012 5:49 pm, edited 1 time in total.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
savageautomate
Posts: 225
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 5:44 pm

Is a hard-float early access release of the JRE expected this year as suggested by this Tweet?
https://twitter.com/java/statuses/27604 ... tweetembed

If so will it support ARMv6 ?

Thanks, Robert
Robert Savage | Follow me @savageautomate
http://www.pi4j.com | http://www.pislices.com
http://www.savagehomeautomation.com

User avatar
xranby
Posts: 538
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 5:47 pm

henrik wrote: ps. What do I use the Raspberry for? Waiting for Minecraft open source and will then use it to teach my kids programming!
Get a head start by installing OpenJDK and run Blocky.
http://www.raspberrypi.org/phpBB3/viewt ... 73#p212873 - 10 easy to do things that could just get kids excited.
https://github.com/spsn/blocky
Last edited by xranby on Tue Dec 18, 2012 5:49 pm, edited 1 time in total.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 5:49 pm

Yes, we're working on a hardfloat early access for release soon, and yes is being tested on the Raspberry Pi. This will be both JDK and JavaFX. Watch the news... :-)

Henrik

henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 6:00 pm

xranby wrote:Is it possible for developers to deploy the Oracle jre/jdk in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?
Yes, it should be. There are two ways (at least) to accomplish this: (a) The store can allow for Java applications and assume that the end user has a JDK installed, or (b) you can bundle an application with the JDK and distribute it as a "native" package.

(a) the end user downloads the Oracle JDK and makes sure it is in the path. The developer uploads only the Java app. The main question here is if the store will support Java programs (probably packaged as executable JAR files).

(b) the developer downloads the Oracle JDK and packages it up together with his/her Java application, and then submits the package as a whole to the store. Our license (link below) allows this. In Netbeans we recently added packaging tools for doing this for Mac, Windows and Linux x86. I don't believe the Netbeans team has any plans to add support for the Raspberry Pi store but it's an open source project so you can go over there and contribute a fix :-)

Binary Code License:
http://www.oracle.com/technetwork/java/ ... index.html

Hopefully someone in the Raspberry Pi community can put together a tutorial for how to do this.

Henrik

User avatar
savageautomate
Posts: 225
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 6:01 pm

henrik wrote:Yes, we're working on a hardfloat early access for release soon, and yes is being tested on the Raspberry Pi. This will be both JDK and JavaFX. Watch the news... :-)

Henrik
.. and JavaFX ... BONUS!
java #4thewin!
Robert Savage | Follow me @savageautomate
http://www.pi4j.com | http://www.pislices.com
http://www.savagehomeautomation.com

grimpirate
Posts: 40
Joined: Fri Oct 19, 2012 6:16 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 6:59 pm

Does the current ARM development kit support Swing development or is it solely command line applications?

EDIT: Nevermind, just finished reading the blog post explaining that Swing/AWT is in fact available.

rbair
Posts: 7
Joined: Sun Aug 12, 2012 6:08 am

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 8:37 pm

savageautomate wrote: .. and JavaFX ... BONUS!
java #4thewin!
Should be out there now for you to play with: http://www.raspberrypi.org/phpBB3/viewt ... 81&t=26110

User avatar
xranby
Posts: 538
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 8:38 pm

henrik wrote:Yes, we're working on a hardfloat early access for release soon, and yes is being tested on the Raspberry Pi. This will be both JDK and JavaFX. Watch the news... :-)

Henrik
Which os.arch name will you use for the hardfloat build?

Its important to let applications know the os(linux), arch(arm), abi(armhf) in order to load the correct jni libs at runtime. http://www.raspberrypi.org/phpBB3/viewt ... p?p=201105

We started a discussion some months ago inside the OpenJDK community on how to solve this there aph suggested that we should use one existing name-space that already contains this information like the GCC triplet http://icedtea.classpath.org/wiki/New_o ... chitecture
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

User avatar
xranby
Posts: 538
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 8:58 pm

Is it possible for developers to deploy the Oracle "Java SE 8 (with JavaFX) Developer Preview for ARM" in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?

Pre-Production Software Evaluation Agreement for Java SE:
http://jdk8.java.net/license.html <- this license is much more restricted compared to the Binary Code License mentioned above for the JDK 7 build.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

rbair
Posts: 7
Joined: Sun Aug 12, 2012 6:08 am

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 9:05 pm

xranby wrote:Is it possible for developers to deploy the Oracle "Java SE 8 (with JavaFX) Developer Preview for ARM" in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?

Pre-Production Software Evaluation Agreement for Java SE:
http://jdk8.java.net/license.html <- this license is much more restricted compared to the Binary Code License mentioned above for the JDK 7 build.
IANAL, but my understanding is no. However the Java 8 release is slated for 3rd quarter 2013, so it isn't terribly far off. Maybe Henrik has a more detailed understanding of this area?

henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 9:06 pm

savageautomate wrote:Is a hard-float early access release of the JRE expected this year as suggested by this Tweet?
https://twitter.com/java/statuses/27604 ... tweetembed

If so will it support ARMv6 ?

Thanks, Robert
Released now:
http://www.raspberrypi.org/phpBB3/viewt ... 81&t=26110

Henrik

henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 9:12 pm

rbair wrote:
xranby wrote:Is it possible for developers to deploy the Oracle "Java SE 8 (with JavaFX) Developer Preview for ARM" in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?

>Pre-Production Software Evaluation Agreement for Java SE:
>http://jdk8.java.net/license.html <- this license is much more restricted compared to the Binary >Code License mentioned above for the JDK 7 build.
>
>IANAL, but my understanding is no. However the Java 8 release is slated for 3rd quarter 2013, so it >isn't terribly far off. Maybe Henrik has a more detailed understanding of this area?
Sorry, we don't allow redistribution of EA binaries. It's just one of those things. JDK 8 GA (General Availability) is targeted for September 2013 (http://openjdk.java.net/projects/jdk8/).

Now, we got JDK 8 EA out first but we are also working on hardfloat for JDK 7. That should be available in EA soon and GA sometime in the first half of 2013.

Henrik

User avatar
xranby
Posts: 538
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 9:17 pm

henrik wrote:
rbair wrote:
xranby wrote:Is it possible for developers to deploy the Oracle "Java SE 8 (with JavaFX) Developer Preview for ARM" in combination with their Java applications using the Pi Store http://store.raspberrypi.com/ ?

>Pre-Production Software Evaluation Agreement for Java SE:
>http://jdk8.java.net/license.html <- this license is much more restricted compared to the Binary >Code License mentioned above for the JDK 7 build.
>
>IANAL, but my understanding is no. However the Java 8 release is slated for 3rd quarter 2013, so it >isn't terribly far off. Maybe Henrik has a more detailed understanding of this area?
Sorry, we don't allow redistribution of EA binaries. It's just one of those things. JDK 8 GA (General Availability) is targeted for September 2013 (http://openjdk.java.net/projects/jdk8/).

Now, we got JDK 8 EA out first but we are also working on hardfloat for JDK 7. That should be available in EA soon and GA sometime in the first half of 2013.

Henrik
Ok so if I want to deploy applications in the Raspberry Pi store using armhf I have to use the Rasbian OpenJDK openjdk-7-jre package?
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

henrik
Posts: 65
Joined: Tue Dec 18, 2012 4:24 pm

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 9:52 pm

Ok so if I want to deploy applications in the Raspberry Pi store using armhf I have to use the Rasbian OpenJDK openjdk-7-jre package?
Short-term, yes. You can move to Oracle JDK when we go GA since it will give you significantly higher performance.

Henrik

User avatar
chriswhocodes
Posts: 36
Joined: Mon May 21, 2012 11:26 am
Location: London, UK
Contact: Website

Re: Questions for Oracle re Java?

Tue Dec 18, 2012 11:49 pm

Hi Henrik,

Oracle lurkers and JDK8 EA in one night :)

Fantastic news for the Pi!

That's my weekend sorted ;)
@chriswhocodes
http://www.chrisnewland.com/raspberrypi

Return to “Java”

Who is online

Users browsing this forum: No registered users and 2 guests