Java
Table of ContentsOverview
Articles of Note
Running External Commands
- Running external system commands in Java applications
- How to run a command-line OR execute a system command
- How to run command-line or execute external application from Java
- How to run external system commands in Java
- Execute an external program
- Execute an external program - Real's Java How-to
- When Runtime.exec() won't - Java World
- Trouble with Runtime.getRuntime().exec(cmd) on Linux - Java
- Runtime.getRuntime().exec (Linux / UNIX forum at JavaRanch)
- Java's Runtime.exec() and External Applications
Example Code
- SysCommandExecutor.zip is supplied for your use. 99% of the code is from the How to run a command-line OR execute a system command article.
- Thie code is incomplete but functional. It does no OS checking, nor does it validate parameters.
- usage : java SysCommandExecutor notepad.exe will launch Windows notepad.
- usage : java SysCommandExecutor "cmd /c \"Software list.xlsx\"" will launch the windows command interpreter telling it to carry out command string "Software list.xlsx".
- In this case, "Software list.xlsx" is an excel file.
- Windows file type recognition automatically kicks in and launched excel to render the file.
- Note the \" escape sequence is needed to surround file names with embedded spaces.
Garbage Collection
Tools
IDE's
Windows Specific
IBM alphaWorks
- Thread and Monitor Dump Analyzer for Java
- HeapAnalyzer
- Pattern Modeling and Analysis Tool for Java Garbage Collector
- Performance Analysis Tool for Java
- Processor Time Analysis Tool for Linux
IBM developerWorks
- IBM Monitoring and Diagnostic Tools for Java - Health Center Version 1.0
- The IBM Monitoring and Diagnostic Tools for Java - Health Center is a low-overhead diagnostic tool for monitoring a running IBM Java Virtual Machine.
on 2009/07/27 23:11