Setting up ONE in Netbeans IDE
Click on New Project (ctrl + shift + n) then select Java Project with Existing Sources.
Click Next. Put your project name at the field Project Name then click Next.
Now you have to add the source code. Click Add Folder and navigate to the simulator root folder, then select it.
The following message may appear:
Click Delete and proceed. Right-click on Libraries at the left side panel, then Add Library. Select JUnit 4.10 then click Add Library button.
Right-click Libraries again, now click Add Jar/Folder. Navigate to ONE source code root enter lib dir then select DTNConsoleConnection.jar and ECLA.jar. Click OK.
Go to the project properties, select Libraries, choose JDK 1.6 as Java Platform. Now, select Run and choose the Working Directory as the ONE simulator root folder.
Run the project, select core.DTNSim as main class and click OK. Now, you should be able to run ONE right from Netbens.
Thanks for your attention!