For scripting or debugging it is sometimes useful to be able to launch WebStart from the command line, rather than from a web browser. “Launching Java WebStart from the Command Line” describes several options for doing this, along with examples for OSX, Linux, and Windows.
Category Archives: Basics
Generating a Stack Trace with jdb
Every once in a while I run into a situation where the usual means for generating a thread dump does not work, making it difficult to track down pesky deadlocks. Rather than actually figuring out why that happens, here are some notes on using jdb to generate a stack trace: JDB Example: Generating a Thread …
Testing Strings for Equality
Strings are Objects in Java, but the ability to use literals, along with the String concatenation operator, make them somewhat similar to primitive types. Java also automatically “interns” String literals, meaning that a single String object will be created for a literal that is used multiple times. “String Equality and Interning” describes the effect of …
DateFormat/SimpleDateFormat Examples
Java’s DateFormat and SimpleDateFormat classes, introduced in Java 1.1, provide a simple way to parse and format dates. “DateFormat and SimpleDateFormat Examples” gives a basic overview of these classes.