I wrote a simple Hello World program in notepad and saved it as it should.
What to do next to make this program?
I wrote a simple Hello World program in notepad and saved it as it should.
What to do next to make this program?
in the gnu / linux operating system, if there are javac and java programs installed, this file is:
class helloworld { public static void main(String[] args) { System.out.println("hello world!"); } } saved in the current directory as helloworld.java , you can compile it with the command:
$ javac helloworld.java and run the received helloworld.class file helloworld.class command:
$ java helloworld conclusion:
hello world! You can install javac and java programs in different ways, the simplest and most logical one is from the repository of your distribution. For example, in debian -base distributions, this can be done with the command:
$ sudo apt install default-jdk javac helloworld.java and java helloworld fundamentally different on windows and linux? :) - GrundySource: https://ru.stackoverflow.com/questions/592961/
All Articles