0
How to compile and run package in java ?
4 Respuestas
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.
0
but how can we compile through command line ?
0
to compile the .java file, use "javac YourFileName.java" and to run the compiled code, use "java YouFileName"
0
thats the command we use to compile from command line and dont forgot to set your path to the java jdk folder