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 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\java>javac 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:NT0000434E --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT00004B72