![]() |
Class File ?
Downloaded jdk6 from Sun,started with the HelloWorld tutorial.HelloWorld.java is located in Local Disk (C:)-My Java(Folder).At the command prompt the command cd C:\java does not work.java &javac show up,how do I get the command cd C:\java to work? Have followed tutorial very carefully,but stuck at this step,Am I typing something wrong?The error-(C:) is not recognized as an internal or external command,operable program,or batch file.Any suggestions?Thank You.
|
Are you sure the correct path is C:\Java?
|
Well if java and javac commands work, you sent up autoexec.bat correctly, unless you installed the entrie SDK in whatever directory you ran those commands from.
According to your post, the folder your trying to get to is C:\My Java. If you can get the rest of the things right, but are unable to switch working directories, that doesn;t seem right at all. be sure the directory Java or My Java, whatever your trying to get to exists before attempting to get into it. the command dir will list all the directories. |
Your post isn't entirely clear. C:\My Java and C:\java are not the same thing, though.
If you'd like to avoid inadverent smilies in your posts, click "Go Advanced", look under "Additional Options", and turn them off. |
Thank you for replys.I will start over,my fault,in too much of a hurry.jdk1.6.0_02 is in Program Files folder-Java,Local Disk(C:). HelloWorld.java is in folder C JAVA,Local Disk(C:).At the command prompt -cd C:\Java does not work,but cd /d c:\C JAVA showsC:\C JAVA. Path is set C:\Program Files\Java\jdk1.6.0_02\bin .java &javac each bring up a list at the prompt.At C:\C JAVA-HelloWorld.java.txt brings up the saved HelloWorld in Notepad.Am trying the Sun HW tutorial,but apparently I have missed something.Maybe this is clearer than my last post.Thank You for your time and help.
|
If the folder JAVA exists within the C:\, cd JAVA works... try going "C:" and then " cd .. " until the prompt says C:\>. the command cd JAVA will go to that directory.
like i said, if the folder exists, this will work. If the folder exists, and this doesn't work... you screwed up, or your os is messed up. |
Ben.Dougall thank you for reply.The Folder C JAVA exists in Local Disk(C:).When I click on command prompt-C:\Documents and Settings\Mike>_ .What would be the next command I type?
|
Quote:
Look at the screenie: http://img507.imageshack.us/img507/4...ommandszb9.jpg Like i said... if the folder exists... the command should work no program. |
Thank you for reply.Screen is blurred,cd Java still does not work,will try something else.Thanks Again.
|
I would suggest that reading some basic documentation would be more efficient than posting in a forum for each "cd whatever" that failed. A mere ls or dir would answer a lot of questions.
|
| All times are GMT -5. The time now is 2:58 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC