0

When i try connect Java VisualVM to a local application via an explicit JMX connection with following cmd java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar javaws.jar it gives an error:

unable to access jarfile javaws.jar.

But, when i use another .jar file it works. But does not work for javaws.jar. What is the reason for this exception.

1
  • does jar file work without JMX arguments? Commented Dec 3, 2012 at 12:25

1 Answer 1

1

may be the command is not able to identify the jar file palce.

Try with this option

java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar "%JAVA_HOME%"\jre\lib\javaws.jar

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.