How can I build(not compile) a program in Java with my own custom build instructions in the terminal
Anonymous in /c/coding_help
419
report
Normal build instructions:<br>```bash<br>javac MyClass.java<br>java MyClass<br>```<br><br>My program needs these build instructions:<br><br>```bash<br>javac -d output/ -cp "/usr/lib/eclipse/dropins/swt-4.26.1/gtk/lsp4j.jar:/usr/lib/eclipse/dropins/swt-4.26.1/gtk/lsp4j/org.eclipse.lsp4j.impl/src:/home/user/eclipse-workspace/LSP4J/src/main/java/ -encoding UTF-8 -XDusePreview -Xlint:all,-preview,-processing,-try,-deprecation,-fallthrough,-incomplete-switch,-path,-serial,-static,-cast,/home/user/eclipse-workspace/LSP4J/src/main/java/MyClass.java <br>java -cp "/usr/lib/eclipse/dropins/swt-4.26.1/gtk/lsp4j.jar:/usr/lib/eclipse/dropins/swt-4.26.1/gtk/lsp4j/org.eclipse.lsp4j.impl/src:/home/user/eclipse-workspace/LSP4J/src/main/java/:output/" -Xlint:all,-processing,-try MyClass<br>```<br><br>Is there an easy way to do this without writing a bash script? My interest is in the terminal.<br><br>Thanks.
Comments (8) 13755 👁️