Using an IDE to work on the Java library

Bradford Wetmore bradford.wetmore at oracle.com
Wed Nov 22 01:27:22 UTC 2017


On 11/13/2017 9:21 AM, Andrew Haley wrote:
> On 13/06/17 03:06, Bradford Wetmore wrote:
>> 4.  Install Jan Lahoda's (Oracle JDK/Netbeans) "JDK Project for
>> NetBeans" plugin.  Also "JTReg Support" if you are using JTReg.
>>
>>       . In Tools->Plugins menu go to Settings
>>       . Click Add button
>>       . In the URL paste:
>>
>>   
>> http://lahoda.info/hudson/job/nb-jdk-project/lastSuccessfulBuild/artifact/build/updates/updates.xml
> 
> It's been a while, but ... this project seems to be dead.

Jan has been updating when significant issues are discovered/reported, 
there is a version coming based on my report last week.


BTW, are you trying to run a test suite from within Netbeans, or just 
debug an individual test?

If the latter, what I used to do before I found out about Jan's project 
is basically the same as what I wrote back in June[1], but with the 
following changes:

*N.B., I don't use any of the netbeans projects in the OpenJDK workspaces.*

1.  In step 1, build jdk10 instead of 9.

2.  Skip step 4, or else disable OpenJDK/JTREG projects.

3.  In step 5, after you add the platform without specifying the source 
(only one directory possible), now go back and add all of the desired 
source locations using the sources tab.  Include any that you might 
want, in the right order.  e.g. gensrc, java.base-os-specific, 
java.base-shared, jdk.crypto.*, etc.  Step 6 no longer applies.  Likely 
only 7a works since you skipped step 4.

In 7a, I often will specify the project using "existing sources".  Then 
"Debug Project".

I just tried this out on a closed build and stepped through some simple 
test Projects, it works for JDK 10.

 > So I'd really love to have a concrete example of what people do

Hope this helps,

Brad

[1] http://mail.openjdk.java.net/pipermail/jdk10-dev/2017-June/000291.html



More information about the jdk10-dev mailing list