Solved

why JDK and JRE must be same version Can we mix and match

Posted on 2008-10-01
8
602 Views
Last Modified: 2012-05-05


I like also to understand why there is a conflict when  jdk1.5.0_10 and jre1.6 are on the same directory,without  jre1.5 not  in the directory. There is a message like "multiple vm process run at the same time" displays when some application that need runtime java is run

0
Comment
Question by:Greens8301
  • 4
  • 4
8 Comments
 

Author Comment

by:Greens8301
Comment Utility
Any explaination will be appreciated
0
 
LVL 41

Expert Comment

by:HonorGod
Comment Utility
ok, the reason is that the JDK include a Java compiler (javac) which creates the "byte code" executable code.  The JRE does not have this compiler, it only include the Java Virtual Machine to execute the code created by a Java compiler.

So, the code created by a compiler of one version may be incompatible with a different JRE.

The two that you mention (i.e., JDK 1.5 and JRE 1.6) can't share the same directory because some files exist in each that are identical, and some that aren't.

They can, however, exist on the same machine, just not in the same directory.

Hopefully this helps.
0
 

Author Comment

by:Greens8301
Comment Utility
HonorGod,

Thanks

I have a situation. Now I have jdk1.5 and jre1.5 on the sam directory. Do not have jdk1.6 or jre1.6.
An application was running well before I removed all versions of java and installed JDK1.5 and JRE1.5

If I want the same functionality of the application now, do I just install JRE1.6. If so is it possible to install JRE1.6  alone without the JDK1.6  component
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
Comment Utility
One thing that may not be clear to you is that a JRE is a proper subset of a JDK.
This means that all of the functionality (and files) that exist in a JRE also exist in
a JDK.  The JDK has the additional files necessary to compile your Java Applications.

If you want to install a 1.6 JRE, or JDK you can do so, just not to the same directory that exists and contains your 1.5 JDK or JRE.

Install it to a separate directory, and you should be just fine.

Right now, I have a 1.4.2 JDK directory, and a 1.5 JDK directory, and a 1.6 JDK
directory all installed (and usable) on my machine.  To use one, I just set up
my environment variables to point to the appropriate directory structure.

Hopefully this helps.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 41

Expert Comment

by:HonorGod
Comment Utility
Thanks for the grade & points.

Good luck & have a great day
0
 

Author Comment

by:Greens8301
Comment Utility
How do I install JDK and JRE different version on different directory 1.6 in one directory and 1.5 in another directory.

Do I specify while installation ?

Thanks
0
 

Author Comment

by:Greens8301
Comment Utility
I have figured it out
I was initially confused with directory path , I found that it will also include JDK1.5.0_16

It works
Thanks
0
 
LVL 41

Expert Comment

by:HonorGod
Comment Utility
Ah, I missed your subsequent question.  Sorry about that.

I'm glad that you got the answer.  Thanks for sharing it.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now