Re: Do Java CLI commands work on Windows?



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

.



Relevant Pages

  • Re: Do Java CLI commands work on Windows?
    ... but lately I have been experimenting with the "Command Prompt" on ... I am under the impression -which I would obviously like to ... CLASSPATH will be ignored here. ... My Linux server is running and ancient, non-Sun version of Java, hence ...
    (comp.lang.java.programmer)
  • Re: Visual Studio 2005
    ... Maybe the command prompt compiler is set to include the full C# 2.0 ... that the Java command line compiler is set ... In the command prompt and in the Java IDEs I have used, ... In the top of a file, you are declaring which namespaces to use. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Get error message from Command prompt
    ... I am currently trying to develop a java applicatio that will enable me ... the command prompt code in order to perform the shutdown. ... When I run this code in the command prompt and the computer cannot be ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.help)
  • Re: cant play knights online
    ... Open a command prompt and type "java -version". ... doesn't recognize the command you may have to download a Java interpreter ... cos of viruses, since then ive tried to download it again from gamespot and ...
    (microsoft.public.windowsxp.games)
  • Re: Simple JavaScript IDE
    ... Rhino's current Java binaries are located at: ... Unzip them into the folder of your choice, open a command prompt, cd ... Building SpiderMonkey under Cygwin is kind of a pain; ... Mozilla team built the Windows install assuming a Visual Studio ...
    (comp.lang.javascript)