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 :

index.php/fa/31124/0/

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;

index.php/fa/31125/0/

the file eclipse.ini is:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-vm
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m

If I run my app I got this error:

index.php/fa/31126/0/

I would appreciate any suggestion/correction

Thank you in advance!
  • Attachment: Capture2.PNG
    (Size: 24.68KB, Downloaded 594 times)
  • Attachment: Capture3.PNG
    (Size: 2.79KB, Downloaded 419 times)
  • Attachment: Capture5.PNG
    (Size: 39.56KB, Downloaded 448 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: 1853
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: Sat Oct 05 15:59:31 GMT 2024

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

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

Back to the top