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 213544 - register Java FX installation location into NetBeans
Summary: register Java FX installation location into NetBeans
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 13:39 UTC by Ondrej Vrabec
Modified: 2012-07-04 12:19 UTC (History)
4 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2012-06-04 13:39:05 UTC
At the end of the nb-java (even in the standalone installer) product, the installer should attempt to find the FX installation location and register it to NetBeans
Comment 1 Yulia Novozhilova 2012-06-04 14:37:48 UTC
Starting from 7u6, JavaFX can be installed by means of either standalone JavaFX installer or JRE/JDK installer (JavaFX will be included in JRE).

In case of standalone installer one can get installation info from
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JavaFX(JavaFX SDK) registry keys.

Neither JRE nor JDK will register cobundled JavaFX in registry.
This is designed to be private copy used by JRE/JDK only.

Rules are:
  1) if JRE includes JavaFX (true cobundle) then this is the ONLY copy of javafx runtime this JRE will use
  2) JRE that does not include JavaFX runtime will only be able to use standalone installation (and does not see JavaFX in true cobundles)

To detect that JDK/JRE includes JavaFX one can simply check for presence of jfxrt.jar in the lib folder.
Also, jre/lib/javafx.properties file contains version of javafx that is cobundled with JRE/JDK.
This is what is expected NB should be using to detect true cobundle (and in such case it should not offer to mix and match true cobundle with another installation of JavaFX).

Hope, that will help.
Comment 2 Libor Fischmeistr 2012-06-19 14:20:34 UTC
core-main/rev/82d645af5dbc
Comment 3 Antonin Nebuzelsky 2012-06-19 15:17:58 UTC
BTW, TM=7.3 after integration to trunk.

This one will be needed for 7.2, thus follow the process at
http://wiki.netbeans.org/NetBeans_72_HighResistance

PSomol, can you verify Libor's fix?

CCed Jirka - Libor went to vacation. Please take care of the backport.
Comment 4 Quality Engineering 2012-06-20 04:36:00 UTC
Integrated into 'main-golden', will be available in build *201206200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7494846df3dc
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #213544: register Java FX installation location into NetBeans
Comment 5 Petr Somol 2012-06-20 10:32:58 UTC
the changeset looks all right to me
Comment 6 Jiri Rechtacek 2012-06-20 13:25:17 UTC
http://hg.netbeans.org/releases/rev/1656a1241926
Comment 7 Quality Engineering 2012-06-21 02:23:30 UTC
Integrated into 'releases', will be available in build *201206202200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/1656a1241926
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #213544: register Java FX installation location into NetBeans
(transplanted from 7494846df3dcc9016f16f1dc06b79fd6434c6594)
Comment 8 Quality Engineering 2012-06-23 04:35:24 UTC
Integrated into 'main-golden', will be available in build *201206230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/514ffdd953b5
User: Petr Somol <psomol@netbeans.org>
Log: #213544 - added JavaDoc and src autodetection
Comment 9 Quality Engineering 2012-06-24 02:38:28 UTC
Integrated into 'releases', will be available in build *201206232201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/e7f8db5f4a2b
User: Petr Somol <psomol@netbeans.org>
Log: #213544 - added JavaDoc and src autodetection
Comment 10 Marian Mirilovic 2012-06-24 20:58:27 UTC
... pending verification in NB 7.2
Comment 11 Stepan Zebra 2012-07-02 13:07:49 UTC
It doesn't seems to work in recent bundle build I tested. The issue 215069 was present there. Either the SDK location wasn't properly registered to NB or the FX platform creation ignored it and started full detection.
Please evaluate.
Comment 12 Stepan Zebra 2012-07-04 12:19:58 UTC
(In reply to comment #11)
> It doesn't seems to work in recent bundle build I tested. The issue 215069 was
> present there. Either the SDK location wasn't properly registered to NB or the
> FX platform creation ignored it and started full detection.
> Please evaluate.

This is actually a result of the installer's SDK path registration and it's correct behavior for JDKs up to 7u5. For JDK 7u6 and later, the issue 215069 will have to be fixed.