JavaSystemPropertiesPlugin#

This plugin dumps the Java System Properties onto the WikiPage, all nicely formatted in a zebra-table.
I did this plugin for a combination of excersise and for luring some info out of my Wiki about it's environment for debugging purposes.
Usage:
  • Simply put this on your page:
[{dk.mikkle.jspwikiplugins.JavaSystemPropertiesPlugin}]
That should give you something that looks a bit like this:
Java System Properties:
java.runtime.nameJava(TM) SE Runtime Environment
java.protocol.handler.pkgsorg.apache.catalina.webresources
sun.boot.library.path/usr/local/jdk1.8.0_152/jre/lib/amd64
java.vm.version25.152-b16
shared.loader
java.vm.vendorOracle Corporation
java.vendor.urlhttp://java.oracle.com/
path.separator:
java.vm.nameJava HotSpot(TM) 64-Bit Server VM
tomcat.util.buf.StringCache.byte.enabledtrue
file.encoding.pkgsun.io
java.util.logging.config.file/usr/local/tomcat8/conf/logging.properties
user.countryUS
sun.java.launcherSUN_STANDARD
sun.os.patch.levelunknown
tomcat.util.scan.StandardJarScanFilter.jarsToScanlog4j-web*.jar,log4j-taglib*.jar,log4javascript*.jar,slf4j-taglib*.jar
java.vm.specification.nameJava Virtual Machine Specification
user.dir/
java.runtime.version1.8.0_152-b16
java.awt.graphicsenvsun.awt.X11GraphicsEnvironment
java.endorsed.dirs/usr/local/jdk1.8.0_152/jre/lib/endorsed
os.archamd64
java.io.tmpdir/usr/local/tomcat8/temp
line.separator
java.vm.specification.vendorOracle Corporation
java.util.logging.managerorg.apache.juli.ClassLoaderLogManager
java.naming.factory.url.pkgsorg.apache.naming
os.nameLinux
sun.jnu.encodingUTF-8
java.library.path/usr/local/lib
java.specification.nameJava Platform API Specification
java.class.version52.0
sun.management.compilerHotSpot 64-Bit Tiered Compilers
os.version4.4.0-104-generic
java.util.concurrent.ForkJoinPool.common.threadFactoryorg.apache.catalina.startup.SafeForkJoinWorkerThreadFactory
user.home/var/www
user.timezoneEurope/Copenhagen
catalina.useNamingtrue
java.awt.printerjobsun.print.PSPrinterJob
java.specification.version1.8
file.encodingUTF-8
tomcat.util.scan.StandardJarScanFilter.jarsToSkipbootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,jaspic-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-storeconfig.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-util-scan.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-websocket.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,taglibs-standard-spec-*.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,hamcrest-*.jar,easymock-*.jar,cglib-*.jar,objenesis-*.jar,ant-launcher.jar,cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,xom-*.jar
catalina.home/usr/local/apache-tomcat-8.5.23
user.namewww-data
java.class.path/usr/local/tomcat8/bin/bootstrap.jar:/usr/local/tomcat8/bin/tomcat-juli.jar
java.naming.factory.initialorg.apache.naming.java.javaURLContextFactory
package.definitionsun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
java.vm.specification.version1.8
sun.arch.data.model64
java.home/usr/local/jdk1.8.0_152/jre
sun.java.commandorg.apache.catalina.startup.Bootstrap start
java.specification.vendorOracle Corporation
user.languageen
awt.toolkitsun.awt.X11.XToolkit
java.vm.infomixed mode
java.version1.8.0_152
java.ext.dirs/usr/local/jdk1.8.0_152/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path/usr/local/jdk1.8.0_152/jre/lib/resources.jar:/usr/local/jdk1.8.0_152/jre/lib/rt.jar:/usr/local/jdk1.8.0_152/jre/lib/sunrsasign.jar:/usr/local/jdk1.8.0_152/jre/lib/jsse.jar:/usr/local/jdk1.8.0_152/jre/lib/jce.jar:/usr/local/jdk1.8.0_152/jre/lib/charsets.jar:/usr/local/jdk1.8.0_152/jre/lib/jfr.jar:/usr/local/jdk1.8.0_152/jre/classes
java.vendorOracle Corporation
java.awt.headlesstrue
server.loader
catalina.base/usr/local/apache-tomcat-8.5.23
jdk.tls.ephemeralDHKeySize2048
file.separator/
java.security.egdfile:/dev/./urandom
java.vendor.url.bughttp://bugreport.sun.com/bugreport/
common.loader"${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
sun.cpu.endianlittle
sun.io.unicode.encodingUnicodeLittle
package.accesssun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.tomcat.
sun.cpu.isalist
You might want to add an ACL to the page with the plugin. Maybe, just maybe, you don't want all and sundry to get a look at your system's properties... Me? - I don't really care! ;-)
An ACL allowing only members of the Admin Group to view the page could be something like:
[{ALLOW view Admin}]

:O) Mikkle


This plugin now generates XHTML 1.0 Transitional compliant output.
Users should download and install the latest version of JSPWikiPlugins/MikkleJSPWikiPlugins.jar(info)

--Mikkel Troest, 05-jun-2006

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-6) was last changed on 13-Feb-2007 14:43 by Mikkle