wood burning stoves
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
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 compstr.java and tried to compile it
c:\jdk1.2\projects\javac compstr.java
but it says.. compstr.java 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 file..no upper case or lower case mistake either.
Ray Marsh
Ranch Hand

Joined: Jan 12, 2000
Posts: 458
I got: "error: can't read file: compstr.java"
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 compstr.java
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: http://aspose.com/file-tools
subject: PLEASE HELP !!! JDK 1.2 problem
It's not a secret anymore!