Java: Where do I find sourcecode of WindowsAccessbridge?

为君一笑 提交于 2019-12-11 04:58:56

问题


I downloaded the Java JDK 7 source code from https://jdk7.java.net/source.html. This is a 100 MB package containing nearly all the source code - except the part that I'm interested in.

The Java Access Bridge (JAB) consists mainly of WindowsAccessBridge.dll and JavaAccessBridge.dll which are running in different processes and doing the inter-process communication.

In the source code package exist these folders and files:

jdk\make\bridge\JavaAccessBridge\Files_cpp.gmk
jdk\make\bridge\JavaAccessBridge\Makefile

and

jdk\make\bridge\WindowsAccessBridge\Files_cpp.gmk
jdk\make\bridge\WindowsAccessBridge\Makefile

but all the cpp files are missing.

The file Files_cpp.gmk says:

FILES_cpp = \
    AccessBridgeJavaVMInstance.cpp \
    AccessBridgeMessageQueue.cpp \
    AccessBridgeMessages.cpp \
    AccessBridgeWindowsEntryPoints.cpp \
    WinAccessBridge.cpp \
    AccessBridgeDebug.cpp \
    AccessBridgeEventHandler.cpp 

None of these CPP files exist in the ZIP package.

And the Makefile says:

VERSIONINFO_RESOURCE = $(CLOSED_PLATFORM_SRC)/native/sun/bridge/AccessBridgeStatusWindow.rc

What is CLOSED_PLATFORM_SRC ?

So, now you will tell me: "Forget it! These files are not public."

BUT, in this article: Not receiving callbacks from the Java Access Bridge Darren Ford writes that he has compiled a Debug version of the WindowsAccessBridge. This was in 2009. So some years ago the code was available.

Has anybody this code and can publish it for me? (I don't care if it is from an older JDK.) Or is it still available and I did not find it?

NOTE: Before JDK 7 the Accessbridge was not part of the JDK. It was a separate download that had to be installed manually. See http://docs.oracle.com/javase/accessbridge/2.0.2/setup.htm


回答1:


This post is coming a little late, but hope this will help others. You will need to download the JDK 8 source. You can find the Windows Access Bridge code under



来源:https://stackoverflow.com/questions/19499393/java-where-do-i-find-sourcecode-of-windowsaccessbridge

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