Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Debugging Java remote Objects in Eclipse

Avatar

Level 1
Hi guys,



The following URL used to point to a WIKI page that described
the steps for setting up Eclipse to launch the integrated JRun flex
server in debug mode so that it is able to debug server-side java
code.




http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:Debugging



Where is this information now? It says that all of this has
been moved to the release site, but I can't find it now.



thanks,

Thunder Stumpges
1 Accepted Solution

Avatar

Correct answer by
Level 1
Got it working! After a lot of trial and error, and searching
around

about JRun debugging, I've got what works for me.

Good Luck,

Thunder

_________________________



Here is what I did:



* Right-click your Java server project, select Debug As ->
Debug...

* If it doesn't already have a new configuration, click the
'new'

toolbar button at the top left of the window.

* Name the debug configuration, and in the "main" tab set the
"main

class" to jrunx.kernel.JRun

* select the "arguments" tab

- Program Arguments (without the quotes): "start default"

- VM Arguments (without the quotes):

"-Dsun.io.useCanonCaches=false -Djmx.invoke.getters=true"

* PROBABLY NOT NEEDED (may work with Java 1.5 JRE)

- select the JRE tab and select 'Alternate JRE' and pick

a java 1.4.x JRE

* Select the Classpath tab and select User Entries in the
list, then

use 'Add External Jars' to add:

- ALL Jar files from C:\fds2\jrun4\lib

- ALL Jar files from C:\fds2\jrun4\servers\lib

- ALL Jar files from

C:\fds2\jrun4\servers\default\flex\WEB-INF\lib

* Click 'Apply' and 'Debug'



View solution in original post

1 Reply

Avatar

Correct answer by
Level 1
Got it working! After a lot of trial and error, and searching
around

about JRun debugging, I've got what works for me.

Good Luck,

Thunder

_________________________



Here is what I did:



* Right-click your Java server project, select Debug As ->
Debug...

* If it doesn't already have a new configuration, click the
'new'

toolbar button at the top left of the window.

* Name the debug configuration, and in the "main" tab set the
"main

class" to jrunx.kernel.JRun

* select the "arguments" tab

- Program Arguments (without the quotes): "start default"

- VM Arguments (without the quotes):

"-Dsun.io.useCanonCaches=false -Djmx.invoke.getters=true"

* PROBABLY NOT NEEDED (may work with Java 1.5 JRE)

- select the JRE tab and select 'Alternate JRE' and pick

a java 1.4.x JRE

* Select the Classpath tab and select User Entries in the
list, then

use 'Add External Jars' to add:

- ALL Jar files from C:\fds2\jrun4\lib

- ALL Jar files from C:\fds2\jrun4\servers\lib

- ALL Jar files from

C:\fds2\jrun4\servers\default\flex\WEB-INF\lib

* Click 'Apply' and 'Debug'