r/learnjava • • May 24 '21

Java Environment and "how it works"

As everyone learning Java I started my first lesson with "you don't care about that weird public static void main(String[] args) bit, we explain later" months after, tutorials, and people never explained whats going on within that method, and going deeper how java actually works.

I banged into this problem and lack of explanation when I was trying to make VSC work as Java Dev Environment. I have so many questions...like what is actually java_home how does that work. How does Maven project differs from basic projects I was making in Netbeans, how is JavaFX part of Java packages but when running project it never compiles correctly.

I'm sure these are very naive questions with layers and layers of knowledge that I should have but never got to learn. Is there a good tutorial series or video playlist (pls dont link basic Java docs) that I could learn these things from?

55 Upvotes

7 comments sorted by

View all comments

2

u/knoam May 25 '21

JavaFX used to be part of the official JDK, so you could just assume it was always available, just like how you don't need a library for Math.sqrt. But Oracle wanted to slim down the JDK and spin off and/or open source anything that wasn't a core part of Java. So for newer versions JavaFX is now a library that has to be imported.