Solved

eclipse compiler vs Installed JREs option

Posted on 2016-10-27
3
36 Views
Last Modified: 2016-11-04
Hi,

what is difference between eclipse compiler vs Installed JREs options under ecipse -->windows--->preferences.

can you give jdk1.8 at both places? or can i give one place jdk 1.6 and other place jdk1.8.
Do i need to give only jre under installed jre and jdk under compiler drop down of eclipse?
How MyComputer--> advanced Variables JAVA_HOME and PATH and M2_HOMe are different?

why it shows different java version to me as below from java -version and mvn --version??

C:\>java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

C:\>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_45
Java home: C:\Program Files\Java\jdk1.6.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
C:\>



please advise
0
Comment
Question by:gudii9
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
Comment Utility
There is no difference. Path settings determine what you see. Windows has path settings, so does eclipse.
0
 
LVL 7

Author Comment

by:gudii9
Comment Utility
but selecting JDK1.8 from JRE1.8 from ecipse -->windows--->preferences-->installed JREs  is seemingly solving some issues which i do not remember. I wonder how jdk not jre  helping better?
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
JDK is what you normally use to build software, hence Java Development Kit. JRE is the runtime. If you can't remember what has been solved then this is as much as I can advise you with now.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
network + 7 72
endX challenge 2 48
What is JNDI datasource in spring 1 36
github account with ecipse 1 15
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now