I have downloaded DCEVM jar file. Now I want to install this jar to run Gosu queries in my Gudiewire Studio. Please help me how to install this DCEVM jar in Guidewire Studio.
Thanks
For version 10.0.3 there actually 2 possible paths to run Guidewire on DCEVM, depending on the version of Java you are using. Those instructions should also work for other versions of GW
For Java 11
For Java 8
Both instructions above are based on the info from documentation
DCEVM was first published in June 2010 as a research paper. Since then it has been widely used by Guidewire as the preferred VM for development environments. It allows you to Hot Swap (partially reload code changes to classes) without restarting the VM. In a development environment, it can help save a lot of time where a full VM restart can take several minutes. A fork of the original DCEVM is available at 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. The current hot-swapping mechanism of the HotSpot™ VM allows only changing method bodies. Our enhanced VM allows adding and removing fields and methods as well as changes to the super types of a class.
You can download the suitable installer jar file for your java version and patch your existing JDK by DCEVM. Unfortunately, the only installer available is a jar file and there are caveats to using it. First of all, you can only patch your JDK if the DCEVM version supports your JDK minor version. 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.
A key point to note in the image is the available versions of DCEVM. To be able to install it on Java 8, you must have Java with the update 181 installed i.e. your JDK version must equal 8u181. If you installed an update on the JDK and updated it to 8u271 or another version, the patch is not going to work.
Once you have the installer jar downloaded, you must run it with Administrator privileges on Windows for it to work. In Windows, run cmd as Administrator and then navigate to the directory where the jar is downloaded and run:
java -jar dcevm-installer.jar
For unix based systems you must run:
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. If done correctly you'll be able to see the status as below:
DCEVM isn't required to run queries in GW Studio. DCEVM enables more capabilities to hotswap (class reloading after compile).
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