views:

116

answers:

0

Hi,

Windows 7, JDK 1.5, Eclipse 3.5.

C:\Users\User>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

C:\Users\User>set  | find "JAVA"
JAVA_HOME=C:\tools\jdk1.6.0_18
  • Eclipse is running using JDK 1.5 Set
  • Compliance level 1.5
  • Installed JRE's is also set to 1.5

eclipse.ini:

d:\eclipse3.5>type eclipse.ini
-clean
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:/tools/jdk1.5.0_22/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m

Trying to attach jmap to a java process started from within eclipse gives the following error:

C:\Users\User>jmap -histo 2168
2168: The VM does not support the attach mechanism

Anyone has an idea why should this happen?