jmx - Java jmxremote not opening port -


i've made hello world java program test how jmxremote works:

public class main {     public static void main(string argv[]) {         try {             system.out.println("press  continue...");             system.in.read();         } catch (exception e) {             e.printstacktrace();         }     } } 

compiled javac main.java, , run like

java -dcom.sun.management.jmxremote \ -dcom.sun.management.jmxremote.port=9010 \ -dcom.sun.management.jmxremote.local.only=false \ -dcom.sun.management.jmxremote.authenticate=false \ -dcom.sun.management.jmxremote.ssl=false \ main

however port never gets opened:

# telnet localhost 9010 trying ::1... telnet: connect address ::1: connection refused 

(nc -l , netstat show same results). java version is

java version "1.5.0" gij (gnu libgcj) version 4.4.7 20120313 (red hat 4.4.7-4) 

and os centos 6.5 (java installed default repo yum).

how fix this?

i've tried messing option names, never got info error - jmx available in java 1.5?

like peoples say, libgcj not idea. poor try gnu peoples fork gpl licensed jvm compile java code machine code, not byte code. it's dead project never supported jmx.

a yum install java-1.7.0-openjdk-devel provide need.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -