Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Set up eclipse and java jdk/jvm(What is the correct installation and paths to write code in java)
Set up eclipse and java jdk/jvm [message #1775158] Wed, 25 October 2017 13:40 Go to next message
Andrea Hernandez is currently offline Andrea HernandezFriend
Messages: 1
Registered: October 2017
Junior Member
index.php/fa/31124/0/I got a new laptop Windows 7 64bit and I want to code in java. I installed Eclipse helios, but I´m not sure about my java configuration

I got the error :


In Eclipse I Properties->Java Build Path I have jre7

C:\Program Files (x86)\Java\jre7\bin

Which I guess is JRE version 7. But in my command line I have;


the file eclipse.ini is:

C:\Program Files (x86)\Java\jre7\bin\javaw.exe

If I run my app I got this error:


I would appreciate any suggestion/correction

Thank you in advance!
  • Attachment: Capture2.PNG
    (Size: 24.68KB, Downloaded 193 times)
  • Attachment: Capture3.PNG
    (Size: 2.79KB, Downloaded 176 times)
  • Attachment: Capture5.PNG
    (Size: 39.56KB, Downloaded 170 times)
Re: Set up eclipse and java jdk/jvm [message #1775173 is a reply to message #1775158] Wed, 25 October 2017 18:18 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1651
Registered: July 2009
Senior Member
Any particular reasons you use an Eclipse version from 7 years ago?
At that time not even Java 7 existed (not to mention Java 9), so working with Java 7 on Helios doesn't sound like a very good combination of versions.
In addition you seem to use a library that was compiled for Java 8 and thus cannot be run on Java 7.
Re: Set up eclipse and java jdk/jvm [message #1775618 is a reply to message #1775173] Thu, 02 November 2017 09:15 Go to previous message
Eclipse UserFriend
JDK is used for Eclipse, change it:

Quit Eclipse if it is running
Go to the Eclipse installation directory and open the file eclipse.ini in a text editor.
Search for the line -vmargs
Before the line -vmargs, add two lines:

On the first line, write -vm

On the second line, write the path to your JDK installation (usually something like: C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe on Windows)
Previous Topic:Problem with folder/package
Next Topic:Error while installing GlassfishTools update
Goto Forum:

Current Time: Tue Nov 20 13:21:29 GMT 2018

Powered by FUDForum. Page generated in 0.01662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top