This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255478 - Jigsaw build unable to find javac compiler
Summary: Jigsaw build unable to find javac compiler
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_9, NO81
Depends on:
Blocks:
 
Reported: 2015-09-22 09:13 UTC by Martin Balin
Modified: 2016-04-11 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java cmd line arguments (2.17 KB, text/plain)
2015-09-22 09:51 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2015-09-22 09:13:05 UTC
Special Jigsaw build of NB dev with Jigsaw EA public build:
Product Version = NetBeans Dev JDK9 branch (Build 20150918-951c25ccfea0) (#951c25ccfea0)
Operating System = Linux version 3.16.0-44-generic running on amd64
Java; VM; Vendor = 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3337-20150908-b80; Oracle Corporation

Create sample app ClientEditor, then build it, change source level to support one (e.g. 7). Build fails with error message in NB output window:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/home/mbalin/jigsaw_public"
Comment 1 Martin Balin 2015-09-22 09:51:56 UTC
Created attachment 156344 [details]
Java cmd line arguments
Comment 2 Jiri Kovalsky 2015-09-23 16:08:10 UTC
I have seen the same error when I turned off Compile on Save and wanted to debug a sample AnagramGame project.
Comment 3 Dusan Balek 2015-10-29 10:45:47 UTC
Unfortunately, I cannot reproduce the problem using the current Jigsaw build of NB. Is the issue still reproducible on your sources? Thanks.