HOW TO INSTALL DROOLS CORRECTLY

1. install JAVA STANDARD ENVIRONMENT J2EE to c:\program files\java...
2. go to control panel>system>advanced>environment variables
3. create new USER VARIABLES AND SYSTEM VARIABLES using this path:

        JAVA_HOME = C:\Program Files\Java\jdk1.5.0_05

4. go to CMD or DOS

   go to C:\  directory

   type SET JAVA_HOME = .;"C:\Program Files\Java\jdk1.5.0_05";

5. install MAVEN 1.1 to c:\

    the installer will create by default c:\maven

6. go to control panel>system>advanced>environment variables
7. create new USER VARIABLES AND SYSTEM VARIABLES using this path:

        MAVEN_HOME = C:\maven

8. go to CMD or DOS

9. go to c:\

10. type SET PATH = .;"C:\maven\bin";%PATH%

11. [ the prompt will invoke again to C:\ ] type in c:\> maven
    (maven will build itself)

12. DOWNLOAD tarball.zip FROM THE CVS DOWNLOAD PAGE OF DROOLS AND and unzip the 
'drools' folder 

inside it to c:\

    the directory should look like c:\drools

13. go to start>run> and type CMD

14. change directory to c:\drools

15. type c:\drools> maven

16. Maven will build DROOLS and automatically download dependencies from the 
specified websites 

it opens, you should be connected to the internet

17. dependencies will be installed and it will display BUILD SUCCESSFUL

18. then you are done!!!
   

INSTALLING MAVEN IN NETBEANS
1.download mevenide plugin from Apache
1. open netbeans
2. go to tools>update center
3. go to manually install
4. press ADD
5. go to directory of mevenide plugin and install *.NBM files
6. then you are done!!!

INSTALLING DROOLS IN NETBEANS

1. open netbeans
2. file>new project
3. project name: Drools
   project location: c:\drools
   set as main project: checked
   create main class: checked
4. drools will build itself
5. file>open project
6. select each directory at a time:
   drools-core
   drools-java
   drools-examples

   ....etc..

  press ADD PROJECT FOLDER..
  
  it will add itself to the PROJECTS Window..


  right click the project name and BUILD PROJECT


HOW TO MAKE A NEW DROOLS PROJECT IN NETBEANS USING MAVEN


1. MAKE AN org.drools.thesis package under Drools-Example-Library

2. Create a new java file named Assessment.java

3. edit maven.xml under the C:\drools\drools-examples directory and add this 
xml code: this 

command will look for the main class which is Assessment.java so that it can 
trap the commands 

and execute them



  


   
      
        
        
          
        
          
      
        
    

4. RIGHT click the Drools::Example::Library Parent Directory

5. go to Execute custom goal>ASSESSMENT-JAVA

6. it will now build and execute your new project



HOW TO CONNECT THE MYSQL-JDBC DATABASE DRIVER FOR DATABASE ACCESS 
IN  DROOLS 


1. right click drools::example::library and click Properties

2. go to Build, under it is Java/Jar, point your mouse to it.

3. on your right pane, click Edit... beside the Default Platform dropdown button

4. go to Sources tab

5. click add jar/folder

6. open the location of the mysql-connector from 

C:\Program Files\Java\jre1.5.0_05\lib\ext\mysql-connector-java-3.0.17-ga-bin.jar

7. the source file will display under the Sources TAB

8. go to directory called 'Dependencies' under Drools-Examples

9. right click Dependencies and choose 'Add Dependency'

10. A dialog box will open. click the button 'Repository'

11. under the + sign indicating ' Local at file:/C:/Documents%20... '

12. click + mysql then + jar 

13. as you move down, you will notice that there is not jar file included.

14. copy the mysql-connector jar file to the .maven repository directory at 
C:\Documents and 

Settings\user\.maven\repository\mysql\jars

15.repeat step 9 to 12

16. this time, the connector appears already highlight it and click the button 
that has a 

Downward Arrow icon saying 'Download Artifact'.

17. Click OK. 

18. the Add Dependency dialog appears again but this time with the information 
already supplied.

19. Click Ok to confirm then you are done!!!
 

















--
View this message in context: 
http://www.nabble.com/INSTALLING-DROOLS-IN-NETBEANS-AND-CONNECTING-IT-TO-MYSQL-t1043340.html#a2710817
Sent from the drools - user forum at Nabble.com.

Reply via email to