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

From version 5.1
edited by Samuel Pelletier
on 2016/06/12 17:17
Change comment: There is no comment for this version
To version 11.1
edited by Samuel Pelletier
on 2015/07/07 17:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7,49 +7,28 @@
7 7  
8 8  === (% style="line-height: 1.4285715;" %)Patching the VM(%%) ===
9 9  
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.
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 45 is at build 15 and it does not works completely, I get exception because some DelegatingClassLoader are not updated. The version for Java 1.7 update 71 build 2 works fine with java 1.7.0_79.
11 11  
12 -DCEVM download site: **[[http:~~/~~/dcevm.github.io>>url:http://dcevm.github.io||shape="rect"]]**
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 -
29 29  === (% style="line-height: 1.4285715;" %)Downloading the Hotswap agent(%%) ===
30 30  
31 31  (% 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.
32 32  
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.
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.
34 34  
35 -=== Activate the tools ===
20 +=== How to use in a project ===
36 36  
37 -To enable HotSwap for all java launches, go to Installed JREs in Eclipse Preferences, select your active JRE and click Edit...
22 +To enable HotSwap, add the following to the Run configuration of your project in the VM argument section:
38 38  
39 -[[image:attach:Eclipse Preferences.png]]
40 -
41 -Add the following text to the Default VM arguments:
42 -
43 43  -XXaltjvm=dcevm -javaagent:/replace_with_correct_path/hotswap-agent.jar
44 44  
45 -[[image:attach:JRE settings.png]]
46 -
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 -
51 51  === Known limitations ===
52 52  
53 53  * Change of superclass is not supported by DCEVM.
29 +* Modifying the return type of a method breaks. It seems there is some cache not cleared.
54 54  
31 +(% style="line-height: 1.4285715;" %)
32 +
33 +
55 55  (% style="line-height: 1.4285715;" %)