-
1. Re: Remote debuging with eclipse
thomas.diesler Jul 6, 2005 8:06 AM (in response to thomas.diesler)Jason wrote,
Ok, I did some research on this, and I have an answer for you. The
reason why hotcode replace is not working, is because the eclipse
compiler and the javac compiler are generating different byte code.
This effectively causes all code changes to be a schema change.
I was able to fix this by changing the my build configuration to use
the eclipse compiler. These are the steps I took to fix this:
1. Copy org.eclipse.jdt.core_3.1.0.jar from your eclipse/plugins
directory to your ant/lib. If you are using the build.sh or
build.bat then this will be in jboss-head/tools/lib.
2. Extract the jdtCompilerAdapter.jar file from
org.eclipse.jdt.core_3.1.0.jar and put it in your ant/lib (or
jboss-head/tools/lib)
3. Edit your build/local.properties file and set
build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
4. do a build clean; build to recompile the main jboss build with
the eclipse compiler.
I am not sure whether the byte code difference is intentional, it
could be that this is all a bug, but I am guess that it is not. I
have not tried the final release of 3.1 (released the 25th). I will
report back when I find that out. -
2. Re: Remote debuging with eclipse
ccrouch Apr 20, 2006 10:34 PM (in response to thomas.diesler)More details on using the compiler can be found here:
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm
Including options to pass to turn off all the flippin' warnings :-).