• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java versions in eclipse

 
Ranch Hand
Posts: 82
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

   I've java 7 installed on my machine. I downloaded eclipse oxygen to begin with and it require at least java 8 to run. So, I installed java 8. However, I do not have admin privileges to set the jdk path to system variable. Is there a way that I can set path in user variable and make it work?

I tried creating user variable "Path" and set java 8, but it did NOT work. the java -version still gives me java 7.

On the other note, when I see %PATH% in cmd prompt, I do not see java 7 in there either, I believe system takes java 7 exe from Windows/System32. I don't have access to this folder either to copy java 8 exe. Also, I see the java 8 path appended to this %PATH% variable at the end.

C:\......<other components>....;C:\jdk8\bin

Please help me to set java 8 and make my eclipse run.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Santosh,
Great question!

You can edit the eclipse.ini file and set the version of Java you want to run. Note this should be two separate lines:



This tells Eclipse which version you want to use.

Alternatively, you could use Eclipse Neon with Java 7.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to avoid confusion, note that Eclipse is a Java Application and therefore it runs under a JVM. But since it's also an IDE, it can support projects written and deployed under various different JDK's and JRE's.

The eclipse.ini file defines the location of the JVM (JRE) that runs Eclipse. The JDKs and JREs that are actually used in projects are defined using the Eclipse GUI. They can then be attached to individual projects.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic