You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by darnokA <la...@hotmail.com> on 2008/08/10 20:07:41 UTC

javac not found on maven on mac

Hello,

I have recently upgraded my macbook pro from the standard version of maven
(2.0.6) to 2.0.9, and am getting the following error on 'mvn install':
Embedded error: Error while executing the external compiler.
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/../bin/javac:
not found

My environment vars are as follows:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
M2=/usr/local/maven/bin
M2_HOME=/usr/local/maven
PATH=/usr/local/maven/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin

Some sanity checks on mvn, java and javac locations and versions:
$ whereis mvn
/usr/bin/mvn
$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"

$ whereis java
/usr/bin/java
$ whereis javac
/usr/bin/javac

$ ls -al /usr/bin/java
lrwxr-xr-x  1 root  wheel  74 30 Apr 07:23 /usr/bin/java ->
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
$ ls -al /usr/bin/javac
lrwxr-xr-x  1 root  wheel  75 30 Apr 07:23 /usr/bin/javac ->
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
$ ls -al /System/Library/Frameworks/JavaVM.framework/Versions/Current
lrwxr-xr-x  1 root  wheel  56 10 Aug 18:56
/System/Library/Frameworks/JavaVM.framework/Versions/Current ->
/System/Library/Frameworks/JavaVM.framework/Versions/1.5

$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

Thanks in advance for any help
-- 
View this message in context: http://www.nabble.com/javac-not-found-on-maven-on-mac-tp18915505p18915505.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: javac not found on maven on mac

Posted by darnokA <la...@hotmail.com>.
No, I've not touched the compiler plugin.  Could try out those scripts, but I
don't see them doing anything special in that department...


Brett Porter wrote:
> 
> The home looks ok - I'm not sure why it's looking in ../bin instead of
> $JAVA_HOME/bin - have you configured the compiler plugin in some way?
> 
> You might be interested in this script for changing versions of Maven:
> 
> http://jira.codehaus.org/browse/MNG-2730
> 
> Cheers,
> Brett
> 
> 2008/8/11 darnokA <la...@hotmail.com>:
>>
>> Hello,
>>
>> I have recently upgraded my macbook pro from the standard version of
>> maven
>> (2.0.6) to 2.0.9, and am getting the following error on 'mvn install':
>> Embedded error: Error while executing the external compiler.
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/../bin/javac:
>> not found
>>
>> My environment vars are as follows:
>> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
>> M2=/usr/local/maven/bin
>> M2_HOME=/usr/local/maven
>> PATH=/usr/local/maven/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin
>>
>> Some sanity checks on mvn, java and javac locations and versions:
>> $ whereis mvn
>> /usr/bin/mvn
>> $ mvn -version
>> Maven version: 2.0.9
>> Java version: 1.5.0_13
>> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
>>
>> $ whereis java
>> /usr/bin/java
>> $ whereis javac
>> /usr/bin/javac
>>
>> $ ls -al /usr/bin/java
>> lrwxr-xr-x  1 root  wheel  74 30 Apr 07:23 /usr/bin/java ->
>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
>> $ ls -al /usr/bin/javac
>> lrwxr-xr-x  1 root  wheel  75 30 Apr 07:23 /usr/bin/javac ->
>> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
>> $ ls -al /System/Library/Frameworks/JavaVM.framework/Versions/Current
>> lrwxr-xr-x  1 root  wheel  56 10 Aug 18:56
>> /System/Library/Frameworks/JavaVM.framework/Versions/Current ->
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5
>>
>> $ java -version
>> java version "1.5.0_13"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
>> Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
>>
>> Thanks in advance for any help
>> --
>> View this message in context:
>> http://www.nabble.com/javac-not-found-on-maven-on-mac-tp18915505p18915505.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> 
> -- 
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/javac-not-found-on-maven-on-mac-tp18915505p18934416.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: javac not found on maven on mac

Posted by Brett Porter <br...@gmail.com>.
The home looks ok - I'm not sure why it's looking in ../bin instead of
$JAVA_HOME/bin - have you configured the compiler plugin in some way?

You might be interested in this script for changing versions of Maven:

http://jira.codehaus.org/browse/MNG-2730

Cheers,
Brett

2008/8/11 darnokA <la...@hotmail.com>:
>
> Hello,
>
> I have recently upgraded my macbook pro from the standard version of maven
> (2.0.6) to 2.0.9, and am getting the following error on 'mvn install':
> Embedded error: Error while executing the external compiler.
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/../bin/javac:
> not found
>
> My environment vars are as follows:
> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
> M2=/usr/local/maven/bin
> M2_HOME=/usr/local/maven
> PATH=/usr/local/maven/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin
>
> Some sanity checks on mvn, java and javac locations and versions:
> $ whereis mvn
> /usr/bin/mvn
> $ mvn -version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
>
> $ whereis java
> /usr/bin/java
> $ whereis javac
> /usr/bin/javac
>
> $ ls -al /usr/bin/java
> lrwxr-xr-x  1 root  wheel  74 30 Apr 07:23 /usr/bin/java ->
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
> $ ls -al /usr/bin/javac
> lrwxr-xr-x  1 root  wheel  75 30 Apr 07:23 /usr/bin/javac ->
> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
> $ ls -al /System/Library/Frameworks/JavaVM.framework/Versions/Current
> lrwxr-xr-x  1 root  wheel  56 10 Aug 18:56
> /System/Library/Frameworks/JavaVM.framework/Versions/Current ->
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5
>
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
> Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
>
> Thanks in advance for any help
> --
> View this message in context: http://www.nabble.com/javac-not-found-on-maven-on-mac-tp18915505p18915505.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org