JavaBeans ActiveX Bridge for Java 8?

▼魔方 西西 提交于 2019-12-01 09:24:47

问题


There used to be a JavaBeans ActiveX Bridge but AFAIK this is no longer supported under Java 8.

I want to call my JavaBeans from Excel, so what is the way to go with Java 8?

The problem is I have some legacy JavaBean packaged in a dll that I use from Excel VBA. I don't have the source code to this bean. But I still want to use it with Java 8/9. Is this possible?


回答1:


I solved the problem using Obba: I read the Java bean with a Java parser and generated a VBA wrapper method for each Java method that I want to call. The wrapper calls the original Java method using Obba. I created a VBA class containing all the wrapper methods and use it to access the bean from my VBA code.

The Java ActiveX bridge would have spared me the work of creating the VBA wrapper class.



来源:https://stackoverflow.com/questions/46358282/javabeans-activex-bridge-for-java-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!