Hi Openbravo Community!

The other day I set up from scratch my Openbravo workspaces in Eclipse [1]
on a fresh Ubuntu 9.04 Desktop Edition: they looked so lovely... until I had
to debug some code :( I could not believe it but I was not able to debug
Openbravo Java code with Eclipse [2]! The breakpoints did not honour their
name! What was happening?

Googling a bit I found an issue in Eclipse tracker named "Breakpoints fail
to hit under JDK 1.6.0_14" [3] (a good example of a clear issue summary
[4]). I typed in my terminal "java -version" finding with horror that my JDK
version was exactly 1.6.0_14, which is the one installed from Ubuntu
repositories when typing "sudo apt-get install sun-java6-jdk" [5].

So I had to remove my JDK 1.6.0_14 and install JDK 1.6.0_16 manually
following these instructions [6]. In the meanwhile, I messed up my
/etc/enviroment file and was not able to sudo: I solved it following [7].

Finally, I re-built my Openbravo wokspaces selecting in Eclipse 'Project >
Clean' then 'Clean all projects' and 'Start a build immediately'.

And the breakpoints were alive again! :)

Cheers!

Rafa Roda @ Openbravo Engineering

[1]
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Installation_and_setup_of_Eclipse_IDE
[2]
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Installation_and_setup_of_Eclipse_IDE#Debugging_Openbravo_ERP
[3] https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137
[4]
http://wiki.openbravo.com/wiki/Bug_Reporting_Guidelines#How_to_Report_an_Issue
[5]
http://wiki.openbravo.com/wiki/ERP/2.50/Openbravo_environment_installation#Installing_the_Java_SDK_on_Debian_.28Ubuntu.2FKubuntu.2FLinux_Mint.29
[6] http://ubuntuforums.org/showthread.php?t=1113039
[7] https://answers.launchpad.net/ubuntu/+question/24920
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Openbravo-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-development

Reply via email to