🌐
Princeton CS
introcs.cs.princeton.edu › java › 11hello › linux.html
Hello World in Java on Linux
August 14, 2019 - This document instructs you on how to setup a Java programming environment under Linux. It also provides a step-by-step guide for creating, compiling, and executing your first Java program using either DrJava or the command line. We assume some familiarity with the command line.
🌐
Princeton
lift.cs.princeton.edu › java › linux
Hello World in Java (Linux)
This document instructs you on how to set up a Java programming environment for your Linux computer.
Discussions

Java programming on Linux
Follow this: https://www.itzgeek.com/how-tos/linux/linux-mint-how-tos/how-to-install-eclipse-ide-on-linux-mint-19.html It's probably going to be pretty confusing, but just copy and paste the examples into your terminal, and if you hit any errors you can ask here. It should work no problem though More on reddit.com
🌐 r/linux4noobs
14
5
December 26, 2019
[workflow] Best setup for developing in Java on linux?

I use Ubuntu/Mint with Oracle's JDK. IntelliJ for the IDE. There is both a free and pay version of IntelliJ, but I find it to be faster, cleaner GUI, and has fewer bugs/really annoying quirks than Eclipse.

More on reddit.com
🌐 r/java
19
15
March 31, 2012
Running Java Program from Command Line Linux - Stack Overflow
I am not very experience with java and this is driving me crazy. I wrote a java program FileManagement and I need to run it from the command line. I can compile it from the command line with javac More on stackoverflow.com
🌐 stackoverflow.com
Vim for Java?

Editing without an IDE could be a bit paiful at first sight, maybe you can have a look at this to setup some help http://www.averywagar.com/post/configuring-vim-for-java-development

More on reddit.com
🌐 r/vim
20
7
January 16, 2018
🌐
Holowczak
holowczak.com › started-java-programming-linux
Getting Started with Java Programming in Linux – Holowczak.com Tutorials
In this tutorial I will cover the very basics of getting started with Java programming using the Linux operating system. Java is a very popular programming language that is used to develop software for everything form cell phones and cable TV boxes to huge enterprise information systems.
🌐
Reddit
reddit.com › r/linux4noobs › java programming on linux
r/linux4noobs on Reddit: Java programming on Linux
December 26, 2019 -

I'm so confused on how to get an IDE for Java on Linux. I'm using Linux mint and I have no idea if I have to download java or if it is already downloaded, I also don't know whether or not I need to download eclipse, but primarily I need to know how I can start practicing java programming on Linux.

🌐
Yolinux
yolinux.com › TUTORIALS › LinuxTutorialJava.html
YoLinux Tutorial: Java on Linux
Linux has support for Java binaries in the OS. You can execute Java applications and Java Applets just like any other program once the Java Runtime Environment is loaded and the kernel configured.
🌐
Oracle
docs.oracle.com › javase › tutorial › getStarted › cupojava › unix.html
"Hello World!" for Solaris OS, Linux, and Mac OS X (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases. See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases. It's time to write your first application! These detailed instructions are for users of Solaris OS, Linux, and Mac OS X.
🌐
It's FOSS
itsfoss.com › run-java-program-ubuntu
How to Run Java Programs in Ubuntu
January 11, 2023 - This is why I advise installing Eclipse on Ubuntu for proper Java programming. It is easier to program in an IDE. I hope you find this tutorial helpful. Questions or suggestions? The comment section is all yours. ... Created It's FOSS 13 years ago to share my Linux adventures.
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › download-install-java-windows-linux-macos
Installing Java on Windows, Linux, and macOS - GeeksforGeeks
April 20, 2026 - Java can be installed on Windows, Linux, and macOS using platform-specific steps. Requires downloading and setting up the JDK (Java Development Kit). Proper configuration of environment variables (JAVA_HOME, PATH) is essential.
Find elsewhere
🌐
DEV Community
dev.to › mtendekuyokwa19 › setting-up-for-java-on-linux-133f
Setting Up for Java on Linux. - DEV Community
February 14, 2024 - To get started I will have to explain the two main components you need to have Java up and running on your machine. You will need the Java development kit (JDK) and an IDE. Yes, Just those two (does a backflip celebration).
🌐
Opensource.com
opensource.com › article › 19 › 11 › install-java-linux
How to install Java on Linux | Opensource.com
If you're a user looking to run a Java application, you only need the JRE (which includes a JVM). If you're a developer looking to program in Java, you need the JDK (which includes JRE libraries, which in turn includes a JVM).
🌐
Wikihow
wikihow.com › computers and electronics › operating systems › linux › ubuntu › how to create your first java program on ubuntu linux - wikihow
How to Create Your First Java Program on Ubuntu Linux - wikiHow
January 28, 2021 - For this example, we are going to work manually with Java programming without the use of an IDE by using the Java JDK (Java development kit), creating a directory, Java text file and making use of a text editor.
🌐
WafaiCloud
wafaicloud.com › home › system administrators › linux › setting up a java development environment on linux
Setting Up a Java Development Environment on Linux - WafaiCloud Blogs
September 2, 2025 - Creating a robust Java development environment on Linux can enhance your programming experience, whether you are a seasoned developer or a beginner. In this guide, we will walk you through the essential steps to get your Java environment up and running on a Linux system.
🌐
Dracula Servers
draculaservers.com › home › how to run java programs in linux terminal?
How to Run Java Programs in Linux Terminal? - Dracula Servers Tutorials
June 30, 2024 - Ensure the installation of JDK, compile the Java code into a Java Program, and then run the Java Program through the Linux Terminal.
🌐
Reddit
reddit.com › r/java › [workflow] best setup for developing in java on linux?
r/java on Reddit: [workflow] Best setup for developing in Java on linux?
March 31, 2012 -

I know programming and did a bit of Java before. Now I want to do serious development (for academic purposes, so not that large scale).

What's the best setup for Java on linux (ubuntu)? I remember from back in the days 3 or 4 flavours of Java co-existing on my system, and things not working terribly well.

Which flavour should I go for if I want to use Java professionally? How do I install it and make sure it's the main one used?

Is Eclipse still the best thing in town? (never liked it, always used gedit, but I guess I'll have to change my ways)

Would I use the same setup for writing smartphone apps? (as a hobby, not part of the job)

Thank you all in advance!

Update: Thanks a lot for all the detailed answers!

So it looks like the java situation got a bit better on linux, and openJDK is a solid version. Good to know.

IDE-wise: many votes for eclipse, but intelliJ and netbeans are good alternatives. I'll give each a go.

Android dev: Eclipse is preferable.

Also important point that is shared by many: get java from the repositories,but the IDEs directly from the original websites (easier to configure, up-to-date and less bloated).

🌐
Princeton CS
introcs.cs.princeton.edu › java › 15inout › linux-cmd.html
Java and the Linux Command Line
This document instructs you on ... light-hearted essay In the Beginning was the Command Line. You will use the Java compiler javac to compile your Java programs and the Java interpreter java to run them....
🌐
Pearsoncmg
ptgmedia.pearsoncmg.com › images › 013143697X › downloads › 013143697X_book.pdf pdf
Java™ Application Development on Linux
First, Linux as a development platform and deployment platform for Java · applications has been largely ignored. This is despite the fact that the *nix · platform (meaning all UNIX and UNIX-like systems, Linux included) has long · been recognized as one of the most programmer-friendly platforms ...
🌐
TecMint
tecmint.com › home › java › 12 best java ide’s for linux developers
12 Best Java IDE’s for Linux Programmers
January 23, 2024 - In addition, it provides an interactive environment that allows programmers to easily test and debug their applications. Dr. Java IDE · Though not as powerful as other IDEs such as IntelliJ IDEA or Apache Netbeans, Dr. Java provides basic features to simplify writing code including: ... Still, on Java IDEs that are ideal for beginners, we have Greenfoot IDE, which is a Java IDE geared towards making learning Java easy and fun for learners. It’s absolutely free and supports Linux, Windows, and macOS.
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › install-java-linux
How to Install Java on Linux: Step By Step Installation Guide
April 23, 2026 - Check out this blog on how to Install Java on Linux, where we will provide you with clear instructions on downloading and installing Java on Linux. ... The Java Virtual Machine (JVM)), Java Runtime Environment (JRE), and Java Development Kit (JDK) are different software bundles for running Java programs with extra functionalities.
🌐
LinuxConfig
linuxconfig.org › home › java hello world example on linux
Run Java Hello World on Linux: A Beginner's Guide
June 3, 2020 - Learn to write and run a Java Hello World on Linux. Step-by-step guide from checking Java to executing your first program. Ideal for beginners.