Hello, this is regarding issues such as Main class not found or Can not find symbol while executing or compiling. You just need to set proper path of your cloudsimsdn directory.
I stored CloudSimSDN folder downloaded from github at location E:\ with the name cloud.
It's very much important to provide proper jar file's address as well as providing complete path of file that has to be inputed such as energy-physical.json.
Set Java path variable value:
C:\Program Files\Java\jdk1.8.0_121\bin
CLASSPATH value :
E:\cloud\jars\*; E:\cloud\src;
For Compiling
javac E:\cloud\src\org\cloudbus\cloudsim\sdn\example\SDNExample.java
For Executing
java org.cloudbus.cloudsim.sdn.example.SDNExample MFF E:\cloud\dataset-energy\energy-physical.json E:\cloud\dataset-energy\energy-virtual.json E:\cloud\dataset-energy\energy-workload.csv > results.out
These commmands are tested with Windows 10 and Latest java version. Please share your valuable comments and queries.
I stored CloudSimSDN folder downloaded from github at location E:\ with the name cloud.
It's very much important to provide proper jar file's address as well as providing complete path of file that has to be inputed such as energy-physical.json.
Set Java path variable value:
C:\Program Files\Java\jdk1.8.0_121\bin
CLASSPATH value :
E:\cloud\jars\*; E:\cloud\src;
For Compiling
javac E:\cloud\src\org\cloudbus\cloudsim\sdn\example\SDNExample.java
For Executing
java org.cloudbus.cloudsim.sdn.example.SDNExample MFF E:\cloud\dataset-energy\energy-physical.json E:\cloud\dataset-energy\energy-virtual.json E:\cloud\dataset-energy\energy-workload.csv > results.out
These commmands are tested with Windows 10 and Latest java version. Please share your valuable comments and queries.
Hi could you please share with me how to track delay when two nodes communicate.
ReplyDeleteI need to go through...
Deletedo you have any jar files of packages required for cloudsimsdn?
ReplyDeleteYes I have jars
Deletehey do u have any video for this
ReplyDeletethe jar files are not being included its showing the error cannot find symbol for all classes
plz help as soon as possible plz im working on a project.....
Please specify complete path of jar files as mentioned. And include CLASSPATH variable.
Deletehey, I've tried to run the SDNexample in Ubuntu but I've face with this error: error: cannot find symbol. i know that i should add the PATH variable into my /.bashrc with using PATH=/usr/local/JDK1.8.0_171/bin:$PATH
ReplyDeleteexport PATH , and i added the jars files into the folder of the cloudsimsdn.
what is the problem? could you tell me?
use -cp as mentioned above executing
DeleteCloudsimSDN needs just three jars file isn't it? Apache Commons Math
ReplyDeleteJSON Simple (json-simple-1.1.1), Google Guava (guava-17.0)
It requires all mentioned jars
Deleteplease help me with execution of CloudSimSDN-
ReplyDeleteerror is -/Tomcat/apache-tomcat-8.5.31/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
In mac ox. I know this is a tomcat error but tried following steps-
reinstalling eclipse, Changed to java 8, made changes in eclipse.ini still not working
Seems to be out of context for me as of now... will surely get back if I find any solution for it
DeleteOn running the SDN Example, i'm getting the errors as
ReplyDeletejava.io.FileNotFoundException: > (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileReader.(Unknown Source)
at org.cloudbus.cloudsim.sdn.example.WorkloadParser.startParsing(WorkloadParser.java:145)
at org.cloudbus.cloudsim.sdn.example.WorkloadParser.(WorkloadParser.java:58)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.scheduleRequest(SDNBroker.java:100)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.applicationSubmitCompleted(SDNBroker.java:94)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.processEvent(SDNBroker.java:73)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
at org.cloudbus.cloudsim.sdn.example.SDNExample.main(SDNExample.java:164)
java.lang.NullPointerException
at org.cloudbus.cloudsim.sdn.example.WorkloadParser.startParsing(WorkloadParser.java:154)
at org.cloudbus.cloudsim.sdn.example.WorkloadParser.(WorkloadParser.java:58)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.scheduleRequest(SDNBroker.java:100)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.applicationSubmitCompleted(SDNBroker.java:94)
at org.cloudbus.cloudsim.sdn.example.SDNBroker.processEvent(SDNBroker.java:73)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
at org.cloudbus.cloudsim.sdn.example.SDNExample.main(SDNExample.java:164)
Pl help
Thanks
Can you provide steps to execute SimpleExampleSelectLinkBandwidth example?
ReplyDelete