Using an IDE to work on the Java library
Mario Torre
neugens.limasoftware at gmail.com
Wed Nov 22 11:52:07 UTC 2017
2017-11-22 12:31 GMT+01:00 Andrew Haley <aph at redhat.com>:
> 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. I
> thought I'd use one of the Netbeans projects, but I can't run a simple
> program, and I can't get any of the test cases to run either.
If you only want to debug AOT maybe the best solution is to add the
custom JDK you just compiled in the "Java Platforms" menu and then
create a simple applications within NetBeans using this same JDK,
forgetting any custom "JDK as a project" trick. Attaching the debugger
at startup via NetBeans or even launching the application in debug
mode will use this JDK, so you can debug and see the code.
Now, I need to try this, but if I remember correctly, if you
configured the "Sources" for this custom JDK in the "Java Platform"
sources tab (again, not as a Java JDK project, but linked in the
properties of the JDK itself), Netbeans allows you to edit the files
that it opens (at least, it used to), you can point to the root
directory and NetBeans should be clever enough to figure out the
files.
If instead you go with the creation of a JDK as a project (like it was
suggested here before), consider that you don't need to necessarily
add all the sources for all the projects, just the ones you are
interested in, for instance, the AOT/Graal code and the Java base, or
such, you don't need it all.
I'll try later with a fresh clone of everything if I'm anywhere
successful to use a project with Netbeans using the project
definitions in the JDK, maybe I can help fixing those projects files.
Cheers,
Mario
--
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
Java Champion - Blog: http://neugens.wordpress.com - Twitter: @neugens
Proud GNU Classpath developer: http://www.classpath.org/
OpenJDK: http://openjdk.java.net/projects/caciocavallo/
Please, support open standards:
http://endsoftpatents.org/
More information about the jdk10-dev
mailing list