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

MeFisto94 commented on NETBEANS-3660:
-------------------------------------

I think I now have more insight on what is happening but I have no clue on how 
to solve that besides downgrading to Java 10.

Background [https://stackoverflow.com/q/52584888] and the related answers.

TLDR is: There is no jre anymore, it's all part of the jdk. The Installer 
System has to adopt to this.
For Versions 9 and 10 it seems the jre folder also wasn't named "jre" but 
contained a version specific suffix.

Now this is the time to think about a change on our project: Do we need to 
bundle the JDK? Should we even bundle the JDK? Will this even be supported in 
the future?
I'm asking this especially since there seems to be new tooling available to 
create platform natives which include the JDK as well as netbeans probably 
bundling one anyway.

> Netbeans Installer fails with bundled JDK
> -----------------------------------------
>
>                 Key: NETBEANS-3660
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3660
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - JDK Problems
>    Affects Versions: 8.2
>            Reporter: MeFisto94
>            Priority: Major
>
> For our Netbeans Platform Application 
> ([https://github.com/jMonkeyEngine/sdk/releases/tag/v3.3.0-beta1-sdk1)] at 
> least the 64bit Windows Version of the Netbeans Installer is broken.
>  
> Here's a log
> ```
> [...]
> [2020-01-03 00:25:54.511]> ... directory : 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp\_jvm\lib\server
> [2020-01-03 00:25:54.512]> ... listing directory 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp\_jvm\lib\server
> [2020-01-03 00:25:54.513]> ... java hierarchy there
> [2020-01-03 00:25:54.514]> Create new process: 
> [2020-01-03 00:25:54.515]> command : 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp\_jvm\bin\java.exe -classpath 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp TestJDK 
> [2020-01-03 00:25:54.516]> directory : C:\Users\Marc\Downloads
> [2020-01-03 00:25:54.544]> ... process created
> [2020-01-03 00:25:54.645]> ... process finished his work
> [2020-01-03 00:25:54.649]> output :
> 11.0.5
> 11.0.5+10
> AdoptOpenJDK
> Windows 10
> amd64
> [2020-01-03 00:25:54.650]> java.version = 11.0.5
> [2020-01-03 00:25:54.651]> java.vm.version = 11.0.5+10
> [2020-01-03 00:25:54.651]> java.vendor = AdoptOpenJDK
> [2020-01-03 00:25:54.653]> os.name = Windows 10
> [2020-01-03 00:25:54.654]> os.arch = amd64
> [2020-01-03 00:25:54.654]> 
> [2020-01-03 00:25:54.654]> ... getting java version from string : 11.0.5+10
> [2020-01-03 00:25:54.655]> ... some java there
> [2020-01-03 00:25:54.656]> ... no java at 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp\_jvm
> [2020-01-03 00:25:54.657]> ... check private jre at 
> C:\Users\Marc\AppData\Local\Temp\\NBI06365.tmp\_jvm\jre
> [2020-01-03 00:25:54.658]> ... not a java hierarchy
> [2020-01-03 00:25:54.659]> ... no java was found
> [2020-01-03 00:26:00.595]> No compatible jvm was found on the system
> [2020-01-03 00:26:00.596]> ... deleting temporary directory 
> [2020-01-03 00:26:00.815]> ... EXIT status : 1010
> [2020-01-03 00:26:00.816]> ... EXIT code : 0
> [2020-01-03 00:26:00.817]> Closing launcher properties
> ```
>  
> Now I don't know how to proceed as it can successfully run the test and 
> extract the version string and concluding `some java there`, but it then 
> concludes `no java at C:\..._jvm` (Actually it is in the bin\ folder there...)



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

Reply via email to