Running JavaInfo From The Command Line

Print E-mail

If your Java environment lacks a GUI, then the JavaInfo application can be started with the -headless parameter. While in this mode, the application can be controlled with simple command line interaction (question and answer system). If the application is started with the -stdout option, it then prints the system properties to the standard output channel (stdout). This output can be piped into a local file on most platforms which can then be uploaded with our web form (see below).

Usage: javainfo [-options]

Supported options include:

  -headless           use command line interface instead of GUI
  -help | -?          print this help message and exit
  -locale             user language (en|de)
  -stdout             write system properties to stdout
  -version            print product version and exit

Copyright (c) 2005-2011 Leisenfels. All rights reserved.
 

The following list shows some possible ways to execute the JavaInfo application which is different for older Java versions like the JRE 1.1. The target XML file is props.xml but you can use arbitrary file names as long as they are supported by your operating system. Piping stdout to a local file may be different depending on your operating system. The examples should work for Windows/MS DOS and most Linux/UNIX boxes.

Java 1.6java -jar javainfo.jar -stdout > props.xml

Java 1.1jre -cp javainfo.jar com.lf.commons.cli.JavaInfo -stdout > props.xml