سؤال

Firstly,write sample code named JMXSample.java which use MBean server; Actuarlly, i use the example code in Oracle online docs(Listing 4-2) http://docs.oracle.com/cd/E11035_01/wls100/jmx/accessWLS.html Secondly,create wlfullclient.jar and copy it to classpath; Then run command,and problem comes:

javac -cp . JMXSample.java
java -cp . JMXSample

error code: Exception in thread "main" java.net.MalformedURLException: Unsupported protocol: t3

Please somebody tell me how to solve it,thanks.

هل كانت مفيدة؟

المحلول

Case i set the $CLASSPATH value, and Linux use “:” to separated the path; So the command come to this:

java -cp .:./wlfullclient.jar JMXSample
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top