Last modified by Markus Ruggiero on 2022/07/28 14:18

From version 8.1
edited by Samuel Pelletier
on 2016/06/12 16:43
Change comment: There is no comment for this version
To version 4.1
edited by Samuel Pelletier
on 2016/06/12 17:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -9,22 +9,45 @@
9 9  
10 10  (% style="line-height: 1.4285715;" %)DCEVM is the patch that enable the enhanced class redefinition in the VM. Download the installer for your JRE version and install the alternative VM. The patch is not always available for the latest update of the JRE, you may try the latest update available but it may not works. At the time I write this, the patch for Java 1.8 update 92 works as expected.
11 11  
12 -DCEVM download site: **[[http:~~/~~/dcevm.github.io>>url:http://dcevm.github.io||shape="rect"]] [[attach:JRE settings.png]]**
12 +DCEVM download site: **[[http:~~/~~/dcevm.github.io>>url:http://dcevm.github.io||shape="rect"]]**
13 13  
14 +**Launch the installer as root**
15 +
16 +**
17 +**
18 +
19 +{{{sudo java -jar DCEVM-light-8u92-installer.jar}}}
20 +
21 +Click "Add installation directory..." and select your JRE Home.
22 +
23 +[[image:attach:DCEVM installer.png]]
24 +
25 +Click "Install DCEVM ad altvm"
26 +
27 +Quit the installer by closing the window.
28 +
14 14  === (% style="line-height: 1.4285715;" %)Downloading the Hotswap agent(%%) ===
15 15  
16 16  (% style="line-height: 1.4285715;" %)Hotwsap agent allows plugins to react to class redefinition events. These plugins are similar to the the JRebel plugins and add frameworks specific code to make sure they handle correctly to the class changes.
17 17  
18 -(% style="line-height: 1.4285715;" %)Download the hot swap agent jar from my fork at [[https:~~/~~/github.com/spelletier/HotswapAgent/releases/tag/0.2_with_WO>>url:https://github.com/spelletier/HotswapAgent/releases/tag/0.2_with_WO||shape="rect"]] to an easy to type location, you will need the location to enable it.
33 +(% style="line-height: 1.4285715;" %)Download the hot swap agent jar from [[https:~~/~~/github.com/HotswapProjects/HotswapAgent/releases>>url:https://github.com/HotswapProjects/HotswapAgent/releases||shape="rect"]] to an easy to type location, you will need the location to enable it.
19 19  
20 -=== How to use in a project ===
35 +=== Activate the tools ===
21 21  
22 -To enable HotSwap for all java launch within eclipse, add the following to the default VM argument of your current JRE.
37 +To enable HotSwap for all java launches, go to Installed JREs in Eclipse Preferences, select your active JRE and click Edit...
23 23  
39 +[[image:attach:Eclipse Preferences.png]]
40 +
41 +Add the following text to the Default VM arguments:
42 +
24 24  -XXaltjvm=dcevm -javaagent:/replace_with_correct_path/hotswap-agent.jar
25 25  
26 -TO enable per project basis, add the same to the VM argument section of your project's Run configuration.
45 +[[image:attach:JRE settings.png]]
27 27  
47 +Close the windows and now all your launches will have DCEVM and Hotswap enabled,
48 +
49 +If you prefer to enable per project basis, add the same arguments to the VM argument section of your project's Run configuration.
50 +
28 28  === Known limitations ===
29 29  
30 30  * Change of superclass is not supported by DCEVM.