Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle JDK / JRE #9

Closed
teozfrank opened this issue Feb 14, 2017 · 9 comments
Closed

Oracle JDK / JRE #9

teozfrank opened this issue Feb 14, 2017 · 9 comments

Comments

@teozfrank
Copy link

As the title suggests, I cannot find anywhere how to install oracle java onto the IOT 2040, it would be nice if the image had it already included or to select what version.

Regards,
Frank.

@jan-kiszka
Copy link
Collaborator

I strongly suspect that binary-only Oracle Java will not work: The Intel Quark requires applications to be built with special compiler options to work around processor errata. That's why we build everything in Yocto and cannot use a standard distribution.

If the 32-bit non-rpm Linux version you can download from Oracle does not run as-is, you need to use the OpenSDK/JRE that is part of the example image.

@teozfrank
Copy link
Author

@jan-kiszka
Copy link
Collaborator

That's just an installer recipe for the binary package. Nothing is built from sources here either.

@teozfrank
Copy link
Author

OpenSDK/JRE that is part of the example image.

How do I use this?

@jan-kiszka
Copy link
Collaborator

Oh, it isn't in fact. It's only used during the build. But you can do this by adding IMAGE_INSTALL_append=" openjre-8" in your local.conf, e.g.

@jan-kiszka
Copy link
Collaborator

Please reopen if there are further questions.

@jan-kiszka
Copy link
Collaborator

FWIW, I just had to validate Oracle Java 8 (update 131) on the latest image, and it apparently works fine. Just like OpenJRE, built from sources via Yocto as I described above.

@teozfrank
Copy link
Author

does that work with an existing build or does that have to be done from a custom build? If that is not the case where is the local.conf located to add that?

@jan-kiszka
Copy link
Collaborator

jan-kiszka commented Jun 2, 2017

We didn't try with current official release but went directly to the development version that is generated from master.

What we did was both unpacking the i586 tarball from Oracle on the device (trivial case) and also hooking up meta-oracle-java for generating a preinstalled image. In the latter case, you will need the master-next branch of http://layers.openembedded.org/layerindex/branch/master/layer/meta-oracle-java/ due to the top-most fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants