aspose file tools*
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 Spring in Action this week in the Spring 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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1204
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 liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1204
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: 14270
    
  21

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 8 API documentation
Campbell Ritchie
Sheriff

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

Joined: May 14, 2008
Posts: 5836
    
    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
 
jQuery in Action, 2nd edition
 
subject: jdk and jre