If eclipse has a compiler (see Wikipedia article on IDEs, third line), itself why do I have to download the jdk for compiling .java files? Doesn't eclipse convert my file to bytecode?
sepp2k
372k56 gold badges687 silver badges687 bronze badges
-
You might want to read what a compiler isNaman– Naman2017年10月12日 04:22:43 +00:00Commented Oct 12, 2017 at 4:22
-
Possible duplicate of What is the difference between javac and the Eclipse compiler?user7605325– user76053252017年10月12日 11:37:55 +00:00Commented Oct 12, 2017 at 11:37
1 Answer 1
Eclipse has its own compiler and it can work with JRE only. JRE is needed because Eclipse itself is run with java. However if we have JDK installed we can see Java platform class sources during develepment. Also Eclipse's Maven plugin uses JDK compiler.
answered Oct 12, 2017 at 4:58
Evgeniy Dorofeev
137k31 gold badges209 silver badges288 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
sepp2k
The JRE is also needed to actually run the compiled program. So you'd need it even if Eclipse weren't written in Java (unless Eclipse also implemented its own JVM and Java standard library, which it doesn't).
lang-java