How modify a source cloudSim files in netbeans

1,357 views
Skip to first unread message

Sahar

unread,
Nov 2, 2012, 9:52:26 AM11/2/12
to clou...@googlegroups.com
Hi,

How we can change a java cloudsim file in netbeans? I changed only a print command in cludsimExample1 and run it again but the output doesn’t any changes. Please help me for solving this problem (step by step).

Thanks


Kusuma N.R

unread,
Nov 2, 2012, 10:27:50 AM11/2/12
to clou...@googlegroups.com

hi... i had d same problm and found d solutn.
try to copy d source files of cloudsim (in the src folder) into a new java application in netbeans(without creating main class).
now modify these files according to ur needs.
build the project and u wil get corresponding .jar file(wil b in ur netbeans projects folder).
now add this jar files to another java applications and run ur examples.

--
 
 
 

Fahimeh farahnakain

unread,
Nov 4, 2012, 8:30:43 AM11/4/12
to clou...@googlegroups.com

Hi again,
As u said, I modified cloudsimExample1 and built it. But I can not find the corresponding .jar file in netbeans project folder. can u explain for me  which in it saved? Is there only this way for modifying a java file. This way is complex and long !!!
3
--
 
 
 

Kusuma N.R

unread,
Nov 4, 2012, 9:49:37 AM11/4/12
to clou...@googlegroups.com

are u trying to modify the source code of cloudsim or just the example... if u want to change the example files, u dont have to build d application. the output should imply ur modifications. there are other methods of changing the source files. but i think in nerbeans, we can do it this way only.

--
 
 
 

Sahar

unread,
Nov 5, 2012, 3:10:08 AM11/5/12
to clou...@googlegroups.com
Hi,
Thanks so much kusuma.
 I can solve this problem by creating a new java application and adding the modified file in the new application. But based on this way for modifying each java file , I need to create a new application and I think there is a better solution.

Best Regards, Sahar

bhaju

unread,
Mar 14, 2013, 11:59:17 PM3/14/13
to clou...@googlegroups.com
I can't run cloudsim in anything ya.eclipse and netbeans too

Divya Bharati

unread,
Mar 15, 2013, 12:14:32 AM3/15/13
to clou...@googlegroups.com

@bhaju: hey did you add tat cloudsim's source packages into ur project at first??

madhu

unread,
Mar 15, 2013, 4:59:45 AM3/15/13
to clou...@googlegroups.com
i think you have added cloudsim jars to your netbeans or eclipse projects.
so that's why it is taking input file from that jar files instead of your modified source file.
if that is the case remove that jar files from project libraries.
just add cloudsim source files to source of your project.
if not because of that, dont consider this

Baptiste Louis

unread,
Feb 2, 2015, 10:36:28 AM2/2/15
to clou...@googlegroups.com
In the libraries, you should have only "cloudsim-3.0.3.jar" . I believe you added (like me before) the 4 .jar available in the CloudSim v3.0.3 .

s ghasemi

unread,
Apr 18, 2016, 1:17:57 PM4/18/16
to cloudsim
Thank you Dear Madhu
I had the problem of not being able to modify the classes of Cloudsim. Your solution is the exact one solved the problem
Thank you very much.
Reply all
Reply to author
Forward
0 new messages