June 19, 2023
Java on Fedora - a first program
I am currently running Fedora 38 on my x86_64 desktop.
I just installed java and javac (version 20) from the standard package set
(or at least I think I did), and now want to try them out on the
simplest possible thing. So I create the file "hello.java" with
the following content:
// Tom Trebisky 6-19-2023
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
I "compile" this with:
javac hello.java
This produces the file "HelloWorld.class", I run it via:
java HelloWorld
Hello, World!
It looks like I am on the air in a basic way.
Have any comments? Questions?
Drop me a line!
Adventures in Computing / [email protected]