DEV Community

Rodolfo Mendes
Rodolfo Mendes

Posted on

2 1

3 CLI Tools Every Java Developer Must Learn

1 - java

This is the essential tool that every serious Java developer must master. The java command is part of the Java SDK and invokes the JVM (Java Virtual Machine). This command is responsible for running Java programs compiled into Java bytecode. The java command is the heart of the Java platform. By practicing the java command, you can learn how to invoke a java program through a .class file or .jar file, how to setup the classpath for the JVM, how to setup the size of the heap space, how can you set different modes of execution of the garbage collector or even how can you configure the JVM to dump the memory to a file in the moment when it crashes. These skills make an enormous difference when running systems in production.

2 - javac

The javac command is also part of the Java SDK and it invokes the Java compiler, used to compile a set of Java source code files into a set of Java bytecode files.

3 - Maven

Building and compiling simple application using the javac command is quite simple. However, for bigger application the process of building and packaging an application is much more complex. For this task you can use Maven. Although Maven is not part of Java specification, the Java community has widely adopted Maven for dependency management, build and package Java applications.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️