Can't execute a java code from command line -
hello jdk installed in:d:\java on computer path : d:\oracle\product\10.2.0\db_1\bin;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files (x86)\apache-maven\bin;c:\program files (x86)\apache-tomcat\bin;c:\program files (x86)\skype\phone\;d:\java\bin;d:\jboss-as-7.1.3.final\bin;c:\program files\tortoisesvn\bin;e:\formation\essais\maven\apache-maven-3.5.0-bin\apache-maven-3.5.0\bin
my java_home :d:\java little program in :e:\zoo.java
my program completely:
public class zoo { public static void main(string[] args) { system.out.println("hello"); } }
in command prompt type : javac zoo.java
i don't "hello": please know why , do
compile javac zoo.java
, run java zoo
. comments :-
please there way compile , run @ once?
no, java both compiled , interpreted.
Comments
Post a Comment