Skip to contentSkip to conversation

Add support for Java SE Embedded

PATCH Superseded Vladimir Redzhepov 3 participants 4 messages Sep 8, 2014

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add support for Java SE Embedded

From a68c728141f369e1ac41f2aaf40915cf14ad341f Mon Sep 17 00:00:00 2001
From: Vladimir Redzhepov <[email protected]>
Date: Mon, 8 Sep 2014 14:42:28 +0300
Subject: [PATCH] Add support for Java SE Embedded

---
 ...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-headless_1.7.0.bb
 create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre.inc
recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless_1.7.0.bb new file +9 -0
new file mode 100644
index 0000000..bfa8011
@@ -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"
recipes-devtools/oracle-java/oracle-jse-ejre.inc new file +17 -0
new file mode 100644
index 0000000..7889684
@@ -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 \
+	"
Signature · 1 line
2.1.0
#1 lore raw

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.

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.

Will Frazer
Eurotech UK

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vladimir Redzhepov
Sent: 08 September 2014 13:04
To: [email protected]
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 <[email protected]>
Date: Mon, 8 Sep 2014 14:42:28 +0300
Subject: [PATCH] Add support for Java SE Embedded

---
 ...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-headless_1.7.0.bb
 create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre.inc
recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-h new file +0 -0
new file mode 100644
index 0000000..bfa8011

+++ 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"

recipes-devtools/oracle-java/oracle-jse-ejre.inc new file +17 -0
new file mode 100644
index 0000000..7889684
@@ -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 \
+	"

--
2.1.0
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

Dear Will Frazer,

Quoted 4 lines · Will

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

Quoted 2 lines

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.

Quoted 2 lines

Will Frazer
Eurotech UK

Thanks and Regards,
Maxin

Quoted 60 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vladimir Redzhepov
Sent: 08 September 2014 13:04
To: [email protected]
Subject: [yocto] [meta-oracle-java][PATCH v2] Add support for Java SE Embedded

Quoted 1 line

From a68c728141f369e1ac41f2aaf40915cf14ad341f Mon Sep 17 00:00:00 2001

From: Vladimir Redzhepov <[email protected]>
Date: Mon, 8 Sep 2014 14:42:28 +0300
Subject: [PATCH] Add support for Java SE Embedded

---
 ...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-headless_1.7.0.bb
 create mode 100644 recipes-devtools/oracle-java/oracle-jse-ejre.inc
recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-h new file +10 -0
new file mode 100644
index 0000000..bfa8011
+++ 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"
recipes-devtools/oracle-java/oracle-jse-ejre.inc new file +17 -1
new file mode 100644
index 0000000..7889684
@@ -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 \
+	"
--
#3 lore raw

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:[email protected]]
Sent: 08 September 2014 16:58
To: Frazer, Will
Cc: Vladimir Redzhepov; [email protected]; [email protected]
Subject: Re: [yocto] [meta-oracle-java][PATCH v2] Add support for Java SE Embedded

Dear Will Frazer,

Quoted 4 lines · Will

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

Quoted 2 lines

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.

Quoted 2 lines

Will Frazer
Eurotech UK

Thanks and Regards,
Maxin

Quoted 72 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vladimir Redzhepov
Sent: 08 September 2014 13:04
To: [email protected]
Subject: [yocto] [meta-oracle-java][PATCH v2] Add support for Java SE Embedded

Quoted 2 lines

From a68c728141f369e1ac41f2aaf40915cf14ad341f Mon Sep 17 00:00:00 2001

From: Vladimir Redzhepov <[email protected]>
Date: Mon, 8 Sep 2014 14:42:28 +0300
Subject: [PATCH] Add support for Java SE Embedded

---
 ...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

(quoted diff) +0 -0

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

recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client new file +11 -0
+++ -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"
recipes-devtools/oracle-java/oracle-jse-ejre.inc new file +17 -1
new file mode 100644
index 0000000..7889684
@@ -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 \
+	"
--