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

Summary: Jigsaw build unable to find javac compiler
Product: java Reporter: Martin Balin <mbalin>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: JDK_9, NO81
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Java cmd line arguments

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.