I'm working on CloudSim project in NetBeans IDE and I need to import
org.apache.common
into my project.
I have followed
youtube to install Java jdk and NetBeans on my windows 10. Then I followed steps below to add CloudSim project to NetBeans:
1. file -> new project -> Java with Ant -> Java Project with Existing Source
2. defined name and folder for project, the path is: `\CloudSim_Tutorial`
3. to add existing source I added CloudSim folder as my source
4. finish
The project throw an error that:
Package org.apache.common.math3.linear does not exist
for some java files. So I searched on the web and did the following:
1. download commons-math3-3.2-bin binary file
2. extracted the zip file in my project folder, `\CloudSim_Tutorial`
3. right click on project name -> properties
4. selected Libraries from pop-up window
5. in `classPath` clicked on `+` sign
6. selected the `commons-math3-3.2.jar` file -> Ok
It still throw the error.
The code causing error:
import org.apache.commons.math3.linear.Array2DRowRealMatrix;
Error:
Package org.apache.commons.math3.linear does not exist.
What I have tried:
I have see many tutorials but I couldn't make it.