RE: A little offbeat question

2004-09-17 Thread Shapira, Yoav

Hi,
You know, I haven't run a command-line javac in a couple of years, I
think.  Ant is such a wonderful tool ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 12:24 AM
To: [EMAIL PROTECTED]
Subject: Re: A little offbeat question


I wish they would clarify that, to, Don't set CLASSPATH yourself. Let
the applications or frameworks do that. I think that would be less
confusing.

As I understand it, this simply means that if you are going to execute
a
Java app, you should set the classpath right before executing the app
(on
the command line really).  Likewise, when you compile, construct the
classpath on the command line of javac.  Or, when running Tomcat or
something like that, let it's startup scripts create the classpath.

At least in Windows, all those situations would result in a local
classpath, i.e., if you have three command prompt windows open, one to
do
compiles, one to execute apps directly and one to run Tomcat in, all
three
can basically set up their own classpath, completely independent of one
another.  I think this is what that statement is talking about.

Frank

_
Express yourself instantly with MSN Messenger! Download today - it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
One more thing, tomcat was running fine.

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:01 AM
To: [EMAIL PROTECTED]
Subject: A little offbeat question

I tried to run a program I thought would but it doesn't.

This is on a windows XP platform.

Everything compiled well but I get this error:

Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class

 

So I went back and tried a no brainer 'HelloWorld'  This is the code.

/**

 * The HelloWorld class implements an application that

 * displays Hello World! to the standard output.

 */

public class HelloWorld {

public static void main(String[] args) {

// Display Hello World!

System.out.println(Hello World!);

}

}

 

It compiles but I get the same error.

I check my environment variables and mine are

JAVA_HOME c:\j2sdk1.4.2_03

PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

 

Any ideas?

 

Thanks in advance




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A little offbeat question

2004-09-16 Thread Meena Alagappan

Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message - 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

RE: A little offbeat question

2004-09-16 Thread Aris Javier
Define your classpath... 
Your classpath should include  c:\j2sdk1.4.2_03

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 3:03 PM
To: 'Tomcat Users List'
Subject: RE: A little offbeat question

One more thing, tomcat was running fine.

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 12:01 AM
To: [EMAIL PROTECTED]
Subject: A little offbeat question

I tried to run a program I thought would but it doesn't.

This is on a windows XP platform.

Everything compiled well but I get this error:

Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class

 

So I went back and tried a no brainer 'HelloWorld'  This is the code.

/**

 * The HelloWorld class implements an application that

 * displays Hello World! to the standard output.

 */

public class HelloWorld {

public static void main(String[] args) {

// Display Hello World!

System.out.println(Hello World!);

}

}

 

It compiles but I get the same error.

I check my environment variables and mine are

JAVA_HOME c:\j2sdk1.4.2_03

PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\sys
tem3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

 

Any ideas?

 

Thanks in advance




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread Bedrijven.nl
JAVA_HOME c:\j2sdk1.4.2_03..don'nt you need a jdk? Seems it's a classpath
problem

-Oorspronkelijk bericht-
Van: Meena Alagappan [mailto:[EMAIL PROTECTED]
Verzonden: Thursday, September 16, 2004 8:13 AM
Aan: Tomcat Users List
Onderwerp: Re: A little offbeat question



Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message -
  From: John Najarian
  To: 'Tomcat Users List'
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class



  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }



  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\syste
m3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM



  Any ideas?



  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
I wasn't trying to do anything with tomcat.

Just writing a standalone app.  But now even
the dumb HelloWorld 1 doesn't work on the command line.

-Original Message-
From: Meena Alagappan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:13 AM
To: Tomcat Users List
Subject: Re: A little offbeat question


Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message - 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
 
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
I'll check that but I'm sure it is in there.
Just earlier today it was working

-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:18 AM
To: Tomcat Users List
Subject: RE: A little offbeat question

Define your classpath... 
Your classpath should include  c:\j2sdk1.4.2_03

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 3:03 PM
To: 'Tomcat Users List'
Subject: RE: A little offbeat question

One more thing, tomcat was running fine.

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 12:01 AM
To: [EMAIL PROTECTED]
Subject: A little offbeat question

I tried to run a program I thought would but it doesn't.

This is on a windows XP platform.

Everything compiled well but I get this error:

Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class

 

So I went back and tried a no brainer 'HelloWorld'  This is the code.

/**

 * The HelloWorld class implements an application that

 * displays Hello World! to the standard output.

 */

public class HelloWorld {

public static void main(String[] args) {

// Display Hello World!

System.out.println(Hello World!);

}

}

 

It compiles but I get the same error.

I check my environment variables and mine are

JAVA_HOME c:\j2sdk1.4.2_03

PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\sys
tem3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

 

Any ideas?

 

Thanks in advance




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A little offbeat question

2004-09-16 Thread Meena Alagappan
Ok if it is standalone.
then 
set your classpath to -
where your HelloWorld.class resides.
And then try it out.



Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message - 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:46 PM
  Subject: RE: A little offbeat question


  I'll check that but I'm sure it is in there.
  Just earlier today it was working

  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 12:18 AM
  To: Tomcat Users List
  Subject: RE: A little offbeat question

  Define your classpath... 
  Your classpath should include  c:\j2sdk1.4.2_03

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 3:03 PM
  To: 'Tomcat Users List'
  Subject: RE: A little offbeat question

  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError:
  HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\sys
  tem3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Re: A little offbeat question

2004-09-16 Thread martin

Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
:-)

Regards,
Martin

John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:00:52:
 I tried to run a program I thought would but it doesn't.
 
 This is on a windows XP platform.
 
 Everything compiled well but I get this error:
 
 Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class
 
  
 
 So I went back and tried a no brainer 'HelloWorld'  This is the code.
 
 /**
 
  * The HelloWorld class implements an application that
 
  * displays Hello World! to the standard output.
 
  */
 
 public class HelloWorld {
 
 public static void main(String[] args) {
 
 // Display Hello World!
 
 System.out.println(Hello World!);
 
 }
 
 }
 
  
 
 It compiles but I get the same error.
 
 I check my environment variables and mine are
 
 JAVA_HOME c:\j2sdk1.4.2_03
 
 PATH
 C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
 2;%SystemRoot%;%SystemRoot%\system32\WBEM
 
  
 
 Any ideas?
 
  
 
 Thanks in advance
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
That is the jdk from sun.  Go to
http://java.sun.com/j2se/1.4.2/download.html

Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)

-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:18 AM
To: 'Tomcat Users List'
Subject: RE: A little offbeat question

JAVA_HOME c:\j2sdk1.4.2_03..don'nt you need a jdk? Seems it's a classpath
problem

-Oorspronkelijk bericht-
Van: Meena Alagappan [mailto:[EMAIL PROTECTED]
Verzonden: Thursday, September 16, 2004 8:13 AM
Aan: Tomcat Users List
Onderwerp: Re: A little offbeat question



Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message -
  From: John Najarian
  To: 'Tomcat Users List'
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class



  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }



  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\syste
m3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM



  Any ideas?



  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
You shouldn't have to add that to the classpath if you run it
From the directory it's in but I'll try it.

-Original Message-
From: Meena Alagappan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:25 AM
To: Tomcat Users List
Subject: Re: A little offbeat question

Ok if it is standalone.
then 
set your classpath to -
where your HelloWorld.class resides.
And then try it out.



Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message - 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:46 PM
  Subject: RE: A little offbeat question


  I'll check that but I'm sure it is in there.
  Just earlier today it was working

  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 12:18 AM
  To: Tomcat Users List
  Subject: RE: A little offbeat question

  Define your classpath... 
  Your classpath should include  c:\j2sdk1.4.2_03

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 3:03 PM
  To: 'Tomcat Users List'
  Subject: RE: A little offbeat question

  One more thing, tomcat was running fine.

  -Original Message-
  From: John Najarian [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: [EMAIL PROTECTED]
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread main java.lang.NoClassDefFoundError:
  HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays Hello World! to the standard output.

   */

  public class HelloWorld {

  public static void main(String[] args) {

  // Display Hello World!

  System.out.println(Hello World!);

  }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\sys
  tem3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A little offbeat question

2004-09-16 Thread John Najarian
That's what I did.  When I was first learning Java that 1 bit me.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:24 AM
To: Tomcat Users List
Subject: Re: A little offbeat question


Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
:-)

Regards,
Martin

John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:00:52:
 I tried to run a program I thought would but it doesn't.
 
 This is on a windows XP platform.
 
 Everything compiled well but I get this error:
 
 Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class
 
  
 
 So I went back and tried a no brainer 'HelloWorld'  This is the code.
 
 /**
 
  * The HelloWorld class implements an application that
 
  * displays Hello World! to the standard output.
 
  */
 
 public class HelloWorld {
 
 public static void main(String[] args) {
 
 // Display Hello World!
 
 System.out.println(Hello World!);
 
 }
 
 }
 
  
 
 It compiles but I get the same error.
 
 I check my environment variables and mine are
 
 JAVA_HOME c:\j2sdk1.4.2_03
 
 PATH

C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
 2;%SystemRoot%;%SystemRoot%\system32\WBEM
 
  
 
 Any ideas?
 
  
 
 Thanks in advance
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: A little offbeat question

2004-09-16 Thread martin

But the exception says NoClassDefFoundError: HelloWorld/class. So
where does the /class come from?? In any case don't bother with
classpath environment, but (with the class in your current directory)
simply run 'java -cp . HelloWorld'. Would really surprise me if it
didn't work.

John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:32:18:
 That's what I did.  When I was first learning Java that 1 bit me.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 16, 2004 12:24 AM
 To: Tomcat Users List
 Subject: Re: A little offbeat question
 
 
 Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
 :-)
 
 Regards,
 Martin
 
 John Najarian  schrieb am 16.09.2004,
 09:00:52:
  I tried to run a program I thought would but it doesn't.
  
  This is on a windows XP platform.
  
  Everything compiled well but I get this error:
  
  Exception in thread main java.lang.NoClassDefFoundError:
 HelloWorld/class
  
   
  
  So I went back and tried a no brainer 'HelloWorld'  This is the code.
  
  /**
  
   * The HelloWorld class implements an application that
  
   * displays Hello World! to the standard output.
  
   */
  
  public class HelloWorld {
  
  public static void main(String[] args) {
  
  // Display Hello World!
  
  System.out.println(Hello World!);
  
  }
  
  }
  
   
  
  It compiles but I get the same error.
  
  I check my environment variables and mine are
  
  JAVA_HOME c:\j2sdk1.4.2_03
  
  PATH
 
 C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM
  
   
  
  Any ideas?
  
   
  
  Thanks in advance
 -- 
 Martin Schaefer
 NAXOS Software Solutions GmbH i.G.
 Herrenstr. 1
 69502 Hemsbach
 Germany
  
 Phone:+49 (0) 6201 49298-2
 Mobile: +49 (0) 172 6269246
 Fax: +49 (0) 6201 49298-1
 Mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE: A little offbeat question

2004-09-16 Thread John Najarian
Thanks, the '-cp .' did it.  Something is definitely hosed up.
I haven't installed anything so I'm thinking it may be a virus
although I have scanned my PC with newest definitions.

I'm still going to look at the CLASSPATH env var.  Maybe I should
add '.' to the CLASSPATH variable.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:40 AM
To: Tomcat Users List
Subject: Re: RE: A little offbeat question


But the exception says NoClassDefFoundError: HelloWorld/class. So
where does the /class come from?? In any case don't bother with
classpath environment, but (with the class in your current directory)
simply run 'java -cp . HelloWorld'. Would really surprise me if it
didn't work.

John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:32:18:
 That's what I did.  When I was first learning Java that 1 bit me.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 16, 2004 12:24 AM
 To: Tomcat Users List
 Subject: Re: A little offbeat question
 
 
 Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
 :-)
 
 Regards,
 Martin
 
 John Najarian  schrieb am 16.09.2004,
 09:00:52:
  I tried to run a program I thought would but it doesn't.
  
  This is on a windows XP platform.
  
  Everything compiled well but I get this error:
  
  Exception in thread main java.lang.NoClassDefFoundError:
 HelloWorld/class
  
   
  
  So I went back and tried a no brainer 'HelloWorld'  This is the code.
  
  /**
  
   * The HelloWorld class implements an application that
  
   * displays Hello World! to the standard output.
  
   */
  
  public class HelloWorld {
  
  public static void main(String[] args) {
  
  // Display Hello World!
  
  System.out.println(Hello World!);
  
  }
  
  }
  
   
  
  It compiles but I get the same error.
  
  I check my environment variables and mine are
  
  JAVA_HOME c:\j2sdk1.4.2_03
  
  PATH
 

C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM
  
   
  
  Any ideas?
  
   
  
  Thanks in advance
 -- 
 Martin Schaefer
 NAXOS Software Solutions GmbH i.G.
 Herrenstr. 1
 69502 Hemsbach
 Germany
  
 Phone:+49 (0) 6201 49298-2
 Mobile: +49 (0) 172 6269246
 Fax: +49 (0) 6201 49298-1
 Mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A little offbeat question

2004-09-16 Thread Dennis Dai
Yes. The current directory is not automatically included in the 
CLASSPATH if you don't explicitly add it.

On 9/16/2004 1:02 AM, John Najarian wrote:
Thanks, the '-cp .' did it.  Something is definitely hosed up.
I haven't installed anything so I'm thinking it may be a virus
although I have scanned my PC with newest definitions.
I'm still going to look at the CLASSPATH env var.  Maybe I should
add '.' to the CLASSPATH variable.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:40 AM
To: Tomcat Users List
Subject: Re: RE: A little offbeat question

But the exception says NoClassDefFoundError: HelloWorld/class. So
where does the /class come from?? In any case don't bother with
classpath environment, but (with the class in your current directory)
simply run 'java -cp . HelloWorld'. Would really surprise me if it
didn't work.
John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:32:18:
That's what I did.  When I was first learning Java that 1 bit me.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 12:24 AM
To: Tomcat Users List
Subject: Re: A little offbeat question

Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
:-)
Regards,
Martin
John Najarian  schrieb am 16.09.2004,
09:00:52:
 I tried to run a program I thought would but it doesn't.
 
 This is on a windows XP platform.
 
 Everything compiled well but I get this error:
 
 Exception in thread main java.lang.NoClassDefFoundError:
HelloWorld/class
 
  
 
 So I went back and tried a no brainer 'HelloWorld'  This is the code.
 
 /**
 
  * The HelloWorld class implements an application that
 
  * displays Hello World! to the standard output.
 
  */
 
 public class HelloWorld {
 
 public static void main(String[] args) {
 
 // Display Hello World!
 
 System.out.println(Hello World!);
 
 }
 
 }
 
  
 
 It compiles but I get the same error.
 
 I check my environment variables and mine are
 
 JAVA_HOME c:\j2sdk1.4.2_03
 
 PATH


C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
 2;%SystemRoot%;%SystemRoot%\system32\WBEM
 
  
 
 Any ideas?
 
  
 
 Thanks in advance
--
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
 
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: A little offbeat question

2004-09-16 Thread deepak shripat mane
  


Hello Meena

Please Define Class_path variable in XP . So that your problem cat be get solved

Deepak

On Thu, 16 Sep 2004 Meena Alagappan wrote :

Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



   - Original Message -
   From: John Najarian
   To: 'Tomcat Users List'
   Sent: Thursday, September 16, 2004 12:33 PM
   Subject: RE: A little offbeat question


   One more thing, tomcat was running fine.

   -Original Message-
   From: John Najarian [mailto:[EMAIL PROTECTED]
   Sent: Thursday, September 16, 2004 12:01 AM
   To: [EMAIL PROTECTED]
   Subject: A little offbeat question

   I tried to run a program I thought would but it doesn't.

   This is on a windows XP platform.

   Everything compiled well but I get this error:

   Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class



   So I went back and tried a no brainer 'HelloWorld'  This is the code.

   /**

* The HelloWorld class implements an application that

* displays Hello World! to the standard output.

*/

   public class HelloWorld {

   public static void main(String[] args) {

   // Display Hello World!

   System.out.println(Hello World!);

   }

   }



   It compiles but I get the same error.

   I check my environment variables and mine are

   JAVA_HOME c:\j2sdk1.4.2_03

   PATH
   C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
   2;%SystemRoot%;%SystemRoot%\system32\WBEM



   Any ideas?



   Thanks in advance




   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: A little offbeat question

2004-09-16 Thread Meena Alagappan
Hello Deepak,

I was helping John Najarian.

I dont face any problem.


Thanks.

Best Regards,
Meena.
~

--
Life is a festival ...
Celebrate it ...
--



  - Original Message - 
  From: deepak shripat mane 
  To: Tomcat Users List ; [EMAIL PROTECTED] 
  Sent: Thursday, September 16, 2004 3:03 PM
  Subject: Re: Re: A little offbeat question





  Hello Meena

  Please Define Class_path variable in XP . So that your problem cat be get solved

  Deepak

  On Thu, 16 Sep 2004 Meena Alagappan wrote :
  
  Frist tell me what you are trying do this code with tomcat ?
  
  
  
  
  
  Best Regards,
  Meena.
  ~
  
  --
  Life is a festival ...
  Celebrate it ...
  --
  
  
  
 - Original Message -
 From: John Najarian
 To: 'Tomcat Users List'
 Sent: Thursday, September 16, 2004 12:33 PM
 Subject: RE: A little offbeat question
  
  
 One more thing, tomcat was running fine.
  
 -Original Message-
 From: John Najarian [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 16, 2004 12:01 AM
 To: [EMAIL PROTECTED]
 Subject: A little offbeat question
  
 I tried to run a program I thought would but it doesn't.
  
 This is on a windows XP platform.
  
 Everything compiled well but I get this error:
  
 Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class
  
  
  
 So I went back and tried a no brainer 'HelloWorld'  This is the code.
  
 /**
  
  * The HelloWorld class implements an application that
  
  * displays Hello World! to the standard output.
  
  */
  
 public class HelloWorld {
  
 public static void main(String[] args) {
  
 // Display Hello World!
  
 System.out.println(Hello World!);
  
 }
  
 }
  
  
  
 It compiles but I get the same error.
  
 I check my environment variables and mine are
  
 JAVA_HOME c:\j2sdk1.4.2_03
  
 PATH
 C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
 2;%SystemRoot%;%SystemRoot%\system32\WBEM
  
  
  
 Any ideas?
  
  
  
 Thanks in advance
  
  
  
  
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


RE: A little offbeat question

2004-09-16 Thread Frank Zammetti
Yeah, as others have said, JAVA can't find your classs.  Either add the 
directory the class file is in to your classpath, or just execute:

java -cp . HelloWorld
That will add the current directory to the classpath for the current 
execution.

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: John Najarian [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: A little offbeat question
Date: Thu, 16 Sep 2004 00:00:52 -0700
I tried to run a program I thought would but it doesn't.
This is on a windows XP platform.
Everything compiled well but I get this error:
Exception in thread main java.lang.NoClassDefFoundError: HelloWorld/class

So I went back and tried a no brainer 'HelloWorld'  This is the code.
/**
 * The HelloWorld class implements an application that
 * displays Hello World! to the standard output.
 */
public class HelloWorld {
public static void main(String[] args) {
// Display Hello World!
System.out.println(Hello World!);
}
}

It compiles but I get the same error.
I check my environment variables and mine are
JAVA_HOME c:\j2sdk1.4.2_03
PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

Any ideas?

Thanks in advance
_
Get ready for school! Find articles, homework help and more in the Back to 
School Guide! http://special.msn.com/network/04backtoschool.armx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RE: A little offbeat question

2004-09-16 Thread Frank Zammetti
That's usually what I do, just add . to the classpath.  That way you can 
execute a class in the current directory wherever you are (which of course 
comes up frequently when trying to test some minor thing on it's own)

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
www.omnytex.com


From: John Najarian [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: RE: A little offbeat question
Date: Thu, 16 Sep 2004 01:02:59 -0700
Thanks, the '-cp .' did it.  Something is definitely hosed up.
I haven't installed anything so I'm thinking it may be a virus
although I have scanned my PC with newest definitions.
I'm still going to look at the CLASSPATH env var.  Maybe I should
add '.' to the CLASSPATH variable.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 12:40 AM
To: Tomcat Users List
Subject: Re: RE: A little offbeat question
But the exception says NoClassDefFoundError: HelloWorld/class. So
where does the /class come from?? In any case don't bother with
classpath environment, but (with the class in your current directory)
simply run 'java -cp . HelloWorld'. Would really surprise me if it
didn't work.
John Najarian [EMAIL PROTECTED] schrieb am 16.09.2004,
09:32:18:
 That's what I did.  When I was first learning Java that 1 bit me.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 16, 2004 12:24 AM
 To: Tomcat Users List
 Subject: Re: A little offbeat question


 Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class'
 :-)

 Regards,
 Martin

 John Najarian  schrieb am 16.09.2004,
 09:00:52:
  I tried to run a program I thought would but it doesn't.
 
  This is on a windows XP platform.
 
  Everything compiled well but I get this error:
 
  Exception in thread main java.lang.NoClassDefFoundError:
 HelloWorld/class
 
 
 
  So I went back and tried a no brainer 'HelloWorld'  This is the code.
 
  /**
 
   * The HelloWorld class implements an application that
 
   * displays Hello World! to the standard output.
 
   */
 
  public class HelloWorld {
 
  public static void main(String[] args) {
 
  // Display Hello World!
 
  System.out.println(Hello World!);
 
  }
 
  }
 
 
 
  It compiles but I get the same error.
 
  I check my environment variables and mine are
 
  JAVA_HOME c:\j2sdk1.4.2_03
 
  PATH
 

C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM
 
 
 
  Any ideas?
 
 
 
  Thanks in advance
 --
 Martin Schaefer
 NAXOS Software Solutions GmbH i.G.
 Herrenstr. 1
 69502 Hemsbach
 Germany

 Phone:+49 (0) 6201 49298-2
 Mobile: +49 (0) 172 6269246
 Fax: +49 (0) 6201 49298-1
 Mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
Martin Schaefer
NAXOS Software Solutions GmbH i.G.
Herrenstr. 1
69502 Hemsbach
Germany
Phone:+49 (0) 6201 49298-2
Mobile: +49 (0) 172 6269246
Fax: +49 (0) 6201 49298-1
Mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RE: A little offbeat question

2004-09-16 Thread Caldarale, Charles R
 From: John Najarian [mailto:[EMAIL PROTECTED]
 Subject: RE: RE: A little offbeat question
 
 I'm still going to look at the CLASSPATH env var.  Maybe I should
 add '.' to the CLASSPATH variable.

These days, Sun seems to be recommending not using the CLASSPATH environment variable 
- ever.  Use either the -cp argument on each program invocation, or make the proper 
directory current when you execute the desired program.  Your experience is a good 
example of why global environment variables must be used very judiciously.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A little offbeat question

2004-09-16 Thread Joel
On Thu, 16 Sep 2004 07:41:11 -0500
Caldarale, Charles R [EMAIL PROTECTED] wrote

  From: John Najarian [mailto:[EMAIL PROTECTED]
  Subject: RE: RE: A little offbeat question
  
  I'm still going to look at the CLASSPATH env var.  Maybe I should
  add '.' to the CLASSPATH variable.
 
 These days, Sun seems to be recommending not using the CLASSPATH 
 environment variable - ever. 

I wish they would clarify that, to, Don't set CLASSPATH yourself. Let
the applications or frameworks do that. I think that would be less
confusing.

 Use either the -cp argument on each
 program invocation, or make the proper directory current when you
 execute the desired program. 

In light of security issues deriving from the default assumption of
having executables in the working directory, -cp would be the correct
way to do this. 

But I don't remember. Is Sun planning to do away with defaulting to the
current working directory when CLASSPATH is empty?

 Your experience is a good example of why
 global environment variables must be used very judiciously.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
 PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
 If you received this in error, please contact the sender and delete the
 e-mail and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Joel [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A little offbeat question

2004-09-16 Thread Frank Zammetti

I wish they would clarify that, to, Don't set CLASSPATH yourself. Let
the applications or frameworks do that. I think that would be less
confusing.
As I understand it, this simply means that if you are going to execute a 
Java app, you should set the classpath right before executing the app (on 
the command line really).  Likewise, when you compile, construct the 
classpath on the command line of javac.  Or, when running Tomcat or 
something like that, let it's startup scripts create the classpath.

At least in Windows, all those situations would result in a local 
classpath, i.e., if you have three command prompt windows open, one to do 
compiles, one to execute apps directly and one to run Tomcat in, all three 
can basically set up their own classpath, completely independent of one 
another.  I think this is what that statement is talking about.

Frank
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]