1

I've added Hotswap agent to netbeans and while debugging I've seen the message:

Dynamic Code Evolution Server VM warning: JSR 292 is disabled in this JVM. Use -XX:+UnlockDiagnosticVMOptions -XX:+EnableInvokeDynamic to enable.

I've added the options to netbeans.conf.

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-XX:+UnlockDiagnosticVMOptions -J-XX:+EnableInvokeDynamic"

But the message is still showing in tomcat console.

coder247
  • 2,913
  • 19
  • 50
  • 70
  • Are you trying to debug netbeans or an application started from netbeans (http://stackoverflow.com/a/18723259 I think)? – zapl May 19 '16 at 11:46
  • I'm dubugging a maven project. – coder247 May 19 '16 at 12:07
  • 3
    So, the jvm options for netbeans itself (which you're currently setting) are the wrong ones and you need to change how the maven projects gets executed. https://netbeans.org/kb/74/java/project-setup.html#deploy-jvm sounds about right but I'm not a netbeans user and maybe it's even different for maven projects. – zapl May 19 '16 at 12:17
  • @zapl there are no VM Options field in my case – coder247 May 20 '16 at 06:30
  • There is always a way to set the options for a program you are running. However each program need it's own options unless you set an environment variable like JAVA_OPTS http://stackoverflow.com/questions/10003459/java-opts-for-increasing-heap-size – Peter Lawrey May 23 '16 at 05:59

0 Answers0