This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245700 - Impossible to Register Java SE Embedded Platform
Summary: Impossible to Register Java SE Embedded Platform
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-15 16:28 UTC by Geertjan Wielenga
Modified: 2014-07-16 13:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2014-07-15 16:28:12 UTC
1. Go here:

http://www.oracle.com/technetwork/java/index.html

2. Under "Technologies", click "Java Embedded".

3. You will now be here:

http://www.oracle.com/technetwork/java/embedded/documentation/default-1971746.html

4. Under "New Downloads", click "Java SE Embedded 8u6".

5. You will now be here:

http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javase-embedded-downloads-2209751.html

6. Download either of the following under "ARM, Linux":

ARMv7 Linux - VFP, HardFP ABI, Little Endian1 -- http://download.oracle.com/otn/java/ejdk/8u6-b23/ejdk-8u6-fcs-b23-linux-arm-vfp-hflt-12_jun_2014.tar.gz

or:

ARMv7 Linux - VFP, SoftFP ABI, Little Endian2: http://download.oracle.com/otn/java/ejdk/8u6-b23/ejdk-8u6-fcs-b23-linux-arm-vfp-sflt-12_jun_2014.tar.gz

7. Now go to NetBeans IDE, to Java Platform, and add Remote Java Standard Edition. Browse to your download in "Remote JRE Path". Set Compact 3 and Client, and the two JavaFX checkboxes, in the "Create Java SE Embedded JRE" dialog.

8. Now the "Createing new JRE" progress bar is shown. The JRE is successfully installed. But when you click Finish, you see a red message "Could not connect to remote Java SE Platform. Please check your settings."

9. And now the remote platform is NOT registered. So one cannot deploy to it.
Comment 1 Geertjan Wielenga 2014-07-15 16:29:12 UTC
Making this a P1 because remote Java SE platform is currently impossible to use, i.e., Raspberry Pi development fails because the remote platform cannot be registered.
Comment 2 Geertjan Wielenga 2014-07-15 16:31:59 UTC
Changing hardware to Windows 7, which is what I am on.
Comment 3 Tomas Zezula 2014-07-16 13:24:00 UTC
The platform installation fails with "Illegal instruction"
When you look at the download page the ejdk-8u6-fcs-b23-linux-arm-vfp-hflt-12_jun_2014.tar.gz is "ARMv7 Linux - VFP, HardFP ABI, Little Endian1".
The important part is "ARMv7" which means that it's not compiled for ARM11 but at least for ARM Cortex-M3 using Thumb-2 instruction set.
The Raspberry Pi has Broadcom BCM2835 processor (http://www.broadcom.com/products/BCM2835) which is ARM1176JZ-F (ARMv6 with RISC, Thumb, Thumb-2 and Jazelle
instructions set). However it's ARM v6 architecture not ARM v7 required by a new ejdk.
You can look at http://en.wikipedia.org/wiki/List_of_ARM_cores which nicely describes ARM arch evolution.

It can be also seen in the java binary, the old one which runs on Pi:

Attribute Section: aeabi
File Attributes
 Tag_CPU_name: "6"
 Tag_CPU_arch: v6
 Tag_ARM_ISA_use: Yes
 Tag_THUMB_ISA_use: Thumb-1
 Tag_FP_arch: VFPv2
 Tag_ABI_PCS_wchar_t: 4
 Tag_ABI_FP_denormal: Needed
 Tag_ABI_FP_exceptions: Needed
 Tag_ABI_FP_number_model: IEEE 754
 Tag_ABI_align_needed: 8-byte
 Tag_ABI_align_preserved: 8-byte, except leaf SP
 Tag_ABI_enum_size: int
 Tag_ABI_HardFP_use: SP and DP
 Tag_ABI_VFP_args: VFP registers
 Tag_CPU_unaligned_access: v6
 Tag_DIV_use: Not allowed

The new one which does not run on Pi:

Attribute Section: aeabi
File Attributes
 Tag_CPU_name: "7-A"
 Tag_CPU_arch: v7
 Tag_CPU_arch_profile: Application
 Tag_ARM_ISA_use: Yes
 Tag_THUMB_ISA_use: Thumb-2
 Tag_FP_arch: VFPv2
 Tag_ABI_PCS_wchar_t: 4
 Tag_ABI_FP_denormal: Needed
 Tag_ABI_FP_exceptions: Needed
 Tag_ABI_FP_number_model: IEEE 754
 Tag_ABI_align_needed: 8-byte
 Tag_ABI_align_preserved: 8-byte, except leaf SP
 Tag_ABI_enum_size: int
 Tag_ABI_HardFP_use: SP and DP
 Tag_ABI_VFP_args: VFP registers
 Tag_CPU_unaligned_access: v6
 Tag_DIV_use: Not allowed