本机装着JAVA和Pycharm,装完QTP11.0后Pycharm启动无响应,JAVA编译时报错
d:dev>javac ConversionDemo.java
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:D:devHPQUICKT~1inJAVA_S~1classes;D:devHPQUICKT~1inJAVA_S~1classesjasmine.jar
Error occurred during initialization of VM
Could not find agent library jvmhook on the library path, with error: %1 不是有效的 Win32 应用程序。
查看环境变量如下:
应该是因为早期的QTP(QTP11.0是在2010.8发布的)没有(也无法考虑)与后起的Pycharm(最早版本Version 1.1.1 18 January 2011)、JAVA(Java11.0 2018.9)兼容。
后面的同学建议分开安装QTP,避免这个坑~~