Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

multiple java editions

Doing the reload this question using IE got around the problem on 'objects' question, but doesn't do anything here.  In fact the 'reload' option shows up on opposite sides of the question here as the qbjects question.

Hello all:  Using NS, 'Edit Question' is the only option available to me.  Will try IE.
Objects:  got 'Page not found' on the 'points for objects' question.  
Maybe machines just don't like me.

I installed the flavor of the month (1.4), but want to dink around with mail so i think i need the j2ee.  How do you configure both installs so things don't get too confused?
Avatar of gandalf94305
gandalf94305

Of course, this depends on your system platform, but generally you would put different installations of different flavours of Java into different directories...

J2SE 1.3.1 into /usr/j2se1.3.1
J2SE 1.4.0 into /usr/j2se1.4.0
JSEE 1.4.0 into /usr/j2ee1.4.0

and so on. Some package installers for Java JDK will insist on certain paths, in that case, install relative to a sub-directory "dist" of the root directory as given above, and create symbolic links to provide the right directory structure. Under Windows, install into separate directories.

To use one of these flavours, simply set your JAVA_HOME to the respective directory as given above, include ${JAVA_HOME}/bin in your PATH, optionally tweak LD_LIBRARY_PATH to include shared libraries and CLASSPATH to include jars.

That's it. I use this to run two or three versions of Java on a single machine and to select on a project basis, which JDK to use.

Cheers,
--gandalf.
Avatar of CEHJ
You don't need J2EE for mail. Simply download the Java Mail API.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial