DEV Community

Hanna
Hanna

Posted on

๐Ÿš€ 01 My First Step into Java: Setting Up the Environment (Oracle Java & Eclipse)

Starting something new is always a mix of excitement and "Expected Unexpected" challenges. As I prepare for an intensive 6-month Java & Spring boot camp starting this May, Iโ€™ve decided to self-study the fundamentals beforehand. My goal is to complete at least 2 or 3 rounds of the textbook to ensure I hit the ground running.

Todayโ€™s mission: Setting up the Java Development Kit (JDK) and Eclipse IDE.

Coming from a non-technical background, I realized today that I didn't even know where the backslash (\) key was! (For those wondering, itโ€™s usually right above the Enter key). It made me pause for a secondโ€”"Can I really become a developer if I don't even know the keyboard layout?" But I shook it off. Everyone starts at zero, and today was my Day Zero.

2. The Battle with Environment Variables

I followed the instructions to set up the environment variables, but when I ran javac -version in the terminal, it kept returning an error. I restarted my PC, double-checked the paths, embed and scratched my head for a while.


The Culprit? A single space.

I was typing javac-version (no space) or javac - version (extra space). The correct command is:
javac -version

It felt a bit frustrating that a single space could break everything. However, this was a great lesson: Computers are honest and literal. They don't infer context like humans do. Precision isn't just a preference in coding; itโ€™s a requirement.

3. Overcoming IDE Installation Hurdles

I also ran into an issue while installing Eclipse. The initial installer wouldn't execute properly. After some troubleshooting and consulting with AI, I opted for the "Full Zip" version instead of the standard installer. Problem solved! Since my textbook was written for an older version of Java, navigating the latest updates required some extra research, but I successfully configured the latest environment.

4. Key Takeaways: Thinking like a Developer

Through this setup process, I realized that a developer is essentially a translator between human logic and machine execution. This is why "Computational Thinking" and "Algorithms" are so vital.

Iโ€™ve learned that to succeed in this field, I need to:

  • Ask "Why?": Don't just follow steps; understand the underlying mechanism.
  • Deconstruct Problems: Break down big errors into smaller, manageable pieces.
  • Be Patient: Accuracy over speed.

Itโ€™s a bit overwhelming to learn all this new terminology, but knowing that every senior developer once struggled with a space or a backslash gives me comfort. Iโ€™m moving forward slowly but surely!

Top comments (0)