• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem installing Java EE 6 with JDK 7  RSS feed

 
Balu Sakkarwar
Greenhorn
Posts: 2
C++
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello evreyone, this is my first post on the forum.

I am having trouble installing Java EE 6 on my windows 7 64 bit system. I already have installed JDK 7 and set the path & JAVA_HOME environment variables and have tested them with the java -version & javac -version commands on the command prompt. After that tried installing java_ee_sdk-6u3-jdk7-windows-x64.exe through the GUI and every time after running for a few seconds an error message pops up stating Error: Could not find the required version of the Java(TM) 2 Runtime Environment in '(null)' .

After that I googled my problem and found out that some other guy had the same problem and he got rid of it by installing JRE 6, so I downloaded JRE 6, installed it again and tried running the setup and same as before after a few seconds the same message popped up. I googled again and this time I was suggested to run the setup through command prompt with the following command java_ee_sdk-6u3-jdk7-windows-x64.exe -j%JAVA_HOME%, I did that as well and this time I got a new error message as Error: '-jC:\Program' is not a valid argument .

Then I downloaded java_ee_sdk-6u4-windows.exe tried all the above steps with it in order got the same error messages in order . Now I've run out of ideas, if somebody please could tell what I am doing wrong how to solve the problem I'd very much appreciate it. Thanks.
 
Anayonkar Shivalkar
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Balu Sakkarwar,

Welcome to CodeRanch!

Balu Sakkarwar wrote:Error: '-jC:\Program' is not a valid argument

I suspect that your JAVA_HOME variable is not properly set.
Can you please post the output of

Also, please make sure that you've provided the path in double quotes (i.e. instead of C:\Program Files\Java, try "C:\Program Files\Java").
 
Campbell Ritchie
Marshal
Posts: 56553
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is the PATH variable which is the important thing to set. A lot of people use the JAVA_HOME as part of the PATH. Look at our FAQ.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The OP has his PATH set correctly, otherwise java -version and javac -version wouldn't have worked.
The problem is that the value of the JAVA_HOME variable contains spaces and so needs to be enclosed in quotes
Try java_ee_sdk-6u3-jdk7-windows-x64.exe -j"%JAVA_HOME%"
 
Balu Sakkarwar
Greenhorn
Posts: 2
C++
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys, when I put java_ee_sdk-6u3-jdk7-windows-x64.exe -j"%C:\Program Files\Java\jdk1.7.0_01" i.e the full path within double quotes it worked.

Anayonkar I echo %JAVA_HOME% gives C:\Program Files\Java\jdk1.7.0_01 as the output.

Thanks again .
 
Kumar Anupam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, guys I too got the same problem and it is resolved now.
A small correction, a space in required after -j
java_ee_sdk-6u4-jdk7-windows-x64-ml.exe -j "C:\Program Files\Java\jdk1.7.0_21"
 
Kevin O'Mara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more thing - in my case, I had to omit the ".exe"
 
gabi.schmidberger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there was a problem with a missing blank after -j
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!