Hi!
Try https://www.oracle.com/technical-resources/articles/javase/headless.html
Best regards,
Gregor
Greenberg, Gary je 16. 06. 21 ob 21:33 napisal:
I am developing a project that can run either locally with GUI or
remotely using ssh or PUTTY.
In the main() method I have these lines of code:
if (GraphicsEnvironment.isHeadless()) {
// run in command line mode
} else {
// Initiate Swing JForm
}
When I am debugging it Netbeans always open it in GUI mode.
Is there a way to imitate in the Netbeans headless environment or I
need to change the code to debug it?
Thanks.
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902
EmailSig-TaglineVersion