This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes jdk and jre Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "jdk and jre" Watch "jdk and jre" New topic
Author

jdk and jre

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
what happen when i useddifferent versions of jdk and jre to the eclips.i mean if i used 1.4 jdk and 1.6 jre.
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Nothing will happen For your Eclipse, you use always use JDK. You can't use JRE to compile your Java applications.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

aruna sameera wrote:what happen when i useddifferent versions of jdk and jre to the eclips.i mean if i used 1.4 jdk and 1.6 jre.


(Not Sure)Mostly you wont get any problem . but you cant do vice-versa ,you will get an exception
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
but there is a problem.i have installed maven plugin in my eclips.when i am openning it says my eclips.ini files vm is refering to jre.it asking to chang it to the jdk.
ihave chang it but as this.

but it still asking that
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Freddy Wong wrote:Nothing will happen For your Eclipse, you use always use JDK. You can't use JRE to compile your Java applications.

That's not true with Eclipse; Eclipse contains its own built-in Java compiler, it does not use the Java compiler supplied with the JDK.
aruna sameera wrote:but there is a problem.i have installed maven plugin in my eclips.when i am openning it says my eclips.ini files vm is refering to jre.it asking to chang it to the jdk.

Maven needs a JDK to run. In Eclipse, look at Window / Preferences / Java / Installed JREs. Make sure both your JRE and JDK are registered there.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
Sounds like something which would sit better on another forum. Moving to "IDEs".
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Aruna, each line in eclipse.ini should hold only one token, thus change it to two lines. Also, I think you need to specify the full path to either the java.exe or jvm.dll:



JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdk and jre
 
Similar Threads
Upgrade jdk
Linux - get JDK version
Help - new to Java and can't get my compiler to work
Using Java for a commercially available tool?
Applet notinited - PROBLEM: Can't run applets