Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdk and jre

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing will happen For your Eclipse, you use always use JDK. You can't use JRE to compile your Java applications.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like something which would sit better on another forum. Moving to "IDEs".
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic