Java Access Bridge 安装无法在 64 位计算机上运行?

发布于 2024-08-18 02:42:54 字数 489 浏览 2 评论 0原文

我正在尝试让 JAB 工作,以便我可以抓取java 窗口中出现一些文本,但它失败得很厉害。

奇怪的是,虽然它不能在我的机器上运行,但它可以在其他机器上运行。

我的机器:7,64位
适用于:7 32 位(已测试 2 个盒子)、XP 32 位

常见的情况是,如果您安装 Sun 的 JAB 设置应用程序(正如我在我的开发计算机上没有安装的那样),不起作用。如果您确实安装了安装应用程序,它似乎可以工作。

进程监视器不会显示执行期间无法找到任何 DLL。

以前有人遇到过这个问题吗?安装来自 Sun 的二进制文件是唯一的解决方案吗?有什么办法解决这个问题吗?

I'm trying to get JAB working so I can scrape some text out of a java window, but its failing horribly.

The odd thing is that while it doesn't work on my machine it does work on other machines.

My machine: 7, 64bit
Works on: 7 32bit (2 boxes tested), XP 32bit

The common thing appears that if you don't install the JAB setup application from Sun, as I haven't done on my dev machine, it doesn't work. If you do install the setup application, it appears to work.

Process Monitor doesn't show that any DLLs cannot be located during execution.

Has anyone encountered this issue before? Is the only solution to install the binaries from Sun? Is there any way around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮云落日 2024-08-25 02:42:54

终于成功了。 [删除了不专业的咆哮...该死的,钻石!] 在 64 位机器上进行 JAB 的步骤:

  1. 下载最新版本的 JAB 手动安装 软件包:http://java.sun.com/javase/technologies/accessibility/accessbridge/index.jsp
  2. 如果尚未更新 Java,请更新。别是个混蛋。
  3. 如果还没有解压,然后解压到某个文件夹
  4. 进入刚刚解压的 InstallerFiles 目录
  5. 将所有 DLL 文件移动到 %SystemRoot%\sysWow64 中。文件包括:JavaAccessBridge.dll、JAWTAccessBridge.dll、WindowsAccessBridge.dll
  6. 将所需的 .jar 文件移动到指定的 java 文件夹中。如果您运行的是 JRE6,则将 jaccess-1_4.jaraccess-bridge.jar 复制到 c:\program files (x86)\java\jre6\ lib\ext.根据您阅读本文的时间,您可能需要检查文档以找出应将哪些 jar 文件放置在哪些位置。很糟糕,我知道。
  7. 将文件 accessibility.properties 移动到 JRE 的根目录:c:\program files (x86)\java\jre6\lib不这样做会破坏刺拳。如果将此文件放在 lib 文件夹中,它将不起作用。这种扭曲会让你痛苦两天。
  8. 不要费心去改变你的 Path 系统变量。在 64 位 XP 或 7 上并不重要。

如果有什么不同的话,7 号将会比他们中的任何一个都搞砸更多的人,因为文档并不清楚这个文件的去向。

Finally got it working. [Unprofessional rant removed... damn you, diamond!] Steps to JAB on a 64bit box:

  1. Download latest version of the JAB MANUAL INSTALL package: http://java.sun.com/javase/technologies/accessibility/accessbridge/index.jsp
  2. Update Java if you haven't. Don't be a jerk.
  3. Unblock the zip if you haven't and then unzip to some folder
  4. Get thee into the InstallerFiles directory you just unzipped
  5. Move all DLL files into %SystemRoot%\sysWow64. Files are: JavaAccessBridge.dll, JAWTAccessBridge.dll, WindowsAccessBridge.dll
  6. Move the required .jar files into the specified java folder. If you are running JRE6 you are copying jaccess-1_4.jar and access-bridge.jar to c:\program files (x86)\java\jre6\lib\ext. Depending on when you read this you might have to check the docs to figure out what jar files to place in what locations. Sucks, I know.
  7. Move the file accessibility.properties to the root directory of the JRE: c:\program files (x86)\java\jre6\lib. FAILURE TO DO THIS BREAKS JAB. If you place this file in the lib folder it will not work. This is the twist that will screw you for two days.
  8. Don't bother altering your Path system variable. It doesn't matter on 64bit XP or 7.

If anything, number 7 is going to screw up more people than any of them as the documentation isn't clear as to where this file goes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文