How to run moa.jar

850 views
Skip to first unread message

Thyrix Yang

unread,
Apr 30, 2017, 12:05:31 AM4/30/17
to MOA users
I'm trying to run moa on ubuntu 16.04

when I run:
java -cp moa.jar -javaagent:sizeofag.jar moa.gui.GUI

It shows:
Error opening zip file or JAR manifest missing : sizeofag.jar
Error occurred during initialization of VM
agent library failed to init: instrument

How to fix it? Thanks!

Albert Bifet

unread,
Apr 30, 2017, 12:14:49 PM4/30/17
to MOA users
You need to have sizeofag.jar in your folder.

Cheers, Albert
> --
> You received this message because you are subscribed to the Google Groups
> "MOA users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to moa-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Thyrix Yang

unread,
Apr 30, 2017, 12:27:33 PM4/30/17
to MOA users, abi...@cs.waikato.ac.nz
I downloaded sizeofag.jar from http://www.java2s.com/Code/Jar/s/Downloadsizeofag100jar.html, placed it in moa's root folder.
And run java -cp moa.jar -javaagent:sizeofag.jar moa.gui.GUI
Then I encountered this:
```
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe4a9a11009, pid=6905, tid=6933
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/thyrix/Downloads/moa/moa-release-2016.04/core.6905)
#
# An error report file with more information is saved as:
# /home/thyrix/Downloads/moa/moa-release-2016.04/hs_err_pid6905.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Aborted (core dumped)
```
Thank you.

Albert Bifet

unread,
Apr 30, 2017, 12:52:17 PM4/30/17
to MOA users
Use bin/moa.bat or bin/moa.sh to run moa.

Cheers, Albert

Thyrix Yang

unread,
Apr 30, 2017, 12:57:07 PM4/30/17
to MOA users, abi...@cs.waikato.ac.nz
same error:
thyrix@y400:~/Downloads/moa/moa-release-2016.04/bin$ bash moa.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fba5d762009, pid=7548, tid=7576
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/thyrix/Downloads/moa/moa-release-2016.04/bin/core.7548)
#
# An error report file with more information is saved as:
# /home/thyrix/Downloads/moa/moa-release-2016.04/bin/hs_err_pid7548.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
moa.sh: line 4:  7548 Aborted                 (core dumped) java -Xmx$MEMORY -cp "../lib/*" -javaagent:../lib/sizeofag-1.0.0.jar moa.gui.GUI

Albert Bifet

unread,
Apr 30, 2017, 1:02:11 PM4/30/17
to MOA users
Try "java -jar moa.jar"

Cheers, Albert

Thyrix Yang

unread,
Apr 30, 2017, 1:05:40 PM4/30/17
to moa-...@googlegroups.com
Thank you for your patience.

This is the first command I have tried, which led to:


thyrix@y400:~/Downloads/moa/moa-release-2016.04$ java -jar moa.jar
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9bbe452009, pid=7866, tid=7894
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/thyrix/Downloads/moa/moa-release-2016.04/core.7866)
#
# An error report file with more information is saved as:
# /home/thyrix/Downloads/moa/moa-release-2016.04/hs_err_pid7866.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "MOA users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moa-users/qGQcxb4NSl0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moa-users+unsubscribe@googlegroups.com.

Albert Bifet

unread,
Apr 30, 2017, 1:08:45 PM4/30/17
to MOA users
Then the problem may be with the Java Virtual Machine. Can you try
with Java 8 or 7?

Cheers, Albert
>> You received this message because you are subscribed to a topic in the
>> Google Groups "MOA users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/moa-users/qGQcxb4NSl0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

Thyrix Yang

unread,
Apr 30, 2017, 1:20:42 PM4/30/17
to moa-...@googlegroups.com
Yes, change to openjdk-8 solved this issue.
Thank you!!


>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "MOA users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/moa-users/qGQcxb4NSl0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "MOA users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "MOA users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moa-users/qGQcxb4NSl0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moa-users+unsubscribe@googlegroups.com.

peaceful...@gmail.com

unread,
May 8, 2017, 9:51:36 AM5/8/17
to MOA users
If you are using MOA 2016 version then in that sizeofag.jar file is named as sizeofag-1.0.0.jar. so that that name which is in your MOA version.

Frank Santos

unread,
Jun 18, 2017, 11:11:12 PM6/18/17
to MOA users

Alguém sabe sobre SAMOA? Um erro no SAMOA-STORME.
Reply all
Reply to author
Forward
0 new messages