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 246771 - Projects that depend on javafx.libs do not compile
Summary: Projects that depend on javafx.libs do not compile
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-29 09:36 UTC by Jaroslav Tulach
Modified: 2014-09-19 11:12 UTC (History)
4 users (show)

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 Jaroslav Tulach 2014-08-29 09:36:33 UTC
If there is an Ant harness module that depends on org.netbeans.libs.javafx wrapper, then the compilation fails:

Distilling /build/public-package-jars/org-netbeans-libs-javafx.jar from [/platform/modules/org-netbeans-libs-javafx.jar, /platform/modules/${java.home}/lib/ext/jfxrt.jar]
Classpath entry /netbeans/platform/modules/${java.home}/lib/ext/jfxrt.jar does not exist; skipping
//netbeans/harness/build.xml:174: The JARs [/netbeans/platform/modules/org-netbeans-libs-javafx.jar, /netbeans/platform/modules/${java.home}/lib/ext/jfxrt.jar] contain no classes in the supposed public packages javafx.animation.*, javafx.application.*, javafx.beans.*, javafx.beans.binding.*, javafx.beans.property.*, javafx.beans.property.adapter.*, javafx.beans.value.*, javafx.collections.*, javafx.concurrent.*, javafx.embed.swing.*, javafx.event.*, javafx.fxml.*, javafx.geometry.*, javafx.scene.*, javafx.scene.canvas.*, javafx.scene.chart.*, javafx.scene.control.*, javafx.scene.control.cell.*, javafx.scene.effect.*, javafx.scene.image.*, javafx.scene.input.*, javafx.scene.layout.*, javafx.scene.media.*, javafx.scene.paint.*, javafx.scene.shape.*, javafx.scene.text.*, javafx.scene.transform.*, javafx.scene.web.*, javafx.stage.*, javafx.util.*, javafx.util.converter.*, netscape.javascript.*, com.sun.javafx.scene.web.* and so cannot be compiled against
BUILD FAILED (total time: 25 seconds)
Comment 1 Jaroslav Tulach 2014-08-29 09:53:04 UTC
Fixed http://hg.netbeans.org/core-main/rev/eec4dc845f03

This is relatively serious issue. Can I backport it to release801 branch?
Comment 2 Quality Engineering 2014-08-30 05:20:01 UTC
Integrated into 'main-silver', will be available in build *201408300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eec4dc845f03
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #246771: Replace reference to jfxrt.jar when computing classpath extensions
Comment 3 Jan Stola 2014-09-01 14:46:14 UTC
(In reply to Jaroslav Tulach from comment #1)
> Fixed http://hg.netbeans.org/core-main/rev/eec4dc845f03

This fix doesn't work on Windows. It attempts to find ${java.home}/lib/ext/jfxrt.jar in the file path. Unfortunately, the Windows path doesn't contain it because the path separator is a backslash (\) there, i.e., the file path on Windows contains ${java.home}\lib\ext\jfxrt.jar instead. Hence, modules like core.browser.webview cannot be built on Windows still.
Comment 4 Jiri Skrivanek 2014-09-01 15:33:28 UTC
I fixed it in core-main.
http://hg.netbeans.org/core-main/rev/7a3ff22a97d9
Comment 5 Jaroslav Tulach 2014-09-01 15:49:00 UTC
Thanks for the report fixed. Anyone can get the fix immediately by:

$ hg pull -r a57b3544182c https://hg.netbeans.org/ergonomics/
$ hg merge
$ hg ci -m "Merging #246771 fix"
Comment 6 Quality Engineering 2014-09-02 02:33:59 UTC
Integrated into 'main-silver', will be available in build *201409020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7a3ff22a97d9
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #246771 - Replace separator to make it work on Windows. Also speed it up little bit by checking firstly path and after that call File.exist(), and use endWith() instead of contains().
Comment 7 Quality Engineering 2014-09-09 02:54:20 UTC
Integrated into 'main-silver', will be available in build *201409090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a57b3544182c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: More #246771 work on Windows. Replace separator with /
Comment 8 Jaroslav Tulach 2014-09-10 16:29:11 UTC
changeset:   cae87187208b
branch:      release801_fixes
tag:         tip
parent:      c1ef8a4240f5
parent:      a57b3544182c
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Wed Sep 10 18:27:57 2014 +0200
summary:     Merging #246771 into 8.0.1 patch branch
Comment 9 Quality Engineering 2014-09-17 12:12:33 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/151e95be573f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: Merging #246771 into 8.0.1 patch branch
Comment 10 Quality Engineering 2014-09-19 00:32:17 UTC
Integrated into 'releases/release801', will be available in build *201409182200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/5c55992cfa97
User: PGebauer <pgebauer@netbeans.org>
Log: Specification version increment for #246771 - Projects that depend on javafx.libs do not compile