"Hotswap" or "Hotswapping" refers to dynamically replacing a class implementation during the runtime of an application.
Questions tagged [hotswap]
246 questions
195
votes
8 answers
Redeploy alternatives to JRebel
JRebel allows for newly compiled code to be redeployed without restarting the application. I am wondering if there are any alternative (free?). The FAQ page answers this question, but I am sure it's biased towards JRebel. This question was asked…

Jay
- 4,994
- 4
- 28
- 41
108
votes
8 answers
How to enable Intellij hot code swap
Intellij does not seem to be doing basic hot code swap on my installation.
For this code:
public class MainTest {
public void method1() {
System.out.println("Breakpoint here");
}
public void method2() {
…

Maxim Veksler
- 29,272
- 38
- 131
- 151
92
votes
10 answers
spring boot hotswap with Intellij IDE
I have a spring boot application running fine with Intellij IDE. i.e i started the Application class that has the main method which delegates to SpringApplication.run. Everything works great except hotswap. When I change the source, I am forced to…

suman j
- 6,710
- 11
- 58
- 109
61
votes
7 answers
Change a method at runtime via a hot swap mechanism
Assume we have a trivial Java program that consists of just one class:
public class HelloWorld {
private static void replacable(int i) {
System.out.println("Today is a nice day with a number " + i);
}
public static void…

darioo
- 46,442
- 10
- 75
- 103
48
votes
1 answer
What does "Hot Swap error" with IntelliJ (in Java) mean?
I have no idea what a hot swap is and for the life of me cannot construct a google search that will find what it means in the context of my program. I was editing my class, the same way I do all the time, and when I went to run it I all of a sudden…

Niko
- 984
- 1
- 7
- 15
30
votes
5 answers
Achieving code swapping in Erlang's gen_server
I am looking to make use of Erlang's hot code swapping feature on a gen_server, so that I don't have to restart it. How should I do that? When I searched, all I could find was one article which mentioned that I need to make use of…

jeffreyveon
- 13,400
- 18
- 79
- 129
28
votes
2 answers
Advanced Code Hot Swapping in JDK 8?
I am looking for better HotSwapping in the JavaVM. Being able to only apply method body changes is okay but quite limiting.
The options available is JRebel and a discontinued project called Dynamic Code Evolution Virtual Machine (DCEVM).
There is a…

Martin Kersten
- 5,127
- 8
- 46
- 77
25
votes
3 answers
Debugging in IntelliJ (Reloading changed classes)
I recently switched from eclipse to IntelliJ. Eclipse's debug launcher used to reload the application instantly, whenever a class was saved. IntelliJ takes more than 10 secs to reload changed classes, which might not be a lot, but it is annoying…

kr15hna
- 529
- 1
- 5
- 12
25
votes
2 answers
What are the differences between the various Java plugins for hot class reloading and which one is the most intuitive?
I am currently trying to implement hot class reloading in a Java application, however there are so many plugins to choose from and I cannot find a good comparison between the options. Also the websites of the plugins are not all very clear on what…

PJvG
- 1,310
- 3
- 16
- 33
24
votes
4 answers
Hot Deploy JSP after modification with Intellij 10.X and tomcat 6.X
I have a Hello-World application with one java class and one jsp. The JSP prints out some text that is embedded in the JSP and from the java class. (It prints out two things)
I followed the directions here to create and deploy my application and…

Tihom
- 3,384
- 6
- 36
- 47
24
votes
4 answers
Hot swap debugging with Android
1) Is there any special setting/configuration required to enable hot swap debugging on Android?
Example case:
Add breakpoint just after entering activity's onCreate method.
Add new line on the fly after the breakpoint (dummy "if (1==1) return;"…

pilcrowpipe
- 2,528
- 6
- 29
- 41
21
votes
5 answers
Enable IntelliJ hotswap of html and javascript files
I'm fairly new to IntelliJ and I'm using it to develop an AngularJS / Java web application. When I make changes to HTML or JavaScript code, I always have to restart the app server (I'm using Jetty). Is there a config or plugin that provides hotswap…

Dr. Mike Hopper
- 802
- 1
- 8
- 19
21
votes
3 answers
Pickle: dealing with updated class definitions
After a class definition is updated by recompiling a script, pickle refuses to serialize previously instantiated objects of that class, giving the error: "Can't pickle object: it's not the same object as "
Is there a way to tell pickle that it…

iestyn
- 311
- 2
- 4
20
votes
5 answers
'Hot code replace' not working -- Eclipse doesn't change any code on JBoss
I'm currently experiencing a problem with 'hot code replace' not working on Eclipse Galileo and JBoss 4.2.3.
Among other applications I'm running an exploded Java WAR on my local JBoss. The project from which it is build is managed by Maven. I build…
user321068
18
votes
3 answers
Hot-swapping of Python running program
The following code allows you to modify the contents of runtime.py at run time. In other words, you don't have to interrupt runner.py.
#runner.py
import time
import imp
def main():
while True:
mod = imp.load_source("runtime",…

Escualo
- 40,844
- 23
- 87
- 135