Jim Idle schrieb:
> Johannes Luber wrote:
>> Jim Idle schrieb:
>>   
>>> Johannes Luber wrote:
>>>     
>>>> Hi!
>>>>
>>>>       
>> In most cases you can change the location of your Java
>> installation by setting the JAVA_HOME environment variable.
>>
>>
>> When I run "mvn --version", I get:
>>
>> Maven version: 2.0.9
>> Java version: 1.5.0
>> OS name: "linux" version: "2.6.25.20-0.1-default" arch: "i386" Family:
>> "unix"
>>
>> With "echo $JAVA_HOME", I get:
>>
>> /usr/lib/jvm/java
>>
>> What could be wrong?
>>
>> Johannes
>>   
> Where is your javac command located? Is JAVA_HOME definitely pointing to
> a JDK and not a JRE and if so, did you export it?
> 
> For instance, I set JAVA_HOME to:
> 
> JAVA_HOME=/usr/lib/jvm/java-1.6.0 which in turn is a symbolic link to:
> 
> /etc/alternatives/java_sdk_1.6.0/
> 
> With the usual JDK structure:
> 
> 
> bin/
> COPYRIGHT
> include/
> jre/
> lib/
> LICENSE
> src.zip -> ../../../../usr/src/java-1.6.0-sun-1.6.0.10.zip
> THIRDPARTYLICENSEREADME.txt
> 
> type javac
> javac is /usr/bin/javac
> ls -l /usr/bin/javac
> /usr/bin/javac -> /etc/alternatives/javac*
> ls -l /etc/alternatives/javac
> /etc/alternatives/javac -> /usr/lib/jvm/java-1.6.0/bin/javac*
> 
I get:

ls $JAVA_HOME
bin  include  jre  lib

type javac
javac is /usr/bin/javac

ls -l /usr/bin/javac
lrwxrwxrwx 1 root root 23 12. Jun 2008  /usr/bin/javac ->
/etc/alternatives/javac

ls -l /etc/alternatives/javac
lrwxrwxrwx 1 root root 37 23. Dez 21:21 /etc/alternatives/javac ->
/usr/lib/jvm/java-1.5.0-gcj/bin/javac

Johannes
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to