From: om n. s. <omn...@gm...> - 2007-10-03 18:17:42
|
Gettin error when i am trying to execute java file ERROR: root@localhost Example01]# java -classpath /root/gridsimtoolkit-4.1/jars/gridsim.jar Example1 Starting example of how to create one Grid resource Initializing GridSim package Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: eduni.simjava.Sim_entity at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0) at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at Example1.main(java.lang.String[]) (Unknown Source) Caused by: java.lang.ClassNotFoundException: eduni.simanim.Anim_entity not found in [file:/root/gridsimtoolkit-4.1/jars/gridsim.jar, file:/usr/share/java/libgcj-3.4.6.jar, file:./, core:/] at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0) at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0) at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0) at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0) at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) ...11 more pls get me a solution to resolve this problem. |
From: yangyu <ya...@hp...> - 2007-10-04 11:43:12
|
good evening. I just guessed that your setting of the path of gridsim.jar and simjava.jar may be not done. (or other path of java library.) I am uesing A soft named NetBeans IDE 5.0, you can set library easily when using it. You can get if for free. Hope to help you. good luck, yours, -----Original Message----- From: gri...@li... [mailto:gri...@li...]On Behalf Of om nama shiva Sent: Thursday, October 04, 2007 3:18 AM To: gri...@li... Subject: [GridSim-users] help regarding compiling............. Gettin error when i am trying to execute java file ERROR: root@localhost Example01]# java -classpath /root/gridsimtoolkit-4.1/jars/gridsim.jar Example1 Starting example of how to create one Grid resource Initializing GridSim package Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: eduni.simjava.Sim_entity at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass( java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass (java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0 (java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0) at _Jv_ResolvePoolEntry( java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at Example1.main(java.lang.String[]) (Unknown Source) Caused by: java.lang.ClassNotFoundException: eduni.simanim.Anim_entity not found in [file:/root/gridsimtoolkit- 4.1/jars/gridsim.jar, file:/usr/share/java/libgcj-3.4.6.jar, file:./, core:/] at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0) at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String ) (/usr/lib/libgcj.so.5.0.0) at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0) at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0) at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0) at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) ...11 more pls get me a solution to resolve this problem. |
From:
<ag...@ds...> - 2007-10-04 18:13:52
Attachments:
agustin.vcf
|
Hello, In the web site of GridSim (http://www.gridbus.org/gridsim/) there are instructions on how to use GridSim with Eclipse <http://www.gridbus.org/gridsim/paper/eclipse.pdf> or JBuilder <http://www.gridbus.org/gridsim/paper/jbuilder.pdf> or JCreator <http://www.gridbus.org/gridsim/paper/jcreator.pdf>. I think all of them have free versions. Regards, Agustin yangyu escribió: > good evening. > I just guessed that your setting of the path of gridsim.jar and > simjava.jar may be not done. (or other path of java library.) > I am uesing A soft named NetBeans IDE 5.0, you can set library easily > when using it. You can get if for free. > Hope to help you. > good luck, > yours, > > -----Original Message----- > *From:* gri...@li... > [mailto:gri...@li...]*On Behalf Of > *om nama shiva > *Sent:* Thursday, October 04, 2007 3:18 AM > *To:* gri...@li... > *Subject:* [GridSim-users] help regarding compiling............. > > Gettin error when i am trying to execute java file > ERROR: > root@localhost Example01]# java -classpath > /root/gridsimtoolkit-4.1/jars/gridsim.jar Example1 > Starting example of how to create one Grid resource > Initializing GridSim package > Exception in thread "main" java.lang.NoClassDefFoundError: while > resolving class: eduni.simjava.Sim_entity > at java.lang.VMClassLoader.resolveClass(java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at _Jv_PrepareClass( java.lang.Class) (/usr/lib/libgcj.so.5.0.0) > at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.linkClass0(java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.resolveClass (java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) > at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.linkClass0 (java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.resolveClass(java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0) > at _Jv_ResolvePoolEntry( java.lang.Class, int) > (/usr/lib/libgcj.so.5.0.0) > at Example1.main(java.lang.String[]) (Unknown Source) > Caused by: java.lang.ClassNotFoundException: > eduni.simanim.Anim_entity not found in [file:/root/gridsimtoolkit- > 4.1/jars/gridsim.jar, file:/usr/share/java/libgcj-3.4.6.jar, > file:./, core:/] > at java.net.URLClassLoader.findClass(java.lang.String) > (/usr/lib/libgcj.so.5.0.0) > at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String ) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.ClassLoader.loadClass(java.lang.String, boolean) > (/usr/lib/libgcj.so.5.0.0) > at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.Class.forName(java.lang.String, boolean, > java.lang.ClassLoader) > (/usr/lib/libgcj.so.5.0.0) > at _Jv_BytecodeVerifier.verify_instructions_0() > (/usr/lib/libgcj.so.5.0.0) > at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0) > at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) > at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.linkClass0(java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > at java.lang.VMClassLoader.resolveClass(java.lang.Class) > (/usr/lib/libgcj.so.5.0.0) > ...11 more > > pls get me a solution to resolve this problem. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > -- ======================================================== Agustin Caminero-Herraez PhD Student Computing Systems Department The University of Castilla La Mancha, Albacete. Spain. Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 http://www.i3a.uclm.es/ ======================================================== |
From: yangyu <ya...@hp...> - 2007-10-05 04:21:31
|
Good morning Agustin, Good morning everyone, =20 Thank you very much for the information you gave to me. I am happy to hear that the speed of PEs can be changed when the = simulation is running. I just tried one way to change the speed of PEs. It seems that it does = not work .(Forgive me if I chose a wrong way to write the code) I am not = sure the method I used is right or not. Can you tell me why I can not change the speed(rating) of PEs when you = are not busy? =20 Thank you very much. PS. I found that in the Class ResourceCharacteristics, the method = setResourceID(int id) does not work.(I can not make resources ID as I = want them to be.) =20 =20 bestwishes, yang, ---------the code-------------------------------------------------- _/*I ran this program step by step to see "rate"and "rate_change".I = found that they were same*/ public void changePE(){ int rate=3D0; int rate_changed=3D0; PEList pelist=3Dresource.getMachineList().getMachine(0).getPEList(); int num=3Dresource.getNumPE(); =20 /*to see the rate of PEs before change them. there were 6PEs and each = PE~s speed is 200*/ for(int i=3D0;i<num;i++){ rate=3Dpelist.getMIPSRating(i); } =20 /* try to change speed to 1000 using the method that I know*/ for(int i=3D0;i<num;i++) { pelist.add(new PE(i,1000)); // PE pe=3Dnew PE(i,1000); // pe.setMIPSRating(1000); } MachineList mList =3D new MachineList(); mList.add( new Machine(0, pelist) ); String arch =3D "Sun Ultra"; // system architecture String os =3D "Solaris"; // operating system double time_zone =3D 0.0; // time zone this resource = located ResourceCharacteristics resource =3D new ResourceCharacteristics( arch, os, mList, = ResourceCharacteristics.SPACE_SHARED, time_zone, 1); // PEList pelist1=3Dresource.getMachineList().getMachine(0).getPEList(); /* to check that they are changed or not*/ =20 for(int i=3D0;i<num;i++) { // rate_changed=3Dpelist1.getMIPSRating(i) rate_changed=3Dpelist.getMIPSRating(i); = //rate_changed is same as rate.=20 } } -------------------------------------------------- Agust=E9=86=87^n Caminero Herraez <ag...@ds...> wrote: Hello YangYu, Sorry for the late reply, but I've been busy these days. I think that what you say can be done in a similar way as the resource=20 failure functionality. This is, computing resources could change the speed of their PEs in=20 response to an event. If you do this, you should consider the allocation policy in place, as=20 in the body function of the space-shared allocation policy the rating of = the PEs of the resource are retrieved. So, more concretely, the GridResource class should receive the event=20 (perhaps the event could be sent by the GIS, as in the resource=20 failure). Then, update the PE class with the new rating by going through = the ResourceCharacteristics class, to the MachineList, to the PEList=20 until you get to the actual PE you want to modify. If you use=20 SpaceShared policy, update the PEs rating also in this class. Normally, allocation policies consider that all the PEs of the same=20 machine are identical, so you should take it into account when changing=20 the PE rating, and keep it always like that. Hope that this is useful. Do not hesitate to ask again if you still have = doubts. Regards, Agustin yangyu escribi=E5=B0=86=E3=83=A0: > hi,Thank you for your help !! > It took me time to read and run the examples. > I am sorry to re-mail you late,infact I do not know how to explain my = doubts > to you by this mailing list. > > I want to chage the speed of PEs or machines dynamicly. > for example,change a pe`s rating from 100 to 500 when the simulation = is > running. > Not to mean that make the machine down(speed/performance=3D0?). > > Thank you very much . > > > yours, > > > Hi, > > When you say dynamic performance, what do you actually mean? > > Because since the current (4.1) version of GridSim, computing = resources > may fail. This is, machines belonging to computing resources may work = for > some time, then stop working for some time, and then back again to = work. > > Thus, the performance of the computing resources may change = dynamically, > if you use this computing resource failure functionality. > > For instructions on how to use this functionality, please take a look = at > http://www.gridbus.org/gridsim/example/resFailure_index.html > where there are examples on how to use it. > > Also, take a look into these addresses: > > http://www.gridbus.org/reports/GridSim-FailureHandling-2007.pdf > > = http://www.dsi.uclm.es/descargas/thecnicalreports/DIAB-07-01-1/DIAB-07-01= -1. > pdf > > Let me know if this answers your doubts, > > Regards, > > Agustin > > >=20 >> Dear All, >> >> I am sorry to take you time to read my mail. >> I hope I can get your help. >> >> I want to know whether the GridSim support to creat dynamic = performance >> machines or not? >> >> >> Thank you very much. >> Bestwishes, >> >> Y.Y >> = -------------------------------------------------------------------------= >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> >>=20 > = http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/__________________= ___ > __________________________ >=20 >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >>=20 > > > -- > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > Agustin Caminero-Herraez > PhD Student > Computing Systems Department > The University of Castilla La Mancha, Albacete. Spain. > Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 > http://www.i3a.uclm.es/ > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users >=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Agustin Caminero-Herraez PhD Student Computing Systems Department The University of Castilla La Mancha, Albacete. Spain. Phone: +34 967 599200 Ext. 2693. Fax : +34 967 599224 http://www.i3a.uclm.es/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D begin:vcard fn;quoted-printable:Agust=3DC3=3DADn Caminero-Herr=3DC3=3DA1ez n;quoted-printable;quoted-printable:Caminero-Herr=3DC3=3DA1ez;Agust=3DC3=3D= ADn org;quoted-printable:Universidad de Castilla La Mancha = (UCLM).;Departamento de Sistemas Inform=3DC3=3DA1ticos adr;quoted-printable;quoted-printable:Campus Universitario s. = n.;;Instituto de Investigaci=3DC3=3DB3n en Inform=3DC3=3DA1tica de = Albacete (i3A);Albacete;Albacete;02071;Espa=3DC3=3DB1a / Spain email;internet:ag...@ds... title:Estudiante de Doctorado tel;work:967 59 92 00 Ext. 2693 version:2.1 end:vcard =20 |
From: om n. s. <omn...@gm...> - 2007-10-04 23:20:38
|
Hello, I am not using any kind of IDE's I m just compiling directly in the shell. Is dat i need to use any special IDE's to work with this gridsim tool and if so please help get me the exact steps of how to work with this tool. I m using Centos 4. I ve also installed JSDK as said by Srikumar Venugopal. |
From: Srikumar V. <sri...@gm...> - 2007-10-05 01:33:44
|
Hi, You dont need to use IDEs however it would help a lot if you did. If you have downloaded and installed Sun JSDK, ensure that : 1. GCJ is not in the path $ which java should return the path of Sun's Java binary. 2. Your classpath is set. Like an earlier email said, ensure that the two jars (gridsim and simjava) are in your classpath. $ export CLASSPATH=<path>/gridsim.jar:<path>/simjava.jar where <path> is the directory in which you have put the jar files Run again. Go over the instructions provided in the GridSim distribution. They are pretty detailed. On an unrelated note, I noticed earlier that you are running java in the root account. While this has *no effect* on GridSim's performance, it is generally a good idea (security-wise) to execute *all* programs from a user account. Cheers Sri. On 10/5/07, om nama shiva <omn...@gm...> wrote: > Hello, > I am not using any kind of IDE's I m just compiling directly in the > shell. Is dat i need to use any special IDE's to work with this gridsim tool > and if so please help get me the exact steps of how to work with this tool. > I m using Centos 4. I ve also installed JSDK as said by Srikumar Venugopal. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > > |