<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE>@font-face {
        font-family: Arial Unicode MS;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 3.0cm 70.85pt 3.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=PT vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You'll have to rebuild the drools-* jars for 
this.&nbsp; </FONT><FONT face=Arial size=2>Seems like the&nbsp;jars in the 
plugin were compiled using&nbsp;"-o", removing all line information from the 
class files.&nbsp; If you replace these jars by normal ones, eclipse will be 
able to step you through the code.&nbsp; Seems like you had better chosen option 
2, because&nbsp;while you're rebuilding them, you can add the sources as well 
;)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Or you could just add the drools-core and 
drools-compiler projects in the classpath as required projects, and make sure 
they are before the jars in the Drools classpath container, that way it will 
just use the code in those projects instead of the precompiled 
jars.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm not sure why those jars were compiled using -o 
in the first place though ... maybe something to do with being backward 
compatible for JDK1.4.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=francisco.brum@link.pt href="mailto:francisco.brum@link.pt">Francisco 
  Brum</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org 
  href="mailto:rules-users@lists.jboss.org">Rules Users List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 21, 2007 5:37 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] Adding 
  DROOLS/JBoss Rules to classpath WITH LINENUMBERS</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi</SPAN></FONT><FONT face=Arial 
  size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 
  </SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">everybody</SPAN></FONT><FONT 
  face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have added the JBoss rules – 
  drools 3.0.5 to an existing eclipse project.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have already solved the problem 
  of adding the source code of drools to the debugging of eclipse, using the 
  first indication of Kris, witch is quoted in the 
  end!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Now the problem it’s being able to 
  debugging using the source of drools, but having the line number, so that 
  eclipse can follow the exact actions of the 
  source.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can anybody help 
  me?!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">Yes, the drools jars do not contain any source by default (to limit the size of <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">the jars).<o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">There are two ways to use the source of these classes though:<o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt"> * When you are trying to debug an application in eclipse, and you open the <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">debug dialog (right click your Java main class, select Debug As -&gt; Debug ...), <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">there is a tab there you can use to add sources.&nbsp; If you download the sources <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">from svn and import these as Java projects in eclipse, you can just add those <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">projects to the source lookup path.&nbsp; I added a screenshot to help you out with <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">that.<o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt"> * If you add the sources to the drools jars directly (in the same dir as the <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">corresponding class files, so not in a separate src dir or something like <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">that), those sources will be found automatically as well.&nbsp; So rebuilding those <o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt">jars and adding the sources should do the trick for all your projects at once.<o:p></o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></PRE><PRE style="MARGIN-LEFT: 35.4pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">Kris<o:p></o:p></SPAN></FONT></PRE>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in advance for the 
  attention of this problem.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">__________________________________<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Francisco Brum&nbsp;- 
  </SPAN></FONT><A 
  title="mailto:rui.arrenega@link.pt&#10;mailto:nuno.oliveira@link.pt" 
  href="mailto:rui.arrenega@link.pt"><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN 
  title=mailto:rui.arrenega@link.pt>francisco.brum@link.pt</SPAN></SPAN></FONT></A><BR><B><FONT 
  face=Verdana color=teal size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: Verdana">Link 
  Consulting</SPAN></FONT></B><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"> - </SPAN></FONT><A 
  title=http://www.link.pt/ href="http://www.link.pt/" 
  target="_BLANK&#12892;&#18;&#26598;&#12320;&#30576;&#18;&#24756;&#18;&#13056;&#20;&#13040;&#20;&#26612;&#12320;&#23720;&#4644;&#2772;&#18;&#13056;&#20;&#13072;&#20;&#16;&#1086;&#5552;&#18;"><FONT 
  face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><SPAN 
  title=http://www.link.pt/>http://www.link.pt/</SPAN></SPAN></FONT></A><o:p></o:p></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Tel.: 213 100 
  031</SPAN></FONT><BR><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Av. Duque D'Ávila, 23 4º 
  Esq.<BR>1000-138 Lisboa</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-users mailing 
  list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE><br>
<FONT FACE=3D"Helvetica" SIZE=3D2>Disclaimer: <A HREF="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</A> for more information.</FONT>
 <BR>

</BODY></HTML>