Doubt of execution javac in cmd

Asked

Viewed 56 times

0

Hello, I’m starting now in Java and wanted to know how to compile . java in . class in a direct way. I can run the javac in cmd but I do so:

cd C:\Local\

javac HelloWorld.java

But I’d like to know if there’s a way to do that in one line. I will use this in a project that will do this automatically.

1 answer

1


cd C:\Local\ && javac HelloWorld.java

Browser other questions tagged

You are not signed in. Login or sign up in order to post.