|
From: <st...@ko...> - 2009-08-31 14:09:58
|
Hi Yue, please find the following answers below: > Hi there, > I wanted to run a simulation of 10000 nodes remotely on the Tres computer, > but I have some problem running the compiled program of > Peerfactsim-project: > > My program runs without problem in eclispe on my laptop. But I want to > copy > the compiled files and run it on Tres. > > At first, I copied the whole project to Tres, > then I go to the root folder of the project : PeerfactSim.KOM-Main >>From there I run: > java -classpath ./bin;./lib/commons-math-1.1.jar > de.tud.kom.p2psim.SimulatorRunner config/chord.xml > I was told that this command is not in correct form. > I've no idea where the error was... > A valid command must contain all required libs, that the simulator uses. I think, that your version of PeerfactSim.KOM needs more than that one library. In order to include all libs to run a simulation, use "lib/*" instead. A further problem is the separation character, which is ":" on unix systems and ";" on Windows systems. So a valid command, with enough memory to run large simulations can look like: java -Xms1000M -Xmx3000M -cp lib/*:bin de.tud.kom.p2psim.SimulatorRunner config/chord.xml ---------------------------------------------------------------------------------------- > Later I tried to export the Peerfactsim-project to a runnable jar file. > I uesed the Export function of eclipse. > but when I run the Jar file, I was told: > > log4j:WARN No appenders could be found for logger > (de.tud.kom.p2psim.impl.simengine.Simulator). > log4j:WARN Please initialize the log4j system properly. > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 > at > de.tud.kom.p2psim.SimulatorRunner.parseVariables(SimulatorRunner.java:351) > at de.tud.kom.p2psim.SimulatorRunner.main(SimulatorRunner.java:338) > > Can anyone tell me how to generate a runnable file of the simulator ? > This error occurs, since no parameter is provided, which specifies the config-file for a simulation during the start of the simulator. You must provide a config-file to omit the error. > Thanks in advance! > Yue > Cheers, Dominik ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. > http://p.sf.net/sfu/bobj-july_______________________________________________ > Peerfactsim-developer mailing list > Pee...@li... > https://lists.sourceforge.net/lists/listinfo/peerfactsim-developer > |