Using an IDE to work on the Java library
Andrew Haley
aph at redhat.com
Tue Nov 28 18:11:54 UTC 2017
Hi, and thanks for helping. Thanks for your patience!
On 27/11/17 15:42, Maurizio Cimadamore wrote:
> over the last few years, Chris and I have been promoting IntelliJ
> support for JDK [1] - the results of this work are included in OpenJDK,
> and you can create an idea project as follows:
>
> sh bin/idea.sh jdk.internal.vm.ci
>
> the command idea.sh takes a list of modules you want to work on. I
> tested it with the above module (which I've seen mentioned in this
> thread) and found no issues.
>
> Few months ago we also released the IntelliJ jtreg plugin which allows
> you to run/debug tests.
>
> I agree that we need to come up with ways to make it easier for people
> to work/hack on openjdk using IDEs - hopefully this is a step in the
> right direction. Note that this script works by delegating all
> configuration decisions to the makefile - so, assuming you have an
> existing build configuration, the source roots should be tailored for
> your OS/HW combo.
>
> [1] -
> http://mail.openjdk.java.net/pipermail/discuss/2015-January/003645.html
> [2] -
> http://mail.openjdk.java.net/pipermail/jtreg-dev/2016-October/000390.html
OK, so I do this and open the [jdk] directory. So far, so good.
And I can open the files in the jdk.internal.vm.ci directory, and they
are recognized. Now, I see at the top of the file "Project SDK is not
defined". That looks bad -- is there something wrong? Do you expect
to see this message?
But the really severe problem I now have is that I can't see any way
to create a program that uses this configuration. Let's say I want to
create Hello.java that uses this JDK. I can create a new Java class
under test, but I'm now stuck because of "Project SDK is not defined".
What would you do at this point? Thanks.
--
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