You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/03/01 08:42:00 UTC

[jira] [Created] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

Svatopluk Dedic created NETBEANS-5393:
-----------------------------------------

             Summary: Micronaut projects cannot be launched on non-default JDK
                 Key: NETBEANS-5393
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5393
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Maven
    Affects Versions: 12.2
            Reporter: Svatopluk Dedic


When using different than system-default JDK, Micronaut projects that reference Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot be executed.

For example if the system-default JDK is JDK 8, while the Micronaut project targets JDK11, the project compiles fine using JDK11 compiler, but will be run by JDK8 (the system-default on the PATH) runtime.

This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and disables use of {{exec.executable}} project/commandline property.

A possible workaround would be to launch with {{PATH}} prepended with the selected JDK platform.



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

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

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