How to Run Eclipse in JDK

Eclipse is an integrated development environment (IDE) that is used to create Java software, though other languages are available through the use of additional software plug-ins. The Java Development Kit is a collection of specialized Java tools used by programmers to compile, run and troubleshoot software applications and web applets from within the JDK itself. Eclipse can be set to run with a Java Runtime Environment, which contains only the essential environment for programming Java applets and applications, or with a JDK. The path name to the JDK must be specified in order for Eclipse to run with the JDK instead of the JRE.

Instructions

    • 1

      Check the Java version currently in use by Eclipse by first opening the "Help" menu (the "Eclipse" menu on a Mac).

    • 2

      Click on "Installation Details," then select the "Configuration" tab.

    • 3

      Search the lines for one that starts with "-vm." If the file path that follows contains the letters "jre," Eclipse is operating with a Java Runtime Environment so needs to be changed to JDK. If the file path contains the letters "jdk," Eclipse is already operating using a JDK.

    • 4

      Quit Eclipse once you have found out it is not using a JDK.

    • 5

      Search your computer for the "eclipse.ini" file and open it with a text editor such as Notepad.

    • 6

      Locate the line containing the term "-vmargs."

    • 7

      Move the line down two rows so that there are two empty line spaces above it. On the first line space type "-vm." On the second line, type the path to the JDK located on your computer. This can be located by searching your computer for "jdk." Save the text file, open Eclipse and recheck the Java version being used to ensure that you have correctly switched from JRE to JDK.

Related Searches:

References

Comments

Related Ads

Featured