How to install tracemetrics for .tr files in Ubuntu 12.04

1,782 views
Skip to first unread message

Subha Kanta Swain

unread,
Mar 20, 2015, 9:56:51 AM3/20/15
to ns-3-...@googlegroups.com
I am using ns3.20 in Ubuntu. I am geting .tr files as output and i want to plot those trace files in tracemetrics.
Could you please tell me how to install the tracemetrics software in Ubuntu 12.04 ?

Thank you in advance.

Konstantinos

unread,
Mar 20, 2015, 10:15:57 AM3/20/15
to ns-3-...@googlegroups.com
tracemetrics has its own user manual describing how it can be used. 
It is just a Java pre-compiled program and as such, it does not require installation.
just call 
$ java -jar TraceMetrics.jar&
Message has been deleted

Subha Kanta Swain

unread,
Mar 21, 2015, 7:52:00 AM3/21/15
to ns-3-users
I have done as you said but this error is comming, what do i do?
user@user-OptiPlex-390:~$ java -jar TraceMetrics.jar&
[1] 6185
user@user-OptiPlex-390:~$ Unable to access jarfile TraceMetrics.jar


Regards
Subha Kanta Swain 
Ph.D Scholar,
Image & Video Analysis Laboratory,
Department of Electronics & Communication Engineering,
Institute of Technical Education & Research,
Siksha 'O' Anusandhan University,
Bhubaneswar,
Odisha-751030,
India.
Mob (personal) : +91 9439857937
Email: subhakan...@gmail.com


On Sat, Mar 21, 2015 at 11:44 AM, Subha Kanta Swain <subhakan...@gmail.com> wrote:

On Fri, Mar 20, 2015 at 7:45 PM, Konstantinos <dinos.k...@gmail.com> wrote:
$ java -jar TraceMetrics.jar&

​Could you please send me the "myapp.h" file for running your program (lab-5-solved.cc).


Regards
Subha Kanta Swain 
Ph.D Scholar,
Image & Video Analysis Laboratory,
Department of Electronics & Communication Engineering,
Institute of Technical Education & Research,
Siksha 'O' Anusandhan University,
Bhubaneswar,
Odisha-751030,
India.
Mob (personal) : +91 9439857937
Email: subhakan...@gmail.com


Konstantinos

unread,
Mar 21, 2015, 11:16:55 AM3/21/15
to ns-3-...@googlegroups.com
Hi, 

Do you call this method in the same folder TraceMetrics.jar ? 
Study the tutorial for tracemetrics for more information.

Subha Kanta Swain

unread,
Apr 6, 2015, 2:17:04 AM4/6/15
to ns-3-...@googlegroups.com
 Thank you Konstantinos but i am unable to load the tracemetrics program in Ubuntu 12.04. Still it is showing error.

Konstantinos

unread,
Apr 6, 2015, 5:58:11 AM4/6/15
to ns-3-...@googlegroups.com
What type of error? Is it the same as above? Have you checked that you have the JAR file in the folder you are trying to call the java -jar?

Subha Kanta Swain

unread,
Apr 6, 2015, 11:24:04 AM4/6/15
to ns-3-...@googlegroups.com
I have attached a file here. I have downloaded this .zip file which contains one .jar file and one folder. Did i download the correct .zip file?  If yes, then after that what i will do. I am using Ubuntu 12.04. Please suggest me the way. Thank you in advance.
tracemetrics-1.3.0.zip

Konstantinos

unread,
Apr 6, 2015, 12:16:58 PM4/6/15
to ns-3-...@googlegroups.com
I can't download the file you attached, don't know why but if you have downloaded it from here (http://www.tracemetrics.net/download/) then it should be ok.
After you extract it, you see the .jar file. You call the command I have already said 3 times and is specified in the tracemetric tutorial as well "java -jar <path/to/trace/metric/>
Also, as the website suggests, you need to have Java 7 (http://www.tracemetrics.net/2012/12/19/new-version-released-1-3-0/)

Tommaso Pecorella

unread,
Apr 6, 2015, 12:30:08 PM4/6/15
to ns-3-...@googlegroups.com
It works for me.

Please do the following and copy-paste the output.

$ ls -l
[output]

$ pwd
[output]

$ java
-version
[output]

$ java
-jar tracemetrics.jar
[output]


MIND. The last instruction MAY suddenly open TraceMetrics. If this happens, please let us know and accept my humble apologies.

Thanks,

T.

Subha Kanta Swain

unread,
Apr 7, 2015, 1:32:41 AM4/7/15
to ns-3-users
Hi Tommasso,
 why you are apologise? by the way i have run as you said and i am getting the below outputs, please have a look.

user@user-OptiPlex-390:~$  ls -l
total 316
-rw-rw-r-- 1 user user   216 Jan  3  2013 add.c~
-rw-rw-r-- 1 user user     0 Jan  3  2013 conv.c~
drwxrwxr-x 3 user user  4096 Feb  3 20:40 cplusplus
drwxr-xr-x 7 user user  4096 Apr  6 20:44 Desktop
drwxr-xr-x 2 user user  4096 Sep 15  2014 Documents
drwxr-xr-x 2 user user  4096 Apr  6 20:57 Downloads
-rw-r--r-- 1 user user  8894 Sep 19  2014 dynamic-global-routing.cc
drwxrwxr-x 3 user user  4096 Jan 20 19:06 eclipse
-rw-r--r-- 1 user user  8445 Dec 13  2012 examples.desktop
-rw-rw-r-- 1 user user     0 Sep 10  2014 fifth.cc~
-rw-rw-r-- 1 user user     1 Jan 23 18:48 first.cc
-rw-rw-r-- 1 user user 21927 Jan  8 16:53 grid.tcl~
-rw-rw-r-- 1 user user 83871 Jan 20 19:05 hs_err_pid7417.log
-rw-r--r-- 1 user user  8375 Sep 19  2014 ht-wifi-network.cc
-rw-r--r-- 1 user user  2098 Jan 10  2013 kmean.c~
-rw-r--r-- 1 user user 14515 Sep 19  2014 matrix-topology.cc
-rw-r--r-- 1 user user 18060 Sep 19  2014 multirate.cc
drwxr-xr-x 2 user user  4096 Dec 13  2012 Music
drwxrwxr-x 4 user user  4096 Mar 12  2014 NS2
-rw-r--r-- 1 user user  6559 Sep 19  2014 object-names.cc
drwxr-xr-x 2 user user  4096 Dec 13  2012 Pictures
drwxrwxr-x 9 user user 12288 Feb 23 12:11 programs
drwxr-xr-x 2 user user  4096 Dec 13  2012 Public
-rw-r--r-- 1 user user  3693 Sep 19  2014 realtime-udp-echo.cc
-rw-rw-r-- 1 user user    16 Jan  5  2013 rgbhead~
-rw-rw-r-- 1 user user   946 Sep 19  2014 scratch-simulator.cc
-rw-rw-r-- 1 user user  4248 Mar 19  2014 sks.c~
-rw-rw-r-- 1 user user  1824 Mar 10  2014 sks.ns~
drwxr-xr-x 2 user user  4096 Dec 13  2012 Templates
-rw-rw-r-- 1 user user   626 Oct 10 10:23 texput.log
drwxrwxr-x 5 user user  4096 Mar 21 17:34 TraceMetrics
-rw-r--r-- 1 user user  3533 Sep 19  2014 udp-client-server.cc
-rw-r--r-- 1 user user  4434 Sep 19  2014 udp-echo.cc
-rw-r--r-- 1 user user  3359 Sep 19  2014 udp-trace-client-server.cc
drwxr-xr-x 2 user user  4096 Dec 13  2012 Videos
-rw-r--r-- 1 user user  8401 Sep 19  2014 wifi-example-apps.cc

user@user-OptiPlex-390:~$ pwd
/home/user

user@user-OptiPlex-390:~$ java -version
java version "1.6.0_33"
OpenJDK Runtime Environment (IcedTea6 1.13.5) (6b33-1.13.5-1ubuntu0.12.04)
OpenJDK Server VM (build 23.25-b01, mixed mode)

user@user-OptiPlex-390:~$ java -jar tracemetrics.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: analyzer/gui/SplashScreen : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: analyzer.gui.SplashScreen. Program will exit.


Is there any way to get a graph/plot from the trace files. Please suggest me a way. Thank you


Regards
Subha Kanta Swain 
Ph.D Scholar,
Image & Video Analysis Laboratory,
Department of Electronics & Communication Engineering,
Institute of Technical Education & Research,
Siksha 'O' Anusandhan University,
Bhubaneswar,
Odisha-751030,
India.
Mob (personal) : +91 9439857937
Email: subhakan...@gmail.com


--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/WOVR1VJwXAk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Apr 7, 2015, 3:23:03 AM4/7/15
to ns-3-...@googlegroups.com
I tend to apologize in advance when I know the results of my actions.

And, if that's not enough,

http://stackoverflow.com/questions/11239086/java-lang-unsupportedclassversionerror-unsupported-major-minor-version-51-0

No further comment is necessary.

UPGRADE YOUR JAVA.

T.

Subha Kanta Swain

unread,
Apr 11, 2015, 10:12:49 AM4/11/15
to ns-3-users
Thank you Konstantinos and Tommaso, atlast i have updated the oracle java to version 7 and now the tracemetrics is opened according to your command. Now everything is ok, if there is any problem in tracemetrics, then i will ask for your help. Thank you again.

Regards
Subha Kanta Swain 
Ph.D Scholar,
Image & Video Analysis Laboratory,
Department of Electronics & Communication Engineering,
Institute of Technical Education & Research,
Siksha 'O' Anusandhan University,
Bhubaneswar,
Odisha-751030,
India.
Mob (personal) : +91 9439857937
Email: subhakan...@gmail.com


Reply all
Reply to author
Forward
0 new messages