File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes PLEASE HELP !!! JDK 1.2 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PLEASE HELP !!! JDK 1.2 problem" Watch "PLEASE HELP !!! JDK 1.2 problem" New topic

PLEASE HELP !!! JDK 1.2 problem

Himabindu Devulapalli

Joined: Apr 05, 2000
Posts: 18
I wrote a file named and tried to compile it
but it says.. is an invalid option or argument
usage : javac <-options> < source file>
and a list of usage option was given..what could be the problem
is it something with classpath ? i gave same name as class upper case or lower case mistake either.
Ray Marsh
Ranch Hand

Joined: Jan 12, 2000
Posts: 458
I got: "error: can't read file:"
Obviously I don't have that file, however, the error you're getting is when an option is entered that the compiler doesn't recognize.
Example: javac -f
I get: -f is an invalid option or arguement.
Double check your command line syntax. Option -g is useful for debugging a compile.
Hope this helps.

Anxiety does not empty tomorrow of its sorrows, but only empties today of its strength. – Charles Spurgeon
katyayan agrawal

Joined: May 05, 2001
Posts: 11
Dear friend
put your java file in c:\jdk1.2\bin and then compile instead of putting it in c:\jdk1.2\projects. Hopefully u will not find the said error.
You can also compile it from any folder by just setting the class path in console as --- set classpath=c:/jdk1.2/bin;
katyayan agrawal

Joined: May 05, 2001
Posts: 11
I am sorry not the set class path but setpath=c:/jdk1.2/bin; in console.
I agree. Here's the link:
subject: PLEASE HELP !!! JDK 1.2 problem
It's not a secret anymore!