• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java EE7 and SE8 - Installation on the same system?  RSS feed

 
Jo Angler
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm very new to this forum, so if the question is on thre wrong place or so, please forgive me.

I need both Java EE7 and SE8. (I have SE8 installed already)
Is it possible to install it on the same (Windows) System? Do I get in trouble, may be with the CLASSPATH or other things? Is there soemething special I have to take care of?

Thanks
Jo
 
Campbell Ritchie
Marshal
Posts: 56593
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I am 99.99% sure you can do that, and it won't be difficult. Have you found any JavaEE installations instructions? Try here. I am pretty sure you have to install a JavaSE installation first, which you appear to have done already. What do you mean about CLASSPATH? I hope you have not set a system CLASSPATH because that usually causes many problems. Please show us what happens if you write
echo %CLASSPATH%
at a command line. The ideal is for you to get nothing printed because you don't usually need a system CLASSPATH.
 
Campbell Ritchie
Marshal
Posts: 56593
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instructions I quoted seem easy enough. You do need a system environment variable JAVA_HOME. That would read something like C:\Program Files\Java\jdk1.8.0_112 on a Windows® box, in which case the corresponding PATH reads
%JAVA_HOME%\bin;...
When you upgrade your Java® installation, upgrade the JAVA_HOME variable rather than PATH. Of course, you might have set up your environment variables like that so no change is needed.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:I am 99.99% sure you can do that, ...

I am 100% sure that you can do that, in fact, you need a Java SE installation to be able to use Java EE. Java EE is an extension to Java SE.

The Java EE 7 SDK works without any problems on Java SE 8. (The installation instructions say that you need to have JDK 7 update 65 or newer or JDK 8 update 20 or newer installed).

There are no difficult things you need to do with the classpath. You just have to unzip the Java EE 7 SDK in a directory, that's all.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!