Guy to use javac what do i need | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guy to use javac what do i need

To install jdk or jre. Is command prompt and powershell the same. How do i run my java files in powershell

27th May 2019, 4:31 AM
stephen haokip
stephen haokip - avatar
2 Answers
+ 3
JDK contains tools for compile, debug and execute java programs. JRE contains only tools for running java programs then you need of JDK. You cannot run directly java file but you have to compile them in java bytecode (using javac tool) then your JVM can run them (with java tool). Try to see here for an example and more info https://www.oracle.com/technetwork/java/compile-136656.html
27th May 2019, 6:25 AM
KrOW
KrOW - avatar
0
https://www.sololearn.com/Discuss/1816511/?ref=app
27th May 2019, 10:26 AM
zemiak