Problem debugging starting debug function in eclipse using Java

Michael Koch konqueror at gmx.de
Sat Jan 12 17:21:23 UTC 2008


On Fri, Jan 11, 2008 at 09:44:21PM -0400, erikrafael at cefetam.edu.br wrote:
> Hi,
> 
> I am writing to this group because I have a problem using eclipse on Linux
> (version 2.6.18-5-amd64 #1 SMP x86_64). I installed the j2sdk1.5-sun and
> latter the eclipse using the aptitude install eclipse. Java alternatives
> installed in my machine:
> root at toronto:/usr/lib/java# update-alternatives --config java
>   Seleção      Alternativa
> -----------------------------------------------
>           1    /usr/bin/gij-wrapper-4.1
> *         2    /usr/lib/j2sdk1.5-sun/bin/java
>  +        3    /usr/lib/jvm/java-gcj/jre/bin/java
> 
> Everything was going fine until I realized that the debug functionality
> does not work, I mean it's not possible go step by step through the code.
> 
> I have searched the web looking for some tip regarding how to solve this
> issue but unfortunately I couldn't find. It was a surprise to realize that
> this functionality (debugging) is not working fine after the installation
> had finished.
> 
> Can you help me or give me any directions concerning how to solve this issue?

The eclipse package currently doesnt use the java alternative. It looks
into /etc/eclipse/java_home and checks for the first JDK to be
installed. This leads to java-gch-compat to be used in your case.
Unfortunately the version of GCJ in etch does not implement the JDWP
stuff needed for debugging.

What you can do is change to search order /etc/eclipse/java_home or
override it for your user by putting "JAVA_HOME=/usr/lib/j2sdk1.5-sun"
into ~/.eclipse/eclipserc. Another way is to just deinstall
java-gcj-compat package.


Cheers,
Michael



More information about the pkg-java-maintainers mailing list