1

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
asked Oct 12, 2017 at 4:09
2

1 Answer 1

3

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
Sign up to request clarification or add additional context in comments.

1 Comment

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).

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.