Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working on CloudSim project in NetBeans IDE and I need to import
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;

Package org.apache.commons.math3.linear does not exist.

What I have tried:

I have see many tutorials but I couldn't make it.
Updated 25-Apr-19 9:07am

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900