这两天学习使用JProfiler,版本5.0.1,但按照网上的示例做,总也不成功。
如果是测一个local session,就报错说:The program could not be started locally. Please check your class path settings and your main class. 如果是测一个remote session,就报错说:Could not connect to xxx.xxx.xxx.xxx
因为使用过程中,发现JProfiler对中文支持不好,原来也碰到过中文windows用户名引起的问题,所以用英文用户名试了一下,问题果然就解决了。
原来,JProfiler在C:\Documents and Settings\xxx\.jprofiler5文件夹下存有配置文件,如果这个xxx是中文,可能就不能被JProfiler读到,所以引起问题。
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=6424498