BDK的安裝問題

.BDK的安裝問題  Copy to clipboard
Posted by: fbbobo
Posted on: 2003-08-13 10:58

BDK的安裝問題
下在了BDK1。1可是運行的時候提示:java VM錯誤,請重新安裝或者更換JVM
我用的是j2sdk1.4.0beta3,這是怎麼回事?JVM怎麼更換或者重裝啊! 

--------------------------------------------------------------------------------
2.Re:BDK的安裝問題 [Re: fbbobo] Copy to clipboard
Posted by: cn
Posted on: 2003-08-14 00:16

所能想到的三種可能:
1.When I run the BeanBox under J2SE v 1.4 I get an exception. What's going on here? http://java.sun.com/products/javabeans/faq/faq.help.html#Q28
There were some changes made to the Introspector in order for EventSets created by the Intospector to conform to the JavaBeans specification. See bugs 4402159 and 4407239 for details. Unfortunately, the ExplicitButtonBeanInfo class that shipped with the BDK do not conform to the JavaBeans specification and are rejected. This is not as bad as it seems. Other than the exeption being thrown at startup and the failure to load the buttons.jar file, the rest of the BeanBox will work fine.

As a work around, you may want to go into the sunw.demo.buttons.ExplicitBeanInfo.getEventSetDescriptors() source file, change the first actionPerformed string in the first EventSetDescriptor to be action and recompile the class. The source file for the demo beans used in the BeanBox is in <BDK_INSTALL_DIR>demo/sunw/demo/buttons/ExplicitButtonBeanInfo.java. At around line 47, change:


 EventSetDescriptor push = new EventSetDescriptor(beanClass,                    "actionPerformed",            java.awt.event.ActionListener.class,            "actionPerformed");

to:

 EventSetDescriptor push = new EventSetDescriptor(beanClass,                    "action",            java.awt.event.ActionListener.class,            "actionPerformed");

2.絕對不要把BDK安裝在文件名包含空格的目錄中,也就是說不能安裝在提供的缺省目錄中
3.你可能用的是WIN平臺,如果是,請檢查缺省的JVM是SUN的1.4的版本還是微軟的版本,如果是微軟的版本,請換爲SUN的版本,因爲BDK 1.1 - April '99 要求JDK1.2+的運行環境
 

發佈了55 篇原創文章 · 獲贊 1 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章