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 - Maven POM will not build with javac, though JAVA_HOME set
Summary: Maven POM will not build with javac, though JAVA_HOME set
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 16:37 UTC by broumbroum
Modified: 2015-06-01 14:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (57.73 KB, text/plain)
2015-05-19 16:37 UTC, broumbroum
Details

Note You need to log in before you can comment on or make changes to this bug.
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"