简体   繁体   English

如何在 Guidewire 中安装 DCEVM?

[英]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

  1. Visit http://dcevm.github.io/ .访问http://dcevm.github.io/
  2. Click the Java 11 link.单击 Java 11 链接。
  3. Scroll to find the binary for your development platform, and click to download the relevant file, extract the contents of the downloaded file.滚动查找适合您开发平台的二进制文件,然后单击下载相关文件,解压缩下载文件的内容。
  4. Add the DCEVM as an alternate JDK in Studio.在 Studio 中添加 DCEVM 作为备用 JDK。
  5. In Studio, click File → Project Structure在 Studio 中,单击文件 → 项目结构
  6. Under Platform Settings, click SDKs.在平台设置下,单击 SDK。
  7. Click Add New SDK +.单击添加新 SDK +。
  8. Select the folder for the DCEVM, and then click OK.选择 DCEVM 的文件夹,然后单击“确定”。
  9. In the Name text box, change the name to DCEVM.在名称文本框中,将名称更改为 DCEVM。
  10. Click OK.单击确定。
  11. Click Run → Edit Configurations.单击运行 → 编辑配置。
  12. Under Application, click Servers.在应用程序下,单击服务器。
  13. Next to JRE, click DCEVM.在 JRE 旁边,单击 DCEVM。
  14. Do not set the DCEVM as your project SDK.不要将 DCEVM 设置为您的项目 SDK。

For Java 8对于 Java 8

  1. Visit http://dcevm.github.io/ .访问http://dcevm.github.io/
  2. Click the link under Binaries to download the appropriate DCEVM installer for your java version.单击二进制文件下的链接以下载适合您的 Java 版本的 DCEVM 安装程序。
  3. Install the DCEVM as an alternative JVM.安装 DCEVM 作为替代 JVM。
  4. At a command prompt, run java -jar installer.jar, where installer.jar is the name of the file you downloaded in the previous step.在命令提示符下,运行 java -jar installer.jar,其中 installer.jar 是您在上一步中下载的文件的名称。 java –jar DCEVM-8u181-installer.jar java –jar DCEVM-8u181-installer.jar
  5. The Dynamic Code Evolution VM Installer dialog appears.出现动态代码演化 VM 安装程序对话框。
  6. Select the installation directory for the JDK corresponding to the DCEVM version you are installing.选择与您正在安装的 DCEVM 版本对应的 JDK 的安装目录。
  7. Click the Install DCEVM as altjvm button.单击将 DCEVM 安装为 altjvm 按钮。
  8. The Dynamic Code Evolution VM Installer dialog displays Yes in the Installed altjvm column for the selected JDK. Dynamic Code Evolution VM Installer 对话框在所选 JDK 的已安装 altjvm 列中显示 Yes。
  9. Click "X" to close the Dynamic Code Evolution VM Installer dialog.单击“X”关闭动态代码演化 VM 安装程序对话框。
  10. In Studio, at the right hand side of the toolbar, select Server.在 Studio 中,在工具栏的右侧,选择服务器。
  11. Click Run → Edit Configurations.单击运行 → 编辑配置。
  12. Under Application, click Servers.在应用程序下,单击服务器。
  13. In VM options, add -XXaltjvm=dcevm to the end of the line.在 VM 选项中,将 -XXaltjvm=dcevm 添加到行尾。
  14. Click OK.单击确定。

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 的更新更新时遇到失败。

DCEVM 版本将于 2020 年 12 月推出

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:如果操作正确,您将能够看到如下状态:

DCEVM 安装程序

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM