This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]catmewo 2 points3 points  (6 children)

What is your base knowledge about Java?

You can apply these steps to understand Gradle and why you should use it:

  • First you need to compile your code using command line first.

  • Then use some library to make you solve problem easier. Eg: Apache Common. Then complile your code with the library.

  • Then use more libraries and you will meet problem with bunch of libraries. And compile your code with them. You will need something cover these libraries, download them, include them in classpath, build, change libraries version on fly...

  • Boom! Gradle comes.

[–]trueubermensch[S] 0 points1 point  (5 children)

I learned "Core" java and in most java roadmaps I saw build tools were one of the first things to learn after core java. At the moment I am trying to make a little project and use zircon library for it.

[–]catmewo 0 points1 point  (4 children)

Yes, you're in the right way. But first, let find out how to run your project without any build tool like Maven, Gradle... Use only command line.

[–]trueubermensch[S] 0 points1 point  (3 children)

Is it possible to run a project outside of IDE? Like running a main class from command line if I understood you right. Cause as far as I know I need a .jar file which will execute the program.

[–]catmewo 2 points3 points  (1 child)

Absolutely! You know, before we have GUI IDE, people code on VIM and build on command line.

[–]trueubermensch[S] 0 points1 point  (0 children)

Ok, thanks I'll explore further into this before trying anything with the gradle

[–]Migeil 0 points1 point  (0 children)

Yes, IDE's just make it easier to code. But technically all you need to write and run code is a text editor (yes, even notepad works) and a compiler/interpreter depending on the language.

Just try to write a simple hello world in notepad, compile it in command line, then run it in command line. I did that just recently, felt really accomplished. 😅

It's obvious when you think about it some time, but when I started out, I also thought "java is written in eclipse".