RomanHargrave / javasnoop

Automatically exported from code.google.com/p/javasnoop
0 stars 1 forks source link

Now working JavaSnoop #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When I try attaching javasnoop to a JNLP run Java Web Start application it 
gives an error that states Targeted Virtual Machine does not support attaching  
2. Here are the arguments
PID: 7920
Main class: com.sun.javaws.Main
Main arguments: C:\\Documents and Settings\\msatam\\Application 
Data\\Sun\\Java\\Deployment\\cache\\6.0\\19\\5d393513-362aab53
JVM arguments: -Xmx512m -Djnlp.packEnabled=true -Dsun.java2d.d3d=false 
-Xbootclasspath/a:C:\\Program Files\\Java\\jre6\\lib\javaws.jar;C:\\Program 
Files\\Java\\jre6\\lib\deploy.jar;C:\\Program Files\\Java\\jre6\\lib\plugin.jar 
-Djnlpx.vmargs=-Xmx512m -Djnlp.packEnabled=true -Dsun.java2d.d3d=false 
-Djnlpx.jvm=C:\Program Files\Java\jre6\bin\javaw.exe -Djnlpx.splashport=45049 
-Djnlpx.home=C:\\Program Files\\Java\\jre6\\bin -Djnlpx.remove=false 
-Djnlpx.offline=false -Djnlpx.relaunch=true -Djnlpx.heapsize=-1,536870912 
-Djava.security.policy=file:C:\\Program 
Files\\Java\\jre6\\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote 
-Dsun.awt.warmup=true
VM version: 19.1-b02

3.

What is the expected output? What do you see instead?
The target should be attached with the JavaSnoop process

What version of the product are you using? On what operating system?
XP/SP3 

Please provide any additional information below.

Original issue reported on code.google.com by mandar.s...@gmail.com on 7 Oct 2011 at 4:39

Attachments:

GoogleCodeExporter commented 9 years ago
It looks you and/or your target JVM are not run with the JDK executable. A good 
explanation of this error is found here [0].

The TL;DR of it is, "run with your JDK/bin/java.exe instead of your 
JRE/bin/java.exe."

[0] 
http://wayne-adams.blogspot.com/2009/07/instrumenting-running-java-processes.htm
l

Original comment by arshan.d...@gmail.com on 24 Oct 2011 at 2:32