Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

jdk and jre

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 76067
362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like something which would sit better on another forum. Moving to "IDEs".
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic