Alachisoft NCache 4.1 - Online Documentation

How to setup development Environment?

 
Here we will discuss the step by step procedure for setting development environment for Eclipse and NetBeans.
 
For Eclipse
 
  1. File-> New -> Project.
     
     
  2. Select Java Project from range of generic projects.
     
     
     
  3. Enter the name of the project you want to create, e.g. NCache Test Project then press Next button.
     
     
  4. Select the Library tab, click "Add External Jars …".
     
     
  5. Go to path "C:\Program Files\NCache\Java\lib\" , considering the default installation location.
     
     
  6. Add NCClient.jar.
     
     
  7. Click Finish button.
     
     
  8. Now create a class file, by right click on src->new->Class.
     
     
  9. Enter the name of the class e.g MyClass.
  10. Check "public static void main(String[] args)".
  11. Click Finish button.
     
     
  12. Now import com.alachisoft.ncache.web.caching.*;
     
     
  13. There you go, you are all set up to begin NCache Development .
 
 
For Netbeans
 
  1. File->New Project.
     
     
     
  2. Select Java Application and click Next button.
     
     
     
  3. Enter the project name, e.g. NCache Test Application and click Finish button.
     
     
  4. In the Project window, under your newly created project hierarchy, right click on Libraries, then Properties.
     
     
  5. Click "Add Jar Files" then proceed to "C:\Program Files\NCache\Java\lib\" ,considering the default installation location.
     
     
     
  6. Select NCClient.jar.
     
     
  7. Now under your project hierarchy, under Source Packages, Find Main.java, double click it.
  8. Now add the line "import com.alachisoft.ncache.web.caching.*;" after package <your Project Name> and before the Main class.
     
     
  9. That's it, you're all set up and ready to go build your first NCache Java application in Netbeans environment.
 
 
 
See Also
 
Copyright © 2005-2012 Alachisoft. All rights reserved.