Hi,
I have downloaded Jensor 1.4 and installed it successfully ( Based on the instructions given in Installation Guide- Java2D application works).
The following are settings in startup.bat and demo.bat
@echo OFF
rem Ensure that "java" command below resolves to the desired JVM
@echo ON
C:\jdk1.5.0\bin\java -Xmx64M -cp Java2Demo.jar;"%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar" java2d.Java2Demo
@echo off
rem Ensure that java command points to appropriate JDK
@echo on
C:\jdk1.5.0\bin\java -Xms256M -Xmx512M -cp .;"%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar";"%JENSOR_HOME%\lib\jcommon-1.0.5.jar";"%JENSOR_HOME%\lib\jfreechart-1.0.2.jar" com.tcs.perc.jensor.UI.JensorProjectUI
When the Java2D application is instrumented , the following exception is thrown
Finding Platform info ...
Current platform is Windows XP
JC-006: JENSOR_HOME : C:\SW\Jensor\
java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassWriter.<init>(I)V
at com.tcs.perc.jensor.UI.InstrumentationListener.actionPerformed(InstrumentationListener.java:268)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
OUTPUT of java -cp "%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar" com.tcs.perc.jensor.util.SysProps is given below
Your environment seems to be fine. Have checked the src of ClassWriter, the signature is correct. Right now I have no clue why this error comes. I am unable to reproduce it in my environment.
In the past this error used to come when Microsoft java on windows or gc java on windows used to be default Java versions. Changing them to explicitly point to a Sun or IBM JVM used to resolve the problem.
Try newer versions of Jensor. 1.4 is pretty old. Try 1.7 or 1.8.
Also can you try on a different machine?
- Amol
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have downloaded Jensor 1.4 and installed it successfully ( Based on the instructions given in Installation Guide- Java2D application works).
The following are settings in startup.bat and demo.bat
@echo OFF
rem Ensure that "java" command below resolves to the desired JVM
@echo ON
C:\jdk1.5.0\bin\java -Xmx64M -cp Java2Demo.jar;"%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar" java2d.Java2Demo
@echo off
rem Ensure that java command points to appropriate JDK
@echo on
C:\jdk1.5.0\bin\java -Xms256M -Xmx512M -cp .;"%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar";"%JENSOR_HOME%\lib\jcommon-1.0.5.jar";"%JENSOR_HOME%\lib\jfreechart-1.0.2.jar" com.tcs.perc.jensor.UI.JensorProjectUI
When the Java2D application is instrumented , the following exception is thrown
Finding Platform info ...
Current platform is Windows XP
JC-006: JENSOR_HOME : C:\SW\Jensor\
java.lang.NoSuchMethodError: org.objectweb.asm.jensor.ClassWriter.<init>(I)V
at com.tcs.perc.jensor.UI.InstrumentationListener.actionPerformed(InstrumentationListener.java:268)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
OUTPUT of java -cp "%JENSOR_HOME%\lib\jensorjdk14-v14-win32.jar" com.tcs.perc.jensor.util.SysProps is given below
sun.misc.Launcher$AppClassLoader@169e11
sun.misc.Launcher$ExtClassLoader@e39a3e
-- listing properties --
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
sun.boot.library.path=C:\jdk1.5.0\jre\bin
java.vm.version=1.5.0-b64
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=Service Pack 2
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\SW\Jensor\bin
java.runtime.version=1.5.0-b64
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed
os.arch=x86
java.io.tmpdir=C:\DOCUME~1\133278\LOCALS~1\Temp\ line.separator=
java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
os.name=Windows XP
sun.jnu.encoding=Cp1252
java.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32...
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Client Compiler
os.version=5.1
user.home=C:\Documents and Settings\133278
user.timezone=
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.5
user.name=133278
java.class.path=C:\SW\Jensor\lib\jensorjdk14-v14-win3...
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=C:\jdk1.5.0\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.5.0
java.ext.dirs=C:\jdk1.5.0\jre\lib\ext
sun.boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5....
java.vendor=Sun Microsystems Inc.
file.separator=\ java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.desktop=windows
sun.cpu.isalist=
Is there anything to be changed in my local settings for executing Jensor , do let me know.
Thanks,
Saravana Kumar
Hi Saravana,
Your environment seems to be fine. Have checked the src of ClassWriter, the signature is correct. Right now I have no clue why this error comes. I am unable to reproduce it in my environment.
In the past this error used to come when Microsoft java on windows or gc java on windows used to be default Java versions. Changing them to explicitly point to a Sun or IBM JVM used to resolve the problem.
Try newer versions of Jensor. 1.4 is pretty old. Try 1.7 or 1.8.
Also can you try on a different machine?
- Amol