<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0);font-size:13px">Hi, </span><br style="color:rgb(0,0,0);font-size:13px">

<br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Whenever I use classes from any third party jar files (not in JRE System Library and Drools Library), I got error messages in Eclipse IDE. At the place where I import the class, the error message is &quot;Only a type can be imported. ... resolves to a package&quot;. At the place where I use the class, the error message is &quot;... cannot be resolved to a type&quot;. </span><br style="color:rgb(0,0,0);font-size:13px">

<br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">However, I have included the jar file in classpath. The project can be executed successfully in Eclipse even with the error message in IDE. </span></font><br>

</div><div><br></div><div>To make the problem easier to describe and to reproduce if anybody interested, I use the example reported at <a href="https://issues.jboss.org/browse/DROOLS-373" target="_blank">https://issues.jboss.org/browse/DROOLS-373</a>. Both my problem and this are about external libraries, so I feel they may have some connections. <br>

</div><div class="">
<div><br></div><div>Below are my steps:<br></div><div>
<br></div><div>1. Download drools6scratch-kiemavenclasspath.zip from jira and unzip the file</div><div>2. In eclipse, Import -&gt; Existing Maven Projects, and select the unzipped folder</div><div>3. After import, convert the project to Drools Project</div>


<div><br></div></div><div>Then I get errors in both package.drl and AppTest.java. The attached screenshots can give more details. <br></div><div class=""><div><br></div><div>This happens to every imported class from third party libraries. But the classes from JRE System Libraries or Drools Libraries are fine. </div>



<div><br></div><div>So I have to disable drools builder, which also turns off drools validation in eclipse. It is very inconvenient for my development work. </div><div><br></div><div>I believe many people are using eclipse for drools development, but I am surprise nobody complains about it on Internet. First I suspect its configuration problem on my side, but I tried with fresh installation on both MacOS and windows 7, and I always get the same problem. </div>



<div><br></div></div><div class=""><div><span style="background-color:rgb(240,240,240);color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px">Below is my environment:</span><br></div><div><ul style="margin:10px 0px 0px;color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(240,240,240)">



<li>OS: Mac OS X 10.9.2 and Windows 7</li><li>Eclipse Kepler (Standard and for Java EE Developer) </li><li>Drool Eclipse Plugin - JBoss Drools Core 6.0.1Final. </li><li>Java SE 1.7</li><li>Drools Runtime 6.0.1</li></ul><div>

<br></div></div></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px;line-height:20px">Thank you so much if anybody can help.</span></font></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">
<span><font color="#888888">
<div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px;line-height:20px">Jinghai</span></font></div>



</font></span></font></span></font></span></div>
</div><br></div>
</div><br></div>
</div><br></div>