[
https://issues.apache.org/jira/browse/NETBEANS-3161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Miller updated NETBEANS-3161:
-------------------------------------
Description:
In earlier versions of Netbeans, building an Ant project would automatically
cause jar dependencies to be copied into a "lib" directory under "dist". In
11.1, I found that this no longer worked. I determined that this must be some
kind of incompatibility between NB11 and JDK11 that only manifests during
*project creation time*.
I tested this with the following scenarios:
* NBTest1 – NB8.2 with JDK8
* NBTest2 – NB11 with JDK8
* NBTest3 – NB11 with JDK11
Testing steps:
# Create empty project (Java with Ant > Java Application)
# Right click Libraries and add a dependency (I added a jar)
# Put something trivial in main, like System.out.println
# Click Clean & Build.
# Start a terminal and go to the dist directory.
Projects created in and run in NBTest1 and NBTest2 work just fine. In both
cases, the dependency is copied into the dist directory. A project created in
NBTest3 does not work correctly. The first really weird part is that a project
created in NBTest1 or NBTest2 ALSO works just fine under NBTest3's scenario.
So the failure occurs only for projects created in NBTest3.
Then I diff'd all the XML and project files to see what's different between
NBTest2 and NBTest3, and I can't find anything different. All I know is that
even with JDK11, both NBTest2 builds fine, while NBTest3 doesn't. I'm
attacking all three projects.
was:
In earlier versions of Netbeans, building an Ant project would automatically
cause jar dependencies to be copied into a "lib" directory under "dist". In
11.1, I found that this no longer worked. I determined that this must be some
kind of incompatibility between NB11 and JDK11 that only manifests during
*project creation time*.
I tested this with the following scenarios:
* NBTest1 – NB8.2 with JDK8
* NBTest2 – NB11 with JDK8
* NBTest3 – NB11 with JDK11
Testing steps:
# Create empty project (Java with Ant > Java Application)
# Right click Libraries and add a dependency (I added a jar)
# Put something trivial in main, like System.out.println
# Click Clean & Build.
# Start a terminal and go to the dist directory.
Projects created in and run in NBTest1 and NBTest2 work just fine. In both
cases, the dependency is copied into the dist directory. A project created in
NBTest3 does not work correctly. The first really weird part is that a project
created in NBTest1 or NBTest2 ALSO works just fine. So the failure occurs only
for projects created in NBTest3.
Then I diff'd all the XML and project files to see what's different between
NBTest2 and NBTest3, and I can't find anything different. All I know is that
even with JDK11, both NBTest2 builds fine, while NBTest3 doesn't. I'm
attacking all three projects.
> "Copy Dependent Libraries" doesn't work in NB11.x+ with Oracle JDK 11
> ---------------------------------------------------------------------
>
> Key: NETBEANS-3161
> URL: https://issues.apache.org/jira/browse/NETBEANS-3161
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 11.0, 11.1
> Environment: macOS 10.14.6 (18G95), Oracle JDK 11
> Reporter: Timothy Miller
> Priority: Major
> Attachments: NBTests.tgz
>
>
> In earlier versions of Netbeans, building an Ant project would automatically
> cause jar dependencies to be copied into a "lib" directory under "dist". In
> 11.1, I found that this no longer worked. I determined that this must be
> some kind of incompatibility between NB11 and JDK11 that only manifests
> during *project creation time*.
> I tested this with the following scenarios:
> * NBTest1 – NB8.2 with JDK8
> * NBTest2 – NB11 with JDK8
> * NBTest3 – NB11 with JDK11
> Testing steps:
> # Create empty project (Java with Ant > Java Application)
> # Right click Libraries and add a dependency (I added a jar)
> # Put something trivial in main, like System.out.println
> # Click Clean & Build.
> # Start a terminal and go to the dist directory.
> Projects created in and run in NBTest1 and NBTest2 work just fine. In both
> cases, the dependency is copied into the dist directory. A project created
> in NBTest3 does not work correctly. The first really weird part is that a
> project created in NBTest1 or NBTest2 ALSO works just fine under NBTest3's
> scenario. So the failure occurs only for projects created in NBTest3.
> Then I diff'd all the XML and project files to see what's different between
> NBTest2 and NBTest3, and I can't find anything different. All I know is that
> even with JDK11, both NBTest2 builds fine, while NBTest3 doesn't. I'm
> attacking all three projects.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists