[ 
https://issues.apache.org/jira/browse/NETBEANS-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161610#comment-17161610
 ] 

Rangi Keen commented on NETBEANS-4610:
--------------------------------------

This is due to [JDK-8218268|https://bugs.openjdk.java.net/browse/JDK-8218268] 
which changed the resolution of the classpath in a manifest file to [use 
{{URI}}|http://hg.openjdk.java.net/jdk-updates/jdk11u/file/f9fef514b121/src/jdk.compiler/share/classes/com/sun/tools/javac/file/FSInfo.java#l121]
 which does not allow "$".

One solution that seems to resolve the issue (but may have other negative side 
effects) is to remove the "${java.home}" prefix from the manifest and project 
files for platform/libs.javafx:

{code:none}
diff --git a/platform/libs.javafx/manifest.mf b/platform/libs.javafx/manifest.mf
index 192afed0..bda9cde7 100644
--- a/platform/libs.javafx/manifest.mf
+++ b/platform/libs.javafx/manifest.mf
@@ -38,5 +38,5 @@ OpenIDE-Module-Provides: javafx.animation,
     javafx.util,
     javafx.util.converter,
     netscape.javascript
-Class-Path: ${java.home}/lib/ext/jfxrt.jar
+Class-Path: lib/ext/jfxrt.jar
 
diff --git a/platform/libs.javafx/nbproject/project.xml 
b/platform/libs.javafx/nbproject/project.xml
index e2313422..9bff3a11 100644
--- a/platform/libs.javafx/nbproject/project.xml
+++ b/platform/libs.javafx/nbproject/project.xml
@@ -93,7 +93,7 @@
                 <package>com.sun.javafx.scene.web</package>
             </public-packages>
             <class-path-extension>
-                
<runtime-relative-path>${java.home}/lib/ext/jfxrt.jar</runtime-relative-path>
+                
<runtime-relative-path>lib/ext/jfxrt.jar</runtime-relative-path>
                 <binary-origin>build/openjfx.zip</binary-origin>
             </class-path-extension>
         </data>
{code}

> URISyntaxException building with org-netbeans-libs-javafx.jar using Java 
> 11.0.7 or later
> ----------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4610
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4610
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javafx - Deployment
>    Affects Versions: 12.0
>            Reporter: Rangi Keen
>            Priority: Major
>
> To reproduce:
> # Create a new Java project in NetBeans
> # Open the project properties
> # Select the Libraries category
> # Choose JDK 11.0.7 or later for Java Platform
> # On the Compile tab, click the ellipsis button next to Classpath and choose 
> Add JAR/Folder
> # Select <NB install>/platform/modules/org-netbeans-libs-javafx.jar
> # Save the changes and close the project properties
> # Clean and build the project
> You'll see the following error in the build output:
> {noformat}
> error reading <NB install>/platform/modules/org-netbeans-libs-javafx.jar; 
> java.net.URISyntaxException: Illegal character in path at index <index of $>: 
> file:/<NB install>/platform/modules/${java.home}/lib/ext/jfxrt.jar
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to