[yocto] [meta-oracle-java][PATCH v2] Add support for Java SE Embedded

Frazer, Will will.frazer at eurotech.com
Mon Sep 8 10:29:40 PDT 2014


This is rather an old post now but is what I found when I looked into making changes to the Oracle recipe a couple of years ago:
https://community.oracle.com/thread/2367607

regards,
Will

-----Original Message-----
From: Maxin B. John [mailto:maxin.john at enea.com] 
Sent: 08 September 2014 16:58
To: Frazer, Will
Cc: Vladimir Redzhepov; yocto at yoctoproject.org; nitin.a.kamble at intel.com
Subject: Re: [yocto] [meta-oracle-java][PATCH v2] Add support for Java SE Embedded

Dear Will Frazer,

On Mon, Sep 08, 2014 at 02:13:35PM +0000, Frazer, Will wrote:
> Folks,
> 
> My understanding is that while this recipe generated download URL will work if you have already visited the Oracle download location, it won't work for a build system that has never been there before. Try it.
>
The updated download method was to avoid the manual download process associated with Oracle Java Binaries. I have tested this on a couple of machines before sending it upstream.

It was based on this discussion:
https://gist.github.com/hgomez/4697585
 
> Also, Oracle has previously been very much against using any mechanism that bypasses a user clicking on the licence acceptance. I'm not aware this position has changed. You may find that you are in violation of the Licence agreement if you do this. One of the reasons why the URLs were obfuscated in the past I believe.
> 

Thank you very much for raising this concern. I wasn't aware of this.
As per my understanding, setting
LICENSE_FLAGS_WHITELIST += "oracle_java" in local.conf was Yocto's way of conforming to the License terms of Oracle. 

Adding CC to Nitin A Kamble for his view on this.

> Will Frazer
> Eurotech UK

Thanks and Regards,
Maxin

> 
> -----Original Message-----
> From: yocto-bounces at yoctoproject.org 
> [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Vladimir 
> Redzhepov
> Sent: 08 September 2014 13:04
> To: yocto at yoctoproject.org
> Subject: [yocto] [meta-oracle-java][PATCH v2] Add support for Java SE 
> Embedded
> 
> >From a68c728141f369e1ac41f2aaf40915cf14ad341f Mon Sep 17 00:00:00 
> >2001
> From: Vladimir Redzhepov <vladimir_redzhepov at epam.com>
> Date: Mon, 8 Sep 2014 14:42:28 +0300
> Subject: [PATCH] Add support for Java SE Embedded
> 
> Signed-off-by: Vladimir Redzhepov <vladimir_redzhepov at epam.com>
> ---
>  ...racle-jse-ejre-arm-vfp-hflt-client-headless_1.7.0.bb |  9 +++++++++
>  recipes-devtools/oracle-java/oracle-jse-ejre.inc        | 17 +++++++++++++++++
>  2 files changed, 26 insertions(+)
>  create mode 100644 
> recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headl
> ess_1.7.0.bb  create mode 100644 
> recipes-devtools/oracle-java/oracle-jse-ejre.inc
> 
> diff --git 
> a/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-hea
> dless_1.7.0.bb 
> b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-hea
> dless_1.7.0.bb
> new file mode 100644
> index 0000000..bfa8011
> --- /dev/null
> +++ b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client
> +++ -h
> +++ eadless_1.7.0.bb
> @@ -0,0 +1,9 @@
> +PV_UPDATE = "60"
> +BUILD_NUMBER = "19"
> +
> +require oracle-jse-ejre.inc
> +
> +SRC_URI = "http://download.oracle.com/otn/java/ejre/7u${PV_UPDATE}-b${BUILD_NUMBER}/ejre-7u${PV_UPDATE}-fcs-b${BUILD_NUMBER}-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz"
> +
> +SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0"
> +SRC_URI[sha256sum] = "ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf"
> diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre.inc 
> b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
> new file mode 100644
> index 0000000..7889684
> --- /dev/null
> +++ b/recipes-devtools/oracle-java/oracle-jse-ejre.inc
> @@ -0,0 +1,17 @@
> +SUMMARY = "Oracle Java SE runtime environment binaries"
> +DESCRIPTION = "This is the proprietary JRE from Sun/Oracle, with the 
> +Hotspot JVM. It is\  provided by Sun/Oracle only in binary format.\ 
> +Java Platform, Standard Edition (Java SE) lets you develop and deploy 
> +Java\  applications on desktops and servers, as well as in today's 
> +demanding\  embedded environments. Java offers the rich user 
> +interface, performance,\  versatility, portability, and security that 
> +today's applications require.\  The JRE (Java Runtime Environment) is 
> +needed on a system to run Java\  applications and applets"
> +
> +JDK_JRE = "ejre"
> +require oracle-jse.inc
> +
> +LIC_FILES_CHKSUM = "\
> +	file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/COPYRIGHT;md5=3a11238025bf13b87f04753183ffeb90 \
> +	file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=c339b34e3da6673d2c5950d0f8808f8c \
> +	"
> --



More information about the yocto mailing list