Cd c:\java gives me different output and javac doesnt work

Dear friends;
once I type cd c:\java it gives me different output and after that javac doesn't work
Like
javac filename.java
doesnt compile.
Any comments, please.
C:\Program Files>java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
C:\Program Files>

That error means that the file does not exist or you got the filename wrong (which means it does not exist)...
recheck the location of your file and verify that it actually there...
Step 2, now that we know that the J2SDK1.4.2_03 is installed in C:\j2sdk1.4.2_03\bin...
We can now set you path... If you have an Windows 2000 or XP then check this link in the forum...
http://forum.java.sun.com/thread.jsp?forum=54&thread=491703&tstart=0&trange=15
So what you do is right click on My Computer (icon) which will give you a menu...
Select Properties at which point you will see the System Properties Dialog window...
Select the Advanced Tab (called Details in Win2000) Click on the Environment Variables button...
Which will open the Environment Variable Dialog window... then in the second little window labeled System Variables, select Path and click on the edit button...
you will now see the Edit System Variable dialog window...
in Variable Value goto the the end of that line (make sure that nothing is selected/highlighted), type
";c:\j2sdk1.4.2_3\bin
make sure that you include the semicolon...
click ok to make the change, and via the ok buttons exit System Properties...
reopen DOS and now you should be able to run Javac.exe anywhere...
Hope this helps...
-MaxxDmg...
-' He who never sleeps...'

Similar Messages

Maybe you are looking for

  • Pse 8 for mac and iphoto 09

    I read on the elements 8 for mac page that it works easily with iphoto. My question is how? I can find nothing in the elements documentation about working with iphoto and when I try to access the iphoto library via file>open and select iphoto library

  • Currency conversion in SAP Query

    Hi, We need to develop a SAP query(SQ01) in which we have to pull two fields maintained in sales order (sales order net value & PO net value(ie.z field)). These fields’ values may be maintained in different currencies. So need to know how to convert

  • Filling in a shape with a dot pattern

    Hi there, I have this shape of a light which I am trying to fill with a dot pattern but when applied it cuts some of the dots off. How can I avoid this? Ideally it would also follow the 3 dimensional shape of the object, like the first picture. This

  • JCAPS 5.1.3 Can't enable application

    I have a simple eVision application. I've done some changes to it (deleted one page and link from the Page Flow) and tried to redeploy it. But the deployment ended with an exception and the app. couldn't be enabled. [#|2007-11-29T10:24:43.363+0100|IN

  • Strange Mailbox messages

    This is my second day with a 4s. I just finished deleting all the email, however, still in my mailbox is the following : (No Sender) (No Subject) This message has no content. They are all dated 12/31/69. I am unable to highlight them or delete them.