Debugging JNLP started application

前端 未结 3 915
北荒
北荒 2020-12-15 11:07

I created a Java desktop-application (using Swing) and am now trying to make it work by starting it from the net using JNLP. The application works fine when I start it from

3条回答
  •  轮回少年
    2020-12-15 11:31

    This answer is an alternative to npe answer to enable the remote debug (Windows).

    • Go to Control Panel;
    • Click on Java, to open Java Control Panel;
    • Inside of Java Control Panel, go to Java tab, and click "View";
    • This will open a window with installed java versions. On runtime parameters put "-Xdebug -Xrunjdwp:transport=dt_socket,address=8123,server=y,suspend=n" (if you want to debug when application is starting, change to "suspend" to "y", that will make the application stop until an editor connect remotely);

    Afer that, configure you editor to debug remotely to the configured port (localhost:8123 in this case).

提交回复
热议问题