Debugging Jigsaw test cases in an IDE

David Bosschaert david.bosschaert at gmail.com
Wed Feb 29 14:14:16 PST 2012


Hi all,

I've been trying to set up my IDE so that I can debug Jigsaw test
cases, but without success. For example this test:

It works from the commandline:
.../jdk/test $ jtreg
-testjdk:/home/david/hg/pj_230212/build/linux-i586/jdk-module-image
java/lang/module/_ModuleId.java
Test results: passed: 1
... more output ...

So I tried to get that working in an IDE. I looked at the Netbeans
setup instructions in /jdk/make/netbeans/j2se and set up the IDE that
way, but when I do 'Debug File' on the _ModuleId.java test above (or
any other test)
It fails with:
  debug-selected-file-in-test:
  JDK-IDE.debug-selected-file-in-test:
  Error: Could not find or load main class java.lang.module._ModuleId
  Java Result: 1

Does anyone have this working in an IDE? Is there any additional set
up? I have my ~/.openjdk/build.properties file set as below...

Thanks,

David

bootstrap.jdk=/usr/lib/jvm/java-1.7.0-openjdk
jtreg.home=/home/david/apps/jtreg
make.options=\
            ALT_BOOTDIR=/usr/lib/jvm/java-1.7.0-openjdk \
            ALT_JDK_IMPORT_PATH=/home/david/hg/pj_230212/build/linux-i586/jdk-module-image
\
            LANG=C \
            ALLOW_DOWNLOADS=true \
            OPENJDK=true



More information about the jigsaw-dev mailing list