RestComm / jss7

RestComm Java SS7 Stack and Services
http://www.restcomm.com/
GNU Affero General Public License v3.0
190 stars 223 forks source link

Error: Could not create the Java Virtual Machine. #317

Open greencorsairs opened 4 years ago

greencorsairs commented 4 years ago

green@green-VirtualBox:~/Desktop/restcomm-jss7-${jSS7.release.version}/ss7/restcomm-ss7-simulator/bin$ sudo ./run.sh attack_simulator help

SS7 Simulator Bootstrap Environment SIMULATOR_HOME: /home/green/Desktop/restcomm-jss7-${jSS7.release.version}/ss7/restcomm-ss7-simulator JAVA: java JAVA_OPTS: -Dprogram.name=run.sh -Djava.net.preferIPv4Stack=true -Xms256m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 CLASSPATH: /home/green/Desktop/restcomm-jss7-${jSS7.release.version}/ss7/restcomm-ss7-simulator/bin/run.jar

-Djava.ext.dirs=/home/green/Desktop/restcomm-jss7-${jSS7.release.version}/ss7/restcomm-ss7-simulator/lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

caiocf commented 4 years ago

The classpath "-Djava.ext.dirs" is wrong! Rename o path your installation and remove character spacial and check is correct.

For example: From: -Djava.ext.dirs=/home/green/Desktop/restcomm-jss7-${jSS7.release.version}/ss7/restcomm-ss7-simulator/lib

To: -Djava.ext.dirs=/home/green/Desktop/restcomm-jss7-8.0.0/ss7/restcomm-ss7-simulator/lib