• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help!!!!

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am a total novice in java. Recently I installed jdk 2 version 1.3 on my system and set the path etc. When I am trying to complile a sample program using javac filename.java, "error reading the file" is coming. I checked the path. everything is fine.If I give full path and then type javac ...., then it is compiling. Could anyone tell me what the problem is? Thanks in advance
Regards
renu
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you set the classpath??
Regds,
Milind
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read the installation instructions.
From your post, sounds like you forgot to set the classpath.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got a question on the same lines.
On my computer the following statement seems to work just fine
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK12~1.2\BIN;
I have no lines that set the CLASSPATH,
What are the implications of this ?
TIA
Nemo
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Renuka Kilambi:
Hi all,
I am a total novice in java. Recently I installed jdk 2 version 1.3 on my system and set the path etc. When I am trying to complile a sample program using javac filename.java, "error reading the file" is coming. I checked the path. everything is fine.If I give full path and then type javac ...., then it is compiling. Could anyone tell me what the problem is? Thanks in advance
Regards
renu


Try this, someone else had the same problem the other day:
When you type: SET CLASSPATH=.;C
you MUST, and this is very important, put a period "." before the ";" and then type your path in AutoExec.bat. So, after the = sign type a period, then a ;, then your path.
That should work.

 
S Nemo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The CLASSPATH statement is not really necessary to include the java packages. The compiler knows where to find the packages that come as a part of JDK.
So , here is what I think is happening,
If you have a SET PATH statement in your Autoexec.bat file make sure that the SET PATH is not being duplicated after the first one to SET the JDK path.
The second SET PATH might be overriding the first one.
Please correct me if I am wrong.
HTH
Nemo
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic