0

How to compile and run package in java ?

3rd Dec 2016, 12:14 PM
Khomendra kumar
Khomendra kumar - avatar
4 odpowiedzi
0
are you referring to a jar? If you are referring to jar then you can convert it into runnable jar and trigger it using command line by providing the inputs which it needs.
3rd Dec 2016, 12:26 PM
Surya Konduru
Surya Konduru - avatar
0
but how can we compile through command line ?
3rd Dec 2016, 12:29 PM
Khomendra kumar
Khomendra kumar - avatar
0
to compile the .java file, use "javac YourFileName.java" and to run the compiled code, use "java YouFileName"
3rd Dec 2016, 12:34 PM
Dwiki Nurkurniawan
Dwiki Nurkurniawan - avatar
0
thats the command we use to compile from command line and dont forgot to set your path to the java jdk folder
4th Dec 2016, 8:19 AM
Dwiki Nurkurniawan
Dwiki Nurkurniawan - avatar