Using an IDE to work on the Java library
Andrew Haley
aph at redhat.com
Wed Nov 22 13:45:05 UTC 2017
On 22/11/17 11:31, Andrew Haley wrote:
> All I want is a JDK that I can debug and edit. I've been trying to
> use the Netbeans projects because there are dozens (hundreds? :-) of
> source directories in the JDK and having to enter every single one of
> them into the Netbeans "add source" dialogue is incredibly painful.
And, I forgot to say, Netbeans returns hundreds of errors with the
source covered in red underlining, with messages like "error: package
jdk.vm.ci.code does not exist". It does, and it's in the JDK, but for
some reason Netbeans doesn't look in there. So I can't set breakpoints
on it either, because I get the
Not able to submit breakpoint MethodBreakpoint [jdk.tools.jaotc.Main].main '([Ljava/lang/String;)V', reason: Breakpoint belongs to disabled source root '/home/aph/jdk/src/jdk.aot/share/classes/jdk.tools.jaotc/src'. See Window/Debugging/Sources.
message. I was hoping that the Netbeans projects would fix this.
Like I said, lots of people are working on the JDK, and they must do
their development somehow. But it seems impossible. The Netbeans
projects don't work -- I guess they got broken when the source was
reorganized. I'm going to try John Rose's suggestion next, to see if
that works.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the jdk10-dev
mailing list