LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2012, 05:08 AM   #1
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Rep: Reputation: Disabled
Question


I am trying to learn using MOVE simulator and getting this problem:

In the Traffic Model Generator under Static Mobility I import the xx.flow.xml and xx.net.xml

But when I try to create file(xx.rou.xml) under automatic vehicle routes generator.
I get the following exceptions:

$ java -jar MOVE.jar
java.io.IOException: Cannot run program "duarouter": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:448)
at java.lang.Runtime.exec(Runtime.java:345)
at autoRoutes.OKButtonActionPerformed(autoRoutes.java:606)
at autoRoutes.access$5(autoRoutes.java:518)
at autoRoutes$3.actionPerformed(autoRoutes.java:277)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.Component.processMouseEvent(Component.java:6203)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5968)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4564)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4390)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 42 more
Can anyone help me ?

my sumo version is 12.3
Can anyone help me ? i am waiting...

Last edited by colucix; 11-15-2012 at 06:28 AM.
 
Old 11-15-2012, 06:53 AM   #2
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Anyone can help me!!!
 
Old 11-15-2012, 08:01 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 2 marks your thread as answered.
Please be patient : Within a day or two, most threads are answered anyway.

The command $ 'java -jar MOVE.jar' : Will open the MOVE window.

Which OS are you using ? Name and version, please.
Please show the output from the commands :
1) uname -m
2) java -version

.
 
Old 11-15-2012, 08:08 AM   #4
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
i use Ubuntu10.04

$uname -m
i686
$java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.10.1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
 
Old 11-15-2012, 08:41 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 4. Probably use "sun-java6-jdk" instead.

http://ubuntuguide.net/install-sun-j...n-ubuntu-11-04
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-jdk

sudo update-alternatives --config java
.. and then select the "java-6-sun".


$ java -jar MOVE.jar : The MOVE GUI opens OK.

.
 
Old 11-15-2012, 08:22 PM   #6
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
My MOVE GUI opens is OK.
But when I try to create file(xx.rou.xml) under automatic vehicle routes generator.
I get the following exceptions:
java.io.IOException: Cannot run program "duarouter": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:448)
at java.lang.Runtime.exec(Runtime.java:345)
at autoRoutes.OKButtonActionPerformed(autoRoutes.java:606)
at autoRoutes.access$5(autoRoutes.java:518)
at autoRoutes$3.actionPerformed(autoRoutes.java:277)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultB
 
Old 11-15-2012, 10:06 PM   #7
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
i have updated the java-jdk,but it still did not work.
 
Old 11-16-2012, 03:22 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6
Quote:
Cannot run program "duarouter": ... ... , No such file or directory
Are you sure you have 'duarouter' in the PATH ?
The executable 'duarouter' is provided by sumo 0.12.3.

Should be /usr/local/bin/duarouter
Or : /usr/bin/duarouter
.
 
Old 11-16-2012, 08:23 AM   #9
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I have the "duarouter" in /usr/local/sumo/bin/duarouter.But in the PATH /usr/local/bin/duarouter Or /usr/bin/duarouter,I did not find the "duarouter".
 
Old 11-16-2012, 10:52 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 9

1) cd /usr/local/bin/
2) sudo ln -s /usr/local/sumo/bin/* .
.... where the period ( . ) means the current directory.
Then all the "sumo commands" are in your PATH.
( No reason to have a hideaway location, unless you have more versions of sumo.)

.
 
Old 11-17-2012, 03:30 AM   #11
guyanjie
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you very much. After add all the "sumo commands",it worked .
 
Old 01-05-2013, 08:14 AM   #12
thirumagal27
LQ Newbie
 
Registered: Jan 2013
Posts: 14

Rep: Reputation: Disabled
MOVE vanet simulator

hi..am doing my final year project in vanet simulation..can anyone say the tools to be used for it?
i didn get clear idea about MOVE..pls help
 
Old 01-07-2013, 06:57 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 12, @thirumagal27 : Welcome to LQ.

In the above thread sun-java6-jdk, sumo-0.12.3 and MOVE.jar are mentioned.

Google : move vanet ( 270,000 hits )
http://www.google.com/webhp?hl=all#h...w=1280&bih=823
> First hit http://lens.csie.ncku.edu.tw/Joomla_...18-rapid-vanet
> The same tools are mentioned : sun-jdk6, sumo-0.12.3, MOVE.jar + ns2.

.
 
1 members found this post helpful.
Old 01-07-2013, 11:01 AM   #14
thirumagal27
LQ Newbie
 
Registered: Jan 2013
Posts: 14

Rep: Reputation: Disabled
thank you very much sir
 
Old 01-07-2013, 11:06 AM   #15
thirumagal27
LQ Newbie
 
Registered: Jan 2013
Posts: 14

Rep: Reputation: Disabled
can we use federo or ubuntu?

Last edited by thirumagal27; 01-08-2013 at 06:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MOVE vanet simulator problem while saving vidhoon Linux - Newbie 19 02-06-2013 12:16 AM
A problem of Network simulator MOVE ,when creating map chen huanyin Linux - Newbie 2 11-28-2012 04:27 PM
How to move and create a directory at the same time. loopingz Linux - General 10 11-24-2010 01:37 AM
FTP problem: can create n move file n folders but can't copy... Sayan Acharjee Linux - Server 8 03-04-2010 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration