Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.9
-
Fix Version/s: 2.0.9
-
Component/s: Command Line
-
Labels:None
-
Environment:Windows Vista
-
Complexity:Intermediate
-
Number of attachments :
Description
ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
My JAVA_HOME is set perfectly ( i checked java.exe set on C:\Program Files\Java\jdk1.6.0_03\bin) JAI and JMF all working ... javac and rest of the commands also work so i guess i good with it.
i tried the following options:
1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
4.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2;
I put JAVA_HOME in both user enviroment variables and system one still didn't work.
I copy pasted the path from the browser so i can't be wrong in that.
I have nothing more to try ... any Idea's ?
The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.
Again, a single directory spec shouldn't end with a separator like ";"
Although the trailing back slash is not necessary, this should work. I just tried
by myself and encountered no problems. Could you provide more diagnostic output from Maven for this case?