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 252491

Summary: Maven POM will not build with javac, though JAVA_HOME set
Product: projects Reporter: broumbroum
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description broumbroum 2015-05-19 16:37:24 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.8.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.25-b02

cd D:\Documents\Bitbucket\sf3-jxakn\sf3-jxakn; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_25" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=C:\\Users\\<Myname>\\AppData\\Roaming\\NetBeans\\8.0.2\\maven-nblib\\netbeans-eventspy.jar install\""
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building sf3-jxakn 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-antrun-plugin:1.3:run (ant-magic) @ sf3-jxakn ---
Executing tasks

compile:
    [javac] Compiling 194 source files to D:\Documents\Bitbucket\sf3-jxakn\sf3-jxakn\bin
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.453s
Finished at: Tue May 19 18:29:24 CEST 2015
Final Memory: 6M/77M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (ant-magic) on project sf3-jxakn: An Ant BuildException has occured: The following error occurred while executing this line:
D:\Documents\Bitbucket\sf3-jxakn\sf3-jxakn\build-jars.xml:396: 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 "C:\Program Files\Java\jdk1.8.0_25\jre"
-> [Help 1]
Comment 1 broumbroum 2015-05-19 16:37:29 UTC
Created attachment 153753 [details]
IDE log
Comment 2 broumbroum 2015-05-19 17:30:18 UTC
Where else than can the JAVA_HOME property be set in Windows Netbeans with Maven module ? 
Netbeans etc/netbeans.conf defines a netbeans jdk home, but the maven module ignores it, that's odd /:
Comment 3 Tomas Stupka 2015-06-01 14:31:21 UTC
from the output ...
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jdk1.8.0_25\jre"