Showing posts with label netbeans. Show all posts
Showing posts with label netbeans. Show all posts

3 steps to add API doc to NetBeans

  • In NetBeans(8.0 in this post), select [Tools] -> [Libraries]



  • [New Library] and add related jars to your library




  • That's it! Now add the created Library to your classpath and check API docs while programming!




How to pass multiple argument for main class in NETBEANS ?

Step 1: Right Click you project and select [Set Configuration] -> [Customize]


Step 2: Set your argument with space (in example below, we set args[0] as temp and args[1] as 1)


Step 3: Simply run your project as you did before.

RDFa Parsing for Website (using Semargl API)

1. Create Maven Project

2.Add Semargl dependencies (Refer to Semargl website for details)


3.Test for your website. (Change "http://localhost:8888/WiseWord/index.php" to your URL)

1:  public class Tester {  
2:    public static void main (String[] args) throws ParseException{  
3:    CharOutputSink outputSink = new CharOutputSink();  
4:    StreamProcessor sp = new StreamProcessor(  
5:    RdfaParser.connect(TurtleSerializer.connect(outputSink)));  
6:    outputSink.connect(System.out);  
7:    sp.process("http://localhost:8888/WiseWord/index.php");  
8:    }  
9:  }