Environment and tools HowTo
General
Read environment variables from an application
Read environment variables (JDK1.5)
Read environment variables (JNI)
Use a MAKE file
Detect the browser/JVM type
Fix the "Wrong magic number" error message
Use a precompiler "à la C" with Java
Determine what are the classes actually used
Set the memory available to the JVM
Generate the Javadoc "en français"
Use JDK1.5 new features
Check the class version
Get the system properties or the JVM uptime
Detect if running in a 64bit JVM
Set the default JVM type
Select a particular JRE from the command line
Get the PID (pure Java solution)
Get the PID (JNI solution)
Set default value for Java property or JVM option (system wide)
Microsoft Windows
Capture the output of JAVAC
Freeze the JVIEW window in MS VJ++
Wrap a Java bean in a COM object (using Sun ActiveX bridge)
Know details about the JAVA run-time environment
Detect the Microsoft JVM version installed
Run Java as a Windows service
Execute a class from Windows Explorer
Create an icon to launch java apps for Windows
Fix "out of environment" error with long CLASSPATH
Query the Windows Registry
Query/Update the Windows Registry
Quickly retrieve available Java JVM on a workstation (Windows)
Detect if a Windows service is running (capture VBS return code)
List currently running processes (Windows)
Check if a program or process is running (Windows)
Windows registry vs Java JDK/JRE installation
Get the current Java version from a BAT file
Get the Windows "My Documents" path
Get the Windows Desktop path
Get the Windows Special Folders
Create an Internet Shortcut
Detect if running in remote session (Windows)
Get the running JVM Path (Windows)
Javadoc
Create a Taglet to document database access (Javadoc)
Generate the Javadoc "en français"
Document a package using Javadoc
Display a comment in a Javadoc
Display XML in a Javadoc
Add a copyright notice to a Javadoc
Log
Use a Log file
Trace the execution
Time the execution
Log information efficiently (with Log4J)
Change the logging level on-the-fly (Log4J)
Enable debug log level on OpenSource package(Apache Commons Logging)
ZIP, JAR, CAB
Use a JAR/ZIP/CAB file
Make ZIP/JAR file always accessible from applet
Make a JAR executable
Application with multiples Jars
Access JAR outside the CLASSPATH
Extract a file from a Jar
Determine if running from JAR
Get list of classes in package (in a Jar)
Add version to Jar packaging
Use ANT to Build a JAR with version/build number
Include all jars in the classpath definition
Browser
Detect the browser/JVM type
Detect if Java is enabled from HTML
See the Java Console Window Log (Java plugin)
Environment and tools HowTo
If you find this article useful, consider making a small donation
to show your support for this Web site and its content.
Written and compiled by Réal Gagnon ©1998-2010
[
home
]