Please note:

A JRE never has developer tools like compilers or generators and the like. 
Nothing to develop something. 

That's why JAVA_HOME as environment variable must point to a SDK-root with 
javac.exe in it and not to a JRE-root.

 

And second: 

JAVA_HOME is an environment variable AND is sometimes intentionally be used to 
overwrite the java system property $(java.home)

BUT This is a no go too in WINDOWS as the java system property ${java.home} 
points always to a JRE-root even when set explicit. There is no override. 

Hence using ${java.home} to catch a javac.exe (compiler) is a no-go too.

 

With this in mind Per-Henrik's request is very valid.

 

Josef

 

 

 

 

Von: Enrique Gaona [mailto:[email protected]] 
Gesendet: Mittwoch, 8. September 2010 03:05
An: Maven Users List
Cc: [email protected]
Betreff: RE: Maven failing due to javac path issue -- Windows

 

Apologies for not responding right away, had to deal with another fire:-)

Per-Henrik's request:

C:\Documents and Settings\Administrator>javac -version
javac 1.6.0-internal

I just resolved the problem by adding a maven-compiler-plugin to the project's 
pom.xml and that resolved the issue. Thanks everyone for your input, very much 
appreciate all the help.

Cheers,

Enrique



Inactive hide details for Martin Gainty ---09/07/2010 07:23:10 
PM---$JDK_HOME/bin/javac.exeMartin Gainty ---09/07/2010 07:23:10 
PM---$JDK_HOME/bin/javac.exe

Martin Gainty <[email protected]> 

09/07/2010 07:22 PM 

Please respond to
"Maven Users List" <[email protected]>



To


<[email protected]>



cc





Subject


RE: Maven failing due to javac path issue -- Windows

 







$JDK_HOME/bin/javac.exe
$JRE_HOME/bin/java.exe

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





> To: [email protected]
> From: [email protected]
> Subject: Re: Maven failing due to javac path issue -- Windows
> Date: Tue, 7 Sep 2010 23:11:21 +0200
> 
> Anders Hammar wrote:
> 
> > I believe that the Java home path given by "mvn -version" on a Windows
> > platform points at the jre, not the jdk. Possibly someone on Windows could
> > confirm this?
> 
> This is normal (also on Linux). I am also curious on "java -version" though 
> ... 
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
        

Reply via email to