[ https://issues.apache.org/jira/browse/NETBEANS-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780250#comment-16780250 ]
ARUNAVA SINHA edited comment on NETBEANS-1962 at 2/28/19 9:23 AM: ------------------------------------------------------------------ Follow the below steps to get jdk sources in Netbeans editor for JDK-11/12. 1. If one is using NetBeans exe, then specify netbeans_jdkhome=<JDK-11 location> in netbeans.conf file and restart the ide. 2. otherwise if one is using NetBeans build ,use "ant tryme -Dtryme.jdkhome=<JDK-11 location>" . 3. Don't use attach sources option. If you had already attached the sources, then manually delete it .Go to Project properties-->libraries->Manage Platform–>Sources tab . Delete the attached sources. then restart the IDE following either step1 or step2 Automatically jdk-sources will get attached to the Java Platform used in the IDE. was (Author: arunava.sinha): Follow the below steps to get jdk sources in Netbeans editor for JDK-11/12. 1. If one is using NetBeans exe, then specify netbeans_jdkhome=<JDK-11 location> in netbeans.conf file and restart the ide. 2. otherwise if one is using NetBeans build ,use "ant tryme -Dtryme.jdkhome=<JDK-11 location>" . 3. Don't use attach sources option. If u had already attached the sources, then manually delete it .Go to Project properties-->libraries->Manage Platform–>Sources tab . Delete the attached sources. then restart the IDE following either step 1 or step2 Automatically jdk-sources will get attached to the Java Platform used in the IDE. > Java 11: Opening Java source files from the JDK takes minutes > ------------------------------------------------------------- > > Key: NETBEANS-1962 > URL: https://issues.apache.org/jira/browse/NETBEANS-1962 > Project: NetBeans > Issue Type: Bug > Components: java - Platform, java - Source > Affects Versions: 11.0 > Environment: Debian GNU/Linux 9, OpenJDK 11.0.1 > Reporter: Michael Groß > Priority: Critical > Attachments: > 2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_fast.png, > 2019-01-19_Netbeans10_Java11_JavaPlatformManager_Sources_verySLOW.png, > 2019-01-20_Netbeans10_Java8_JavaPlatformManager_Sources.png > > > For Java 8 it is enough to provide the path to the > /usr/lib/jvm/openjdk-8/src.zip with the source files of the JDK with the Java > Platform Manager/Sources. The I can click on a class like java.lang.String > the source file for it is opened almost immediately. > For Java 11 providing the /usr/lib/jvm/openjdk-11/src.zip does not bring the > source. There is no error message in the IDE log (View > IDE Log). > Unpacking the src.zip and then including each folder herein, from java.base > to java.xml.crypto works - but it took minutes on my machine at high CPU load > (Intel(R) Pentium(R) CPU B940 @ 2.00GHz, SSD drive). > Then I merged all sub-directories from the direcories java.base to > java.xml.crypto together. The resulting structure is > com/ > java/ > javax/ > jdk/ > org/ > sun/ > (such as the structure before Java 9). Now I can open the Java sources for > Java 11 as fast as before. > # Could you please adapt the program such that I can provide a src.zip for > the JDK and it opens the sources from where? > # Could you please write an error in the IDE log when the source file was > not found (including the absolute path of that file)? -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- 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