• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem installing Java EE 6 with JDK 7

 
Greenhorn
Posts: 2
C++
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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").
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 679
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One more thing - in my case, I had to omit the ".exe"
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think there was a problem with a missing blank after -j
 
What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic