JDJ 2004 Best Foreward? Spring 1.1.1 Released
Sep 30

Evil Java Command Line Options

Tech Add comments

I had to laugh when I read about the new openGL command line option.

There are two different options: true and True. As in:

To silently enable the OpenGL-based pipeline, specify the
following system property on the command line:

-Dsun.java2d.opengl=true

To receive verbose console output about whether the OpenGL-based pipeline is
initialized successfully for a particular screen, specify “True” (note the
uppercase T) :

-Dsun.java2d.opengl=True

In fact, I have always been a little bothered with the command line options that we get with Java commands.

I am from the GNU school that says:

There are short hand options, and long hand options.

Short hand options use one – sign. Long hand options use two –.

I don’t know HOW many times I type:

% java –version
% java -v

before I get to the correct

% java -version

I would have much prefered to have -cp and –classpath for example. I wish they followed that convention. I also want java –help to show me all of the possible options (including X options for a particular JVM?)

Oh well. Maybe it is just me!

3 Responses to “Evil Java Command Line Options”

  1. Agile Blog Says:

    Test

    Strickly a test…

  2. Anonymous Says:

    No! It’s not just you. Count me too

  3. foo Says:

    and me!

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'