RE: basic problem in java

2004-04-21 Thread birendar . waldiya

Below was the messages i was getting
: I havent yet exactly found the reason why this happened im also
sending the output of set command on dos prompt.


C:\biren\javajavac jaba1.java
 jaba1.java:2: cannot resolve symbol
 symbol : class io
 location: class java
 import java.io.*;

For following source code 


import java.io.*;
public class jaba1
{
public
static void main(String[] args) 
{

   System.out.println(Hello World!);

   
}
}


out put of my set command in dos prompt
:-

(I have already told that i deleted
some of the folders in my C:\Documents and Settings\)

ALLUSERSPROFILE=C:\Documents and Settings\All
Users
APPDATA=C:\Documents and Settings\133044\Application
Data
CATALINA_HOME=c:\Tomcat
CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat\common\lib\servlet.jar;
CommonProgramFiles=C:\Program Files\Common
Files
COMPUTERNAME=TCS021601
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=Y:
HOMEPATH=\
HOMESHARE=\\172.17.24.142\home1\133044
INCLUDE=C:\Program Files\Microsoft Visual
Studio .NET\FrameworkSDK\include\
JAVA_HOME=C:\jsdk1.4.2
LIB=C:\Program Files\Microsoft Visual
Studio .NET\FrameworkSDK\Lib\
LOGONSERVER=\\ML06ADC01030304
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\jsdk1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System3
2\Wbem;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model
0 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=000a
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\133044\LOCALS~1\Temp
TMP=C:\WINNT\TEMP
TOMCAT_HOME=.
USERDNSDOMAIN=India.TCS.com
USERDOMAIN=INDIA
USERNAME=133044
USERPROFILE=C:\Documents and Settings\133044
windir=C:\WINNT


Birendar Singh Waldiya







Dhaliwal, Pritpal
(HQP) [EMAIL PROTECTED] 
22-04-04 02:09 AM




Please respond to
Struts Users Mailing List [EMAIL PROTECTED]





To
'Struts Users Mailing
List' [EMAIL PROTECTED]


cc



Subject
RE: basic problem in java








that probably won't compile either
import java.io.*; 
class test
{
 public static void main(String[] args) 
 {
 System.out .println(My Apologies To all); }
}
 
you were missing ; after the import ant String [] as a paramter to main
was
declared wrong.
 
Pritpal
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 20, 2004 10:17 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java



Hi, 
Im very sorry and apologize to all for not telling the about
the
resolving problem, 
 Actually my problem is resolved but i dont have the concrete solution
for
that , thats why i didnt wrote it. 
The probelm occured suddenly one day i was deleting folders
from my
macheine to free my disk space and in this process i deleted some
of the
folders of  c:\ documents and settings (windows 2000 professional)
however
the things were working very fine before that suddenly this problem started
occuring i could not get what happened because i was running
and compiling
everthing right before this and later it stoped working , then i
copied
some of the folder in my c:\documents and settings form
some other
persons machine and it started working .. 
so i did not understand what exactly was the cure of my problem : 

Note i did not deleted folder named with my login. 

i was compiling very simple program 

import java.io.* 
 public class test{ 
public static void main(arg [] String ){ 
System.out .println(My Apologies To all); 
} 

} 

Birendar Singh Waldiya
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 



David Friedman [EMAIL PROTECTED] 


21-04-04 08:30 AM 



Please respond to
Struts Users Mailing List [EMAIL PROTECTED]



To
Struts Users Mailing List [EMAIL PROTECTED] 

cc

Subject
RE: basic problem in java







Dhaliwal,

Birendar never seemed to post anthing after our answers and I was curious
if
the problem was solved. I was trying to be helpful and follow-up,
not ask
you for a rehash of the previously stated answers. Also, you shouldn't
underestimate the classpath 8.3 issue on Windows XP.

Thanks anyway,
David

-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 8:00 PM
To: 'Struts Users Mailing List'
Subject: RE: basic problem in java


You are using something like


SomeClass someClass = java.io.SomeClass();

See whats wrong with that? You are missing the new..

If its not that.. Well.. When you forget the new compiler puts out that
kind
of errors.

Btw.. You classpath will be happy with
.;c:\Drivers\classes111.zip;

Provided that c:\Drivers and c:\biren\java do not have any classes in them.


HTH,
Pritpal Dhaliwal

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 2:09 PM
To: Struts Users Mailing List
Subject: RE: basic

RE: basic problem in java

2004-04-21 Thread birendar . waldiya

I sent the possible reason , i
didnt get exact one .. probaly you might have skipped my mail or deleted


Birendar Singh Waldiya
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





David Friedman
[EMAIL PROTECTED] 
21-04-04 02:39 AM




Please respond to
Struts Users Mailing List [EMAIL PROTECTED]





To
Struts Users Mailing
List [EMAIL PROTECTED]


cc



Subject
RE: basic problem in java








So Birendar,

What was your problem? I never saw a post about you resolving it.
(and,
curiosity killed the cat)

Regards,
David
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 18, 2004 3:16 AM
 To: Struts Users Mailing List
 Subject: RE: basic problem in java



 My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

 JDK is installed

 C:\jdk1.3.1

 can you please help me ??

 Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
17-04-04 08:54 PM
   Please respond to
   Struts Users Mailing
List [EMAIL PROTECTED]


To Struts Users Mailing List [EMAIL PROTECTED]
   cc
   Subject RE: basic problem
in java







  What is your CLASSPATH variable set to and is java installed
in
 c:\biren\java?

  Regards,
  David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 17, 2004 2:47 AM
  To: Struts Users Mailing List
  Subject: basic problem in java



  Hi,
  this may be a slightly silly question for people
working on struts etc
 but im facing it and i dont have the clue why im getting it.. can
anyone
 suggest me why im getting proble..
  while compiling a java program my javac is unable to resolve
the
standard
 java classes like java.io.*  java.util.* ;


  C:\biren\javajavac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol : class io
  location: class java
  import java.io.*;

  whats the problem please help !
^
  Birendar Singh Waldiya

 ForwardSourceID:NT434E

ForwardSourceID:NT4B02
 
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: basic problem in java

2004-04-21 Thread David Friedman
Birendar,

That is a nasty looking classpath with slashes going in both directions in
your JDK path portion (incredibly unwise), long path names, and so forth.
Did you try using dir /x to get the short (8.3) directory names and fixing
your classpath from this
CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
\common\lib\servlet.jar;
to something a bit more normal?

Regards,
David

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 22, 2004 1:29 AM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  Below was the messages i was getting : I havent yet exactly found the
reason why this happened  im also sending the output of set command on dos
prompt.


   C:\biren\javajavac jaba1.java
   jaba1.java:2: cannot resolve symbol
   symbol  : class io
   location: class java
   import java.io.*;

  For following source code


  import java.io.*;
  public class  jaba1
  {
  public static void main(String[] args)
  {
  System.out.println(Hello World!);

  }
  }


  out put of my set command in dos prompt :-

  (I have already told that i deleted some of the folders in my C:\Documents
and Settings\)

  ALLUSERSPROFILE=C:\Documents and Settings\All Users
  APPDATA=C:\Documents and Settings\133044\Application Data
  CATALINA_HOME=c:\Tomcat

CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
\common\lib\servlet.jar;
  CommonProgramFiles=C:\Program Files\Common Files
  COMPUTERNAME=TCS021601
  ComSpec=C:\WINNT\system32\cmd.exe
  HOMEDRIVE=Y:
  HOMEPATH=\
  HOMESHARE=\\172.17.24.142\home1\133044
  INCLUDE=C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\include\
  JAVA_HOME=C:\jsdk1.4.2
  LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
  LOGONSERVER=\\ML06ADC01030304
  NUMBER_OF_PROCESSORS=1
  OS=Windows_NT
  Os2LibPath=C:\WINNT\system32\os2\dll;

Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\jsdk1.4.2\bin;C:\W
INNT\system32;C:\WINNT;C:\WINNT\System3
  2\Wbem;
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  PROCESSOR_ARCHITECTURE=x86
  PROCESSOR_IDENTIFIER=x86 Family 15 Model 0 Stepping 10, GenuineIntel
  PROCESSOR_LEVEL=15
  PROCESSOR_REVISION=000a
  ProgramFiles=C:\Program Files
  PROMPT=$P$G
  SystemDrive=C:
  SystemRoot=C:\WINNT
  TEMP=C:\DOCUME~1\133044\LOCALS~1\Temp
  TMP=C:\WINNT\TEMP
  TOMCAT_HOME=.
  USERDNSDOMAIN=India.TCS.com
  USERDOMAIN=INDIA
  USERNAME=133044
  USERPROFILE=C:\Documents and Settings\133044
  windir=C:\WINNT


  Birendar Singh Waldiya




Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]
22-04-04 02:09 AM
  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]


   To 'Struts Users Mailing List' [EMAIL PROTECTED]
  cc
  Subject RE: basic problem in java







  that probably won't compile either
  import java.io.*;
  class  test
  {
  public static void main(String[] args)
  {
   System.out .println(My Apologies To all); }
  }

  you were missing ; after the import ant String [] as a paramter to main
was
  declared wrong.

  Pritpal


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 20, 2004 10:17 PM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  Hi,
  Im very sorry and apologize to all  for not telling the  about the
  resolving problem,
  Actually  my problem is resolved but i dont have the concrete  solution
for
  that , thats why i didnt  wrote it.
  The probelm occured  suddenly  one day i was deleting folders from my
  macheine to free my disk space  and in this process i deleted some of the
  folders  of   c:\ documents and settings (windows 2000 professional)
however
  the things were working very fine before that suddenly this problem
started
  occuring  i could not get what happened  because i was running and
compiling
  everthing right  before this and later it stoped working , then i  copied
  some of the folder in my c:\documents and settings  form some other
  persons machine  and it started working ..
  so i did not understand what exactly was the cure of my problem :

  Note i did not deleted folder named with  my login.

  i was  compiling very simple  program

  import java.io.*
  public class test{
  public static void main(arg [] String ){
  System.out .println(My Apologies To all);
  }

  }

  Birendar Singh Waldiya
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.com



  David Friedman [EMAIL PROTECTED]


  21-04-04 08:30 AM



  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]



  To
  Struts Users Mailing List [EMAIL PROTECTED]

  cc

  Subject
  RE: basic problem in java






  Dhaliwal,

  Birendar never seemed to post anthing after our answers and I was curious
if
  the problem was solved.  I was trying to be helpful and follow-up, not ask
  you

RE: basic problem in java

2004-04-21 Thread birendar . waldiya

Yes it may me nasty but David im sorry
i dont know dir / x   and what is  8.3 directory
names ??
I will correct the classpath surely.

Birendar Singh Waldiya






David Friedman
[EMAIL PROTECTED] 
22-04-04 11:19 AM




Please respond to
Struts Users Mailing List [EMAIL PROTECTED]





To
Struts Users Mailing
List [EMAIL PROTECTED]


cc



Subject
RE: basic problem in java








Birendar,

That is a nasty looking classpath with slashes going in both directions
in
your JDK path portion (incredibly unwise), long path names, and so forth.
Did you try using dir /x to get the short (8.3) directory names
and fixing
your classpath from this
CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
\common\lib\servlet.jar;
to something a bit more normal?

Regards,
David

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 22, 2004 1:29 AM
 To: Struts Users Mailing List
 Subject: RE: basic problem in java



 Below was the messages i was getting : I havent yet exactly found
the
reason why this happened im also sending the output of set command
on dos
prompt.


  C:\biren\javajavac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol : class io
  location: class java
  import java.io.*;

 For following source code


 import java.io.*;
 public class jaba1
 {
 public static void main(String[] args)
 {
 System.out.println(Hello
World!);

 }
 }


 out put of my set command in dos prompt :-

 (I have already told that i deleted some of the folders in my C:\Documents
and Settings\)

 ALLUSERSPROFILE=C:\Documents and Settings\All Users
 APPDATA=C:\Documents and Settings\133044\Application Data
 CATALINA_HOME=c:\Tomcat

CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
\common\lib\servlet.jar;
 CommonProgramFiles=C:\Program Files\Common Files
 COMPUTERNAME=TCS021601
 ComSpec=C:\WINNT\system32\cmd.exe
 HOMEDRIVE=Y:
 HOMEPATH=\
 HOMESHARE=\\172.17.24.142\home1\133044
 INCLUDE=C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\include\
 JAVA_HOME=C:\jsdk1.4.2
 LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
 LOGONSERVER=\\ML06ADC01030304
 NUMBER_OF_PROCESSORS=1
 OS=Windows_NT
 Os2LibPath=C:\WINNT\system32\os2\dll;

Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\jsdk1.4.2\bin;C:\W
INNT\system32;C:\WINNT;C:\WINNT\System3
 2\Wbem;
 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
 PROCESSOR_ARCHITECTURE=x86
 PROCESSOR_IDENTIFIER=x86 Family 15 Model 0 Stepping 10, GenuineIntel
 PROCESSOR_LEVEL=15
 PROCESSOR_REVISION=000a
 ProgramFiles=C:\Program Files
 PROMPT=$P$G
 SystemDrive=C:
 SystemRoot=C:\WINNT
 TEMP=C:\DOCUME~1\133044\LOCALS~1\Temp
 TMP=C:\WINNT\TEMP
 TOMCAT_HOME=.
 USERDNSDOMAIN=India.TCS.com
 USERDOMAIN=INDIA
 USERNAME=133044
 USERPROFILE=C:\Documents and Settings\133044
 windir=C:\WINNT


 Birendar Singh Waldiya




Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]
22-04-04 02:09 AM
   Please respond to
   Struts Users Mailing
List [EMAIL PROTECTED]


To 'Struts Users Mailing List' [EMAIL PROTECTED]
   cc
   Subject RE: basic problem
in java







 that probably won't compile either
 import java.io.*;
 class test
 {
 public static void main(String[] args)
 {
  System.out .println(My Apologies To all); }
 }

 you were missing ; after the import ant String [] as a paramter
to main
was
 declared wrong.

 Pritpal


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 20, 2004 10:17 PM
 To: Struts Users Mailing List
 Subject: RE: basic problem in java



 Hi,
 Im very sorry and apologize to all for not telling the about
the
 resolving problem,
 Actually my problem is resolved but i dont have the concrete
solution
for
 that , thats why i didnt wrote it.
 The probelm occured suddenly one day i was deleting
folders from my
 macheine to free my disk space and in this process i deleted
some of the
 folders of  c:\ documents and settings (windows 2000
professional)
however
 the things were working very fine before that suddenly this problem
started
 occuring i could not get what happened because i was
running and
compiling
 everthing right before this and later it stoped working ,
then i copied
 some of the folder in my c:\documents and settings form
some other
 persons machine and it started working ..
 so i did not understand what exactly was the cure of my problem
:

 Note i did not deleted folder named with my login.

 i was compiling very simple program

 import java.io.*
 public class test{
 public static void main(arg [] String ){
 System.out .println(My Apologies To all);
 }

 }

 Birendar Singh Waldiya
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com



 David Friedman [EMAIL PROTECTED]


 21-04-04 08:30 AM



 Please respond to
 Struts Users Mailing List [EMAIL PROTECTED]



 To
 Struts Users Mailing List [EMAIL PROTECTED]

 cc

 Subject
 RE: basic

RE: basic problem in java

2004-04-21 Thread David Friedman
I had trouble in a windows platform (Windows XP home) using directory names
that don't follow the old 8 letter (or less) prefix and 3 letter extention
in my ms-dos/command.com CLASSPATH variable.  Using dir /x will show the
old dos-style directory or file name.  I found that using those names worked
in my classpath so I could run Tomcat (or plain old Java programs) from the
command line.  So, instead of using c:\jdk1.4.2, the dir/x might show it
as C:\JDK14~1.1 which works for me in the classpath while C:\jdk1.4.2
won't work so it won't find stock libraries like java.io.* or anything else
you'd expect.

Regards,
David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 22, 2004 1:55 AM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  Yes it may me nasty but David im sorry i dont know  dir / xand what
is   8.3  directory names ??
  I will correct the classpath surely.

  Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
22-04-04 11:19 AM
  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]


   To Struts Users Mailing List [EMAIL PROTECTED]
  cc
  Subject RE: basic problem in java







  Birendar,

  That is a nasty looking classpath with slashes going in both directions in
  your JDK path portion (incredibly unwise), long path names, and so forth.
  Did you try using dir /x to get the short (8.3) directory names and
fixing
  your classpath from this

CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
  \common\lib\servlet.jar;
  to something a bit more normal?

  Regards,
  David

   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Thursday, April 22, 2004 1:29 AM
   To: Struts Users Mailing List
   Subject: RE: basic problem in java



   Below was the messages i was getting : I havent yet exactly found the
  reason why this happened  im also sending the output of set command on dos
  prompt.


C:\biren\javajavac jaba1.java
jaba1.java:2: cannot resolve symbol
symbol  : class io
location: class java
import java.io.*;

   For following source code


   import java.io.*;
   public class  jaba1
   {
   public static void main(String[] args)
   {
   System.out.println(Hello World!);

   }
   }


   out put of my set command in dos prompt :-

   (I have already told that i deleted some of the folders in my
C:\Documents
  and Settings\)

   ALLUSERSPROFILE=C:\Documents and Settings\All Users
   APPDATA=C:\Documents and Settings\133044\Application Data
   CATALINA_HOME=c:\Tomcat


CLASSPATH=.;C:\jsdk1.4.2/lib/tools.jar;.\classes;.\lib;%CLASSPATH%;c:\Tomcat
  \common\lib\servlet.jar;
   CommonProgramFiles=C:\Program Files\Common Files
   COMPUTERNAME=TCS021601
   ComSpec=C:\WINNT\system32\cmd.exe
   HOMEDRIVE=Y:
   HOMEPATH=\
   HOMESHARE=\\172.17.24.142\home1\133044
   INCLUDE=C:\Program Files\Microsoft Visual Studio
  .NET\FrameworkSDK\include\
   JAVA_HOME=C:\jsdk1.4.2
   LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\
   LOGONSERVER=\\ML06ADC01030304
   NUMBER_OF_PROCESSORS=1
   OS=Windows_NT
   Os2LibPath=C:\WINNT\system32\os2\dll;


Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\jsdk1.4.2\bin;C:\W
  INNT\system32;C:\WINNT;C:\WINNT\System3
   2\Wbem;
   PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
   PROCESSOR_ARCHITECTURE=x86
   PROCESSOR_IDENTIFIER=x86 Family 15 Model 0 Stepping 10, GenuineIntel
   PROCESSOR_LEVEL=15
   PROCESSOR_REVISION=000a
   ProgramFiles=C:\Program Files
   PROMPT=$P$G
   SystemDrive=C:
   SystemRoot=C:\WINNT
   TEMP=C:\DOCUME~1\133044\LOCALS~1\Temp
   TMP=C:\WINNT\TEMP
   TOMCAT_HOME=.
   USERDNSDOMAIN=India.TCS.com
   USERDOMAIN=INDIA
   USERNAME=133044
   USERPROFILE=C:\Documents and Settings\133044
   windir=C:\WINNT


   Birendar Singh Waldiya




 Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]
 22-04-04 02:09 AM
   Please respond to
   Struts Users Mailing List [EMAIL PROTECTED]


To 'Struts Users Mailing List' [EMAIL PROTECTED]
   cc
   Subject RE: basic problem in java







   that probably won't compile either
   import java.io.*;
   class  test
   {
   public static void main(String[] args)
   {
System.out .println(My Apologies To all); }
   }

   you were missing ; after the import ant String [] as a paramter to main
  was
   declared wrong.

   Pritpal


   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, April 20, 2004 10:17 PM
   To: Struts Users Mailing List
   Subject: RE: basic problem in java



   Hi,
   Im very sorry and apologize to all  for not telling the  about the
   resolving problem,
   Actually  my problem is resolved but i dont have the concrete  solution
  for
   that , thats why i didnt  wrote

RE: basic problem in java

2004-04-20 Thread David Friedman
So Birendar,

What was your problem?  I never saw a post about you resolving it. (and,
curiosity killed the cat)

Regards,
David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Sunday, April 18, 2004 3:16 AM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

  JDK is installed

  C:\jdk1.3.1

  can you please help me ??

  Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
17-04-04 08:54 PM
  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]


   To Struts Users Mailing List [EMAIL PROTECTED]
  cc
  Subject RE: basic problem in java







What is your CLASSPATH variable set to and is java installed in
  c:\biren\java?

   Regards,
   David
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Saturday, April 17, 2004 2:47 AM
   To: Struts Users Mailing List
   Subject: basic problem in java



   Hi,
this may be  a slightly silly question for  people working on struts etc
  but im facing it and i dont have the clue why im getting it.. can anyone
  suggest me  why im getting proble..
   while compiling a java program  my javac is unable to resolve the
standard
  java classes  like  java.io.*   java.util.* ;


   C:\biren\javajavac jaba1.java
   jaba1.java:2: cannot resolve symbol
   symbol  : class io
   location: class java
   import java.io.*;

   whats  the problem  please help !
   ^
   Birendar Singh Waldiya

  ForwardSourceID:NT434E


RE: basic problem in java

2004-04-20 Thread Dhaliwal, Pritpal (HQP)
You are using something like


SomeClass someClass = java.io.SomeClass();

See whats wrong with that? You are missing the new..

If its not that.. Well.. When you forget the new compiler puts out that kind
of errors.

Btw.. You classpath will be happy with
.;c:\Drivers\classes111.zip;

Provided that c:\Drivers and c:\biren\java do not have any classes in them.


HTH,
Pritpal Dhaliwal

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 20, 2004 2:09 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java


So Birendar,

What was your problem?  I never saw a post about you resolving it. (and,
curiosity killed the cat)

Regards,
David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Sunday, April 18, 2004 3:16 AM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

  JDK is installed

  C:\jdk1.3.1

  can you please help me ??

  Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
17-04-04 08:54 PM
  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]


   To Struts Users Mailing List [EMAIL PROTECTED]
  cc
  Subject RE: basic problem in java







What is your CLASSPATH variable set to and is java installed in
  c:\biren\java?

   Regards,
   David
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Saturday, April 17, 2004 2:47 AM
   To: Struts Users Mailing List
   Subject: basic problem in java



   Hi,
this may be  a slightly silly question for  people working on struts etc
  but im facing it and i dont have the clue why im getting it.. can anyone
  suggest me  why im getting proble..
   while compiling a java program  my javac is unable to resolve the
standard
  java classes  like  java.io.*   java.util.* ;


   C:\biren\javajavac jaba1.java
   jaba1.java:2: cannot resolve symbol
   symbol  : class io
   location: class java
   import java.io.*;

   whats  the problem  please help !
   ^
   Birendar Singh Waldiya

  ForwardSourceID:NT434E


RE: basic problem in java

2004-04-20 Thread David Friedman
Dhaliwal,

Birendar never seemed to post anthing after our answers and I was curious if
the problem was solved.  I was trying to be helpful and follow-up, not ask
you for a rehash of the previously stated answers.  Also, you shouldn't
underestimate the classpath 8.3 issue on Windows XP.

Thanks anyway,
David

-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 8:00 PM
To: 'Struts Users Mailing List'
Subject: RE: basic problem in java


You are using something like


SomeClass someClass = java.io.SomeClass();

See whats wrong with that? You are missing the new..

If its not that.. Well.. When you forget the new compiler puts out that kind
of errors.

Btw.. You classpath will be happy with
.;c:\Drivers\classes111.zip;

Provided that c:\Drivers and c:\biren\java do not have any classes in them.


HTH,
Pritpal Dhaliwal

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 2:09 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java


So Birendar,

What was your problem?  I never saw a post about you resolving it. (and,
curiosity killed the cat)

Regards,
David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Sunday, April 18, 2004 3:16 AM
  To: Struts Users Mailing List
  Subject: RE: basic problem in java



  My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

  JDK is installed

  C:\jdk1.3.1

  can you please help me ??

  Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
17-04-04 08:54 PM
  Please respond to
  Struts Users Mailing List [EMAIL PROTECTED]


   To Struts Users Mailing List [EMAIL PROTECTED]
  cc
  Subject RE: basic problem in java







What is your CLASSPATH variable set to and is java installed in
  c:\biren\java?

   Regards,
   David
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Saturday, April 17, 2004 2:47 AM
   To: Struts Users Mailing List
   Subject: basic problem in java



   Hi,
this may be  a slightly silly question for  people working on struts etc
  but im facing it and i dont have the clue why im getting it.. can anyone
  suggest me  why im getting proble..
   while compiling a java program  my javac is unable to resolve the
standard
  java classes  like  java.io.*   java.util.* ;


   C:\biren\javajavac jaba1.java
   jaba1.java:2: cannot resolve symbol
   symbol  : class io
   location: class java
   import java.io.*;

   whats  the problem  please help !
   ^
   Birendar Singh Waldiya

  ForwardSourceID:NT434E


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



RE: basic problem in java

2004-04-20 Thread birendar . waldiya

Hi, 
Im very sorry and apologize to all for
not telling the about the resolving problem,
Actually my problem is resolved
but i dont have the concrete solution for that , thats why i didnt
wrote it. 
The probelm occured suddenly one
day i was deleting folders from my macheine to free my disk space and
in this process i deleted some of the folders of  c:\ documents
and settings (windows 2000 professional) however the things were working
very fine before that suddenly this problem started occuring i could
not get what happened because i was running and compiling everthing
right before this and later it stoped working , then i copied
some of the folder in my c:\documents and settings form
some other persons machine and it started working ..
so i did not understand what exactly
was the cure of my problem :

Note i did not deleted folder named
with my login.

i was compiling very simple program


import java.io.*
public class test{
public static void main(arg [] String
){
System.out .println(My Apologies
To all);
}

}

Birendar Singh Waldiya
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





David Friedman
[EMAIL PROTECTED] 
21-04-04 08:30 AM




Please respond to
Struts Users Mailing List [EMAIL PROTECTED]





To
Struts Users Mailing
List [EMAIL PROTECTED]


cc



Subject
RE: basic problem in java








Dhaliwal,

Birendar never seemed to post anthing after our answers and I was curious
if
the problem was solved. I was trying to be helpful and follow-up,
not ask
you for a rehash of the previously stated answers. Also, you shouldn't
underestimate the classpath 8.3 issue on Windows XP.

Thanks anyway,
David

-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 8:00 PM
To: 'Struts Users Mailing List'
Subject: RE: basic problem in java


You are using something like


SomeClass someClass = java.io.SomeClass();

See whats wrong with that? You are missing the new..

If its not that.. Well.. When you forget the new compiler puts out that
kind
of errors.

Btw.. You classpath will be happy with
.;c:\Drivers\classes111.zip;

Provided that c:\Drivers and c:\biren\java do not have any classes in them.


HTH,
Pritpal Dhaliwal

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 20, 2004 2:09 PM
To: Struts Users Mailing List
Subject: RE: basic problem in java


So Birendar,

What was your problem? I never saw a post about you resolving it.
(and,
curiosity killed the cat)

Regards,
David
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 18, 2004 3:16 AM
 To: Struts Users Mailing List
 Subject: RE: basic problem in java



 My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

 JDK is installed

 C:\jdk1.3.1

 can you please help me ??

 Birendar Singh Waldiya



David Friedman [EMAIL PROTECTED]
17-04-04 08:54 PM
   Please respond to
   Struts Users Mailing
List [EMAIL PROTECTED]


To Struts Users Mailing List [EMAIL PROTECTED]
   cc
   Subject RE: basic problem
in java







  What is your CLASSPATH variable set to and is java installed
in
 c:\biren\java?

  Regards,
  David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 17, 2004 2:47 AM
  To: Struts Users Mailing List
  Subject: basic problem in java



  Hi,
  this may be a slightly silly question for people
working on struts etc
 but im facing it and i dont have the clue why im getting it.. can
anyone
 suggest me why im getting proble..
  while compiling a java program my javac is unable to resolve
the
standard
 java classes like java.io.*  java.util.* ;


  C:\biren\javajavac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol : class io
  location: class java
  import java.io.*;

  whats the problem please help !
^
  Birendar Singh Waldiya

 ForwardSourceID:NT434E


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


ForwardSourceID:NT4B72
 
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil

RE: basic problem in java (likely is a CLASSPATH problems on Windows)

2004-04-18 Thread David Friedman
Ancient Chinese Secret (as the 70's/80's commercial goes):

In Windows environments (for me in NT 4.0 and XP Home edition),
you can't use long windows pathnames.  They must be of the
8.3 variety.  Do a dir /x in c:\ and see what is listed
for c:\jdk1.3.1.  I tried it on mine and it came up
with C:\JDK13~1.1 as the 8.x path. so your path will probably
have to be fixed to look more like this:

C:\JDK13~1.1;C:\JDK13~1.1\LIB\tools.jar;C:\JDK13~1.1\lib\rt.jar; etc
Keep in mind the c:\Drivers\classes111.zip might not work because it has a
file name longer than 8.3.

This problem gave me headaches for JDK 1.X.X and Tomcat 4.1 (not for 5.0
since I'd already learned my lesson!).

Check out your paths using dir /x and see if fixing your classpath (you
may have to reboot, depending on where/how you set your classpath) to
standard 8.3 directory names works. Again, you might need to do the same for
the .jar files but I don't know for sure since I use Tomcat and Eclipse
making paths 'mostly' unimportant to me.

Regards,
David

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 18, 2004 8:13 AM
To: Struts Users Mailing List
Subject: RE: basic problem in java


Post the contents of your jaba1.java file up to and including the
import java.io.*; line. You might have the import statement in the
wrong place.

-Max

On Sun, 2004-04-18 at 00:16, [EMAIL PROTECTED] wrote:
 My Classpath variable is set to :

C:\jdk1.3.1\bin;c:\jdk1.3.1\lib\tools.jar;c:\jdk1.3.1\lib\rt.jar;c:\Drivers\
classes111.zip;c:\Drivers\classes12.zip;c:\Drivers;c:\biren\java

 JDK is installed

 C:\jdk1.3.1

 can you please help me ??

 Birendar Singh Waldiya



 David Friedman
 [EMAIL PROTECTED]

 17-04-04 08:54 PM
  Please respond to
 Struts Users Mailing List
  [EMAIL PROTECTED]
To
 Struts Users
 Mailing List
 [EMAIL PROTECTED]
cc

   Subject
 RE: basic problem
 in java




   What is your CLASSPATH variable set to and is java installed in
 c:\biren\java?

  Regards,
  David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 17, 2004 2:47 AM
  To: Struts Users Mailing List
  Subject: basic problem in java



  Hi,
   this may be  a slightly silly question for  people working on struts
 etc
 but im facing it and i dont have the clue why im getting it.. can
 anyone
 suggest me  why im getting proble..
  while compiling a java program  my javac is unable to resolve the
 standard
 java classes  like  java.io.*   java.util.* ;


  C:\biren\javajavac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol  : class io
  location: class java
  import java.io.*;

  whats  the problem  please help !
  ^
  Birendar Singh Waldiya

 ForwardSourceID:NT434E


 __
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
Max Cooper [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]



basic problem in java

2004-04-17 Thread birendar . waldiya

Hi, 
this may be a slightly silly
question for people working on struts etc but im facing it
and i dont have the clue why im getting it.. can anyone suggest me why
im getting proble..
while compiling a java program my
javac is unable to resolve the standard java classes like java.io.*
 java.util.* ; 


C:\biren\javajavac jaba1.java
jaba1.java:2: cannot resolve symbol
symbol : class io
location: class java
import java.io.*;

whats the problem please
help !

 ^
Birendar Singh Waldiya
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: basic problem in java

2004-04-17 Thread David Friedman
  What is your CLASSPATH variable set to and is java installed in
c:\biren\java?

  Regards,
  David
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Saturday, April 17, 2004 2:47 AM
  To: Struts Users Mailing List
  Subject: basic problem in java



  Hi,
   this may be  a slightly silly question for  people working on struts etc
but im facing it and i dont have the clue why im getting it.. can anyone
suggest me  why im getting proble..
  while compiling a java program  my javac is unable to resolve the standard
java classes  like  java.io.*   java.util.* ;


  C:\biren\javajavac jaba1.java
  jaba1.java:2: cannot resolve symbol
  symbol  : class io
  location: class java
  import java.io.*;

  whats  the problem  please help !
  ^
  Birendar Singh Waldiya