R
Ramon F Herrera
I always do most of my development inside an IDE (Eclipse or NetBeans)
but lately I have been experimenting with the "Command Prompt" on
WinXP. I am under the impression -which I would obviously like to
corroborate- that commands such these don't work at all:
C:\> set CLASSPATH=C:\somedir\mylib.jar
C:\> java -jar myprogram.jar
or
C:\> java -classpath C:\somedir\mylib.jar -jar myprogram.jar
Should this one work at all?
C:\> java -DMain-Class=playground.Salutations -jar helloworld.jar
I have had very little success settings things up from the command
line, but all my tests run well when I place things (Main-Class and
Class-Path) in the Manifest.
How is the verbose mode used? Is there any way to obtain essential
info such as the Main Class and the classpath?
TIA,
-Ramon
but lately I have been experimenting with the "Command Prompt" on
WinXP. I am under the impression -which I would obviously like to
corroborate- that commands such these don't work at all:
C:\> set CLASSPATH=C:\somedir\mylib.jar
C:\> java -jar myprogram.jar
or
C:\> java -classpath C:\somedir\mylib.jar -jar myprogram.jar
Should this one work at all?
C:\> java -DMain-Class=playground.Salutations -jar helloworld.jar
I have had very little success settings things up from the command
line, but all my tests run well when I place things (Main-Class and
Class-Path) in the Manifest.
How is the verbose mode used? Is there any way to obtain essential
info such as the Main Class and the classpath?
TIA,
-Ramon