Hi Asim,
In the clooj IDE, you can invoke the "Restart REPL" menu command and
your class will be reloaded. (Every time the REPL is "restarted," a
new classloader is created and the old one is discarded. Note that
restarting the REPL does not destroy your namespace mappings. It is
necessary to crea
2011/8/27 Rob Lally
> There's a good chance that JavaRebel would let you do what you want:
>
>http://www.zeroturnaround.com/jrebel/
>
>
If you use an IDE such as Eclipse (and also I presume IDEA, Netbeans, etc.),
and you launch the Application in Debug mode rather than in Run mode, then
Hi Asim,
No, Clojure can't re-load a Java class, because the JVM doesn't allow
classes to change after they have been loaded. Some Java IDEs and
application servers can do this by creating new ClassLoaders, but they
usually have to reload a whole application to see changes to a single class.
-
There's a good chance that JavaRebel would let you do what you want:
http://www.zeroturnaround.com/jrebel/
Rob.
On 27 Aug 2011, at 15:41, Asim Jalis wrote:
> Is there a way to reimport a Java class into the REPL?
>
> This would be very useful in dynamically developing Java code from
Is there a way to reimport a Java class into the REPL?
This would be very useful in dynamically developing Java code from the REPL.
Here is a specific example.
Create a java class:
cat << 'END_OF_FILE' > chk.java
public class chk {
public String hello() {
return "Hello from chk (v1).";