[jboss-jira] [JBoss JIRA] (DROOLS-472) Drools Eclipse plugin can't recognize third party classes

Jinghai Rao (JIRA) issues at jboss.org
Tue Jun 3 14:42:16 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973014#comment-12973014 ] 

Jinghai Rao commented on DROOLS-472:
------------------------------------

Hi Mario,

Thanks for fixing the problem. I just installed the plugin, but this time, it doesn't report any error in the .drl file, even for obvious syntax errors. 

Below is the steps I did:

1. git clone https://github.com/droolsjbpm/droolsjbpm-tools.git
2. cd droolsjbpm-tools/
3. mvn clean install -DskipTests (the build is successfully)
4. Add a local update site to eclipse. The path is droolsjbpm-tools/drools-eclipse/org.drools.updatesite/target/repository/
5. Install the plugins. The version number seen after installation is: 6.1.0.201406031754
6. Create a new example Drools project. I intentionally made some mistakes, but there is no error message in eclipse editor. However, if I switch to Rete Tree tab, I get the following message:

"Rete Tree Build Error!

Reason:
java.lang.Exception: Unable to parse rules to show RETE view! 2 build errors. "

My environment is same as shown above. 

If you need further information, please let me know. 

Thanks.

Jinghai

> Drools Eclipse plugin can't recognize third party classes
> ---------------------------------------------------------
>
>                 Key: DROOLS-472
>                 URL: https://issues.jboss.org/browse/DROOLS-472
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: * OS: Mac OS X 10.9.2
> * Eclipse Kepler    
> * Drool Eclipse Plugin - JBoss Drools Core 6.0.1Final. (I don't have problem with Drools Core 5.6.0Final)   
> * Java SE 1.7    
> * Drools Runtime 6.0.1   
>            Reporter: Jinghai Rao
>            Assignee: Mario Fusco
>             Fix For: 6.1.0.CR1
>
>
> 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 "Only a type can be imported. ... resolves to a package". 
> At the place where I use the class, the error message is "... cannot be resolved to a type".   
> However, I have included the jar file in classpath. The project can also be executed successfully even with the error message in IDE.   
> Below is my development environment:     
> * OS: Mac OS X 10.9.2
> * Eclipse Kepler    
> * Drool Eclipse Plugin - JBoss Drools Core 6.0.1Final. (I don't have problem with Drools Core 5.6.0Final)   
> * Java SE 1.7    
> * Drools Runtime 6.0.1   
> !https://lh5.googleusercontent.com/-gltHnzUIUg4/U1qbEzVd_LI/AAAAAAAAEYw/mKxE2jv-VVc/w1796-h1168-no/Screen+Shot+2014-04-25+at+10.20.36+AM.png!



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list