15/12/2021
"javac first.java" is for compile
"java first" is for the run.
First code just to print "Hello World!" first.java
Note: remember always creates a java file with a .java extension.
For exercise:
Try to print your name.
15/12/2021
Java for beginners.
1. need to install JDK tool https://www.oracle.com/java/technologies/downloads/
2. set a path
3. find java bin path in your drive C
for example: C:\Program Files\OpenJDK\openjdk-8u312-b07
4. open "environment variables" and click on it
5. in "System variables" click on new
6. in "variable name" type JAVA_HOME
7. in "variable value" paste the link C:\Program Files\OpenJDK\openjdk-8u312-b07
8. cmd and write "java -version" and "javac" to check your java is successful install.
Download the Latest Java LTS Free
Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.