You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ozkan (Jira)" <ji...@apache.org> on 2020/12/17 09:45:00 UTC

[jira] [Commented] (NETBEANS-2827) Cannot find JDK despite the presence of setted JAVA_HOME in windows 10

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

ozkan commented on NETBEANS-2827:
---------------------------------

Same problem. I just upgraded my portable netbeans from choco, and I needed to edit C:\ProgramData\chocolatey\lib\apache-netbeans.portable\App\netbeans\etc\netbeans.conf at the bottom {code}
netbeans_jdkhome="C:\Program Files\OpenJDK\jdk-15.0.1"
{code}
here how looks my env java home
{code}
C:\Users\ozkan>set|findstr JAVA_HOME
JAVA_HOME=C:\Program Files\OpenJDK\jdk-15.0.1
{code}

> Cannot find JDK despite the presence of setted JAVA_HOME in windows 10
> ----------------------------------------------------------------------
>
>                 Key: NETBEANS-2827
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2827
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Execution
>    Affects Versions: 11.1, 12.2
>         Environment: Windows 10 in Virtualbox
>            Reporter: Edoardo Panfili
>            Priority: Major
>
> When I try to launch netbeans64.exe in windows 10 appears a dialog saying "Cannot find Java 1.8 or higher" and the IDE doesn't starts.
> I have the JDK12 (but the same with JDK11) from AdoptOpenJDK installed in C:\Program Files\AdoptOpenJDK\jdk-12.0.1.12-hotspot\ and the variable JAVA_HOME points the the correct folder (I can verify this using "set" in cmd).
>  
> The possible workaround is to copy the value of JAVA_HOME in netbeans_jdkhome inside etc/netbeans.conf but is not so obvious for new users.



--
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