[英]How to install DCEVM in Guidewire?
I have downloaded DCEVM jar file.我已经下载了 DCEVM jar 文件。 Now I want to install this jar to run Gosu queries in my Gudiewire Studio.
现在我想安装这个 jar 来在我的 Gudiewire Studio 中运行 Gosu 查询。 Please help me how to install this DCEVM jar in Guidewire Studio.
请帮助我如何在 Guidewire Studio 中安装这个 DCEVM jar。
Thanks谢谢
DCEVM isn't required to run queries in GW Studio.在 GW Studio 中运行查询不需要 DCEVM。 DCEVM enables more capabilities to hotswap (class reloading after compile).
DCEVM 支持更多的热交换功能(编译后重新加载类)。
To run queries in GW Studio you only need start server in debug mode, open Gosu Scratchpad (Tools menu or Alt+Shift+S) and use "Run in Debug Process" button in scratchpad要在 GW Studio 中运行查询,您只需要在调试模式下启动服务器,打开 Gosu Scratchpad(工具菜单或 Alt+Shift+S)并使用 Scratchpad 中的“Run in Debug Process”按钮
C:\ java -jar dcevem.jar
它将打开 DCEVM 窗口,选择 Java 版本,然后单击安装按钮。
For version 10.0.3 there actually 2 possible paths to run Guidewire on DCEVM, depending on the version of Java you are using.对于 10.0.3 版本,实际上有 2 种可能的路径在 DCEVM 上运行 Guidewire,具体取决于您使用的 Java 版本。 Those instructions should also work for other versions of GW
这些说明也适用于其他版本的 GW
For Java 11对于 Java 11
For Java 8对于 Java 8
Both instructions above are based on the info from documentation以上两个说明均基于文档中的信息
DCEVM was first published in June 2010 as a research paper . DCEVM 于 2010 年 6 月作为研究论文首次发表。 Since then it has been widely used by Guidewire as the preferred VM for development environments.
从那时起,它被 Guidewire 广泛用作开发环境的首选 VM。 It allows you to Hot Swap (partially reload code changes to classes) without restarting the VM.
它允许您在不重新启动 VM 的情况下进行热交换(将代码更改部分重新加载到类)。 In a development environment, it can help save a lot of time where a full VM restart can take several minutes.
在开发环境中,它可以帮助节省大量时间,因为整个 VM 重新启动可能需要几分钟时间。 A fork of the original DCEVM is available at http://dcevm.github.io/ .
原始 DCEVM 的分支可在http://dcevm.github.io/ 获得。
The Dynamic Code Evolution Virtual Machine (DCE VM) is a modification of the Java HotSpot™ VM that allows unlimited redefinition of loaded classes at runtime.
动态代码演化虚拟机(DCE VM) 是对 Java HotSpot™ VM 的修改,允许在运行时无限制地重新定义加载的类。 The current hot-swapping mechanism of the HotSpot™ VM allows only changing method bodies.
HotSpot™ VM 的当前热交换机制仅允许更改方法主体。 Our enhanced VM allows adding and removing fields and methods as well as changes to the super types of a class.
我们增强的 VM 允许添加和删除字段和方法以及更改类的超类型。
You can download the suitable installer jar file for your java version and patch your existing JDK by DCEVM.您可以下载适合您的 Java 版本的安装程序 jar 文件,并通过 DCEVM 修补您现有的 JDK。 Unfortunately, the only installer available is a jar file and there are caveats to using it.
不幸的是,唯一可用的安装程序是一个 jar 文件,使用它有一些注意事项。 First of all, you can only patch your JDK if the DCEVM version supports your JDK minor version.
首先,如果 DCEVM 版本支持您的 JDK 次要版本,您只能修补您的 JDK。 A lot of people don't understand this and encounter failures when they try to patch a newer update of Java with the previous version of DCEVM.
很多人不理解这一点,并在尝试使用以前版本的 DCEVM 修补 Java 的更新更新时遇到失败。
A key point to note in the image is the available versions of DCEVM.图中需要注意的一个关键点是 DCEVM 的可用版本。 To be able to install it on Java 8, you must have Java with the update 181 installed ie your JDK version must equal 8u181.
为了能够在 Java 8 上安装它,您必须安装带有更新 181 的 Java,即您的 JDK 版本必须等于 8u181。 If you installed an update on the JDK and updated it to 8u271 or another version, the patch is not going to work.
如果您在 JDK 上安装了更新并将其更新为 8u271 或其他版本,则该补丁将不起作用。
Once you have the installer jar downloaded, you must run it with Administrator privileges on Windows for it to work.下载安装程序 jar 后,您必须在 Windows 上以管理员权限运行它才能使其工作。 In Windows, run cmd as Administrator and then navigate to the directory where the jar is downloaded and run:
在 Windows 中,以管理员身份运行 cmd,然后导航到下载 jar 的目录并运行:
java -jar dcevm-installer.jar
For unix based systems you must run:对于基于 Unix 的系统,您必须运行:
sudo java -jar dcevm-installer.jar
This should open a window where you need to select your correct JDK version and then click on the Replace by DCEVM button.这应该会打开一个窗口,您需要在其中选择正确的 JDK 版本,然后单击替换为 DCEVM按钮。 If done correctly you'll be able to see the status as below:
如果操作正确,您将能够看到如下状态:
I have downloaded DCEVM jar file.我已经下载了DCEVM jar文件。 Now I want to install this jar to run Gosu queries in my Gudiewire Studio.
现在,我想安装此jar以便在Gudiewire Studio中运行Gosu查询。 Please help me how to install this DCEVM jar in Guidewire Studio.
请帮助我如何在Guidewire Studio中安装此DCEVM jar。
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.