Re: Do Java CLI commands work on Windows?
- From: Ramon F Herrera <ramon@xxxxxxxxxxx>
- Date: Sun, 9 Dec 2007 15:09:59 -0800 (PST)
On Dec 9, 7:02 pm, Ramon F Herrera <ra...@xxxxxxxxxxx> wrote:
On Dec 9, 6:52 pm, Lew <l...@xxxxxxxxxxxxx> wrote:
Ramon F Herrera wrote:
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
CLASSPATH will be ignored here.
My Linux server is running and ancient, non-Sun version of Java, hence
my follow up question:
Will the above work under Un*x?
-Ramon
ps: this is what Wikipedia says:
"Setting the path through an environment variable.
The Environment variable named CLASSPATH may be alternatively used to
set the Classpath. For the above example, we could also use on
Windows :
set CLASSPATH=D:\myprogram
java org.mypackage.HelloWorld"
http://en.wikipedia.org/wiki/Classpath
Now that I have read the 'man' page (RTFMP!) I guess my question is
answered.
I guess the designers are so eager to improve the loading time that
they don't bother doing much error checking. For instance, the
Manifest can be syntactically bad, and the user will not be told...
-Ramon
.
- References:
- Do Java CLI commands work on Windows?
- From: Ramon F Herrera
- Re: Do Java CLI commands work on Windows?
- From: Lew
- Re: Do Java CLI commands work on Windows?
- From: Ramon F Herrera
- Do Java CLI commands work on Windows?
- Prev by Date: Re: abstract method with arbitrary input variables?
- Next by Date: Re: Do Java CLI commands work on Windows?
- Previous by thread: Re: Do Java CLI commands work on Windows?
- Next by thread: Re: Do Java CLI commands work on Windows?
- Index(es):
Relevant Pages
|