https://www.nsnam.org/mediawiki/index.php?title=HOWTO_use_ns-3_with_BonnMOtionmobility_generator_and_analysis_tool&feed=atom&action=historyHOWTO use ns-3 with BonnMOtionmobility generator and analysis tool - Revision history2024-03-29T12:56:13ZRevision history for this page on the wikiMediaWiki 1.24.1https://www.nsnam.org/mediawiki/index.php?title=HOWTO_use_ns-3_with_BonnMOtionmobility_generator_and_analysis_tool&diff=6413&oldid=prevTomh: Created page with "{{TOC}} [BonnMotion http://net.cs.uni-bonn.de/wg/cs/applications/bonnmotion/] is a mobility scenario generator and analysis tool. It can export a trace format that can be impor..."2012-01-16T18:21:54Z<p>Created page with "{{TOC}} [BonnMotion http://net.cs.uni-bonn.de/wg/cs/applications/bonnmotion/] is a mobility scenario generator and analysis tool. It can export a trace format that can be impor..."</p>
<p><b>New page</b></p><div>{{TOC}}<br />
<br />
[BonnMotion http://net.cs.uni-bonn.de/wg/cs/applications/bonnmotion/] is a mobility scenario generator and analysis tool. It can export a trace format that can be imported by ns-3.<br />
<br />
= Installation =<br />
<br />
BonnMotion requires a Java Runtime Engine (JRE) and a Java Development Kit (JDK). The installation <br />
<br />
sudo apt-get install openjdk-7-jre openjdk-7-jdk<br />
# cd to a directory used to install software from source, such as /usr/local/src<br />
unzip bonnmotion-2.0.zip<br />
cd bonnmotion-2.0<br />
./install<br />
<br />
You will be queried as follows:<br />
<br />
Please enter your Java binary path [/usr/bin]: <br />
<br />
simply hit return.<br />
<br />
You may next see the following:<br />
<br />
Creating scripts ... bm ... compile ... makedoc ... done.<br />
Starting compilation ...<br />
Compiling EdgeList.java ... done.<br />
Compiling Model.java ... done.<br />
Compiling CatastropheNode.java ... done.<br />
Compiling Nomadic.java ... done.<br />
Compiling RandomWaypoint.java ... done.<br />
Compiling ChainScenario.java ... done.<br />
Compiling RandomDirection.java ... done.<br />
Compiling ClusterMember.java ... done.<br />
Compiling Cluster.java ... done.<br />
Compiling SLAWBase.java ... done.<br />
Compiling RPGM.java ... done.<br />
Compiling Pursue.java ... done.<br />
Compiling RandomWaypoint3D.java ... done.<br />
Compiling Column.java ... done.<br />
Compiling SLAW.java ... done.<br />
Compiling ProbRandomWalk.java ... done.<br />
Compiling Static.java ... done.<br />
Compiling RandomWalk.java ... done.<br />
Compiling RandomStreet.java ... done.<br />
Compiling SteadyStateRandomWaypoint.java ... done.<br />
Compiling GaussMarkov.java ... done.<br />
Compiling TIMM.java ... done.<br />
Compiling OriginalGaussMarkov.java ... done.<br />
Compiling StaticDrift.java ... done.<br />
Compiling ManhattanGrid.java ... done.<br />
Compiling Visplot.java ... done.<br />
Compiling WiseML.java ... done.<br />
Compiling GPXImport.java ... done.<br />
Compiling Cut.java ... done.<br />
Compiling TheONEFile.java ... done.<br />
Compiling SPPXml.java ... done.<br />
Compiling ScenarioConverter.java ... done.<br />
Compiling LinkDump.java ... done.<br />
Compiling LongestLink.java ... done.<br />
Compiling IntervalFormat.java ... done.<br />
Compiling Dwelltime.java ... done.<br />
Compiling GlomoFile.java ... done.<br />
Compiling NSFile.java ... done.<br />
Compiling Statistics.java ... done.<br />
Compiling SampleSet.java ... done.<br />
Compiling Function.java ... done.<br />
Compiling GeometricMeanCalculator.java ... done.<br />
done.<br />
$ ./bin/bm -h<br />
Exception in thread "main" java.lang.UnsupportedClassVersionError: edu/bonn/cs/iv/bonnmotion/run/BM : Unsupported major.minor version 51.0<br />
at java.lang.ClassLoader.defineClass1(Native Method)<br />
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)<br />
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)<br />
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)<br />
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)<br />
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)<br />
at java.security.AccessController.doPrivileged(Native Method)<br />
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)<br />
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)<br />
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)<br />
Could not find the main class: edu.bonn.cs.iv.bonnmotion.run.BM. Program will exit.<br />
<br />
There are two errors above:<br />
* The "Unsupported major.minor version 51.0" error is due to using a different version JRE than JDK. You probably installed openjdk-7-jdk but note that it also installs openjdk-6-jre and sets version 6 to the default. You can change this by running 'sudo update-alternatives --config java' and selecting '/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java' which matches your compilation environment.<br />
* your system could not find the classes provided by BonnMotion; this is a problem with the Java CLASSPATH.</div>Tomh