You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bi...@tcs.com on 2004/04/18 09:16:29 UTC
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" <hu...@ix.netcom.com>
17-04-04 08:54 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
"Struts Users Mailing List" <us...@struts.apache.org>
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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
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
RE: basic problem in java
Posted by bi...@tcs.com.
its simple program im posting it , actually everthing was working fine
but i tried to work with a program that was ment for running sqlloader
using my java program.. suddenly what happen kept me in puzzled
situation.. after which a simple program like foollowing wasnt compiling
:((
the program is
import java.io.*;
public class helloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
thanks for your attention
Birendar Singh Waldiya
Max Cooper <ma...@maxcooper.com>
18-04-04 05:43 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
Struts Users Mailing List <us...@struts.apache.org>
cc
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, birendar.waldiya@tcs.com 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"
> <hu...@ix.netcom.com>
>
> 17-04-04 08:54 PM
> Please respond to
> "Struts Users Mailing List"
> <us...@struts.apache.org>
> To
> "Struts Users
> Mailing List"
> <us...@struts.apache.org>
> 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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
--
Max Cooper <ma...@maxcooper.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
ForwardSourceID:NT000043B6
RE: basic problem in java (likely is a CLASSPATH problems on Windows)
Posted by David Friedman <hu...@ix.netcom.com>.
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:max@maxcooper.com]
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, birendar.waldiya@tcs.com 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"
> <hu...@ix.netcom.com>
>
> 17-04-04 08:54 PM
> Please respond to
> "Struts Users Mailing List"
> <us...@struts.apache.org>
> To
> "Struts Users
> Mailing List"
> <us...@struts.apache.org>
> 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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
--
Max Cooper <ma...@maxcooper.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: basic problem in java
Posted by Max Cooper <ma...@maxcooper.com>.
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, birendar.waldiya@tcs.com 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"
> <hu...@ix.netcom.com>
>
> 17-04-04 08:54 PM
> Please respond to
> "Struts Users Mailing List"
> <us...@struts.apache.org>
> To
> "Struts Users
> Mailing List"
> <us...@struts.apache.org>
> 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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
--
Max Cooper <ma...@maxcooper.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: basic problem in java
Posted by bi...@tcs.com.
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: birendar.waldiya@tcs.com
Website: http://www.tcs.com
"David Friedman" <hu...@ix.netcom.com>
21-04-04 02:39 AM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
"Struts Users Mailing List" <us...@struts.apache.org>
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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
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" <hu...@ix.netcom.com>
17-04-04 08:54 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To "Struts Users Mailing List" <us...@struts.apache.org>
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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
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
ForwardSourceID:NT00004B02
RE: basic problem in java
Posted by David Friedman <hu...@ix.netcom.com>.
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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
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" <hu...@ix.netcom.com>
17-04-04 08:54 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To "Struts Users Mailing List" <us...@struts.apache.org>
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: birendar.waldiya@tcs.com [mailto:birendar.waldiya@tcs.com]
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