![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 5
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Sexy Programmer
|
Are you sure the correct path is C:\Java?
__________________
I would love to change the world, but they won't give me the source code! Last edited by ReggaetonKing; Aug 22nd, 2007 at 1:09 PM. |
|
|
|
|
|
#3 |
|
Programmer
|
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.
__________________
My site :: http://www.freewebtown.com/dougalbe I'll try to be nicer, if you try being smarter. |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Oct 2004
Posts: 5
Rep Power: 0
![]() |
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.Last edited by kandle; Aug 22nd, 2007 at 5:46 PM. Reason: REMOVE SMILIES |
|
|
|
|
|
#6 |
|
Programmer
|
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.
__________________
My site :: http://www.freewebtown.com/dougalbe I'll try to be nicer, if you try being smarter. |
|
|
|
|
|
#7 |
|
Newbie
Join Date: Oct 2004
Posts: 5
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#8 | |
|
Programmer
|
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.
__________________
My site :: http://www.freewebtown.com/dougalbe I'll try to be nicer, if you try being smarter. |
|
|
|
|
|
|
#9 |
|
Newbie
Join Date: Oct 2004
Posts: 5
Rep Power: 0
![]() |
Thank you for reply.Screen is blurred,cd Java still does not work,will try something else.Thanks Again.
|
|
|
|
|
|
#10 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem processing file into a char array | csrocker101 | C++ | 1 | May 8th, 2007 11:50 PM |
| OnlineTextEditor.Com! | Sane | Show Off Your Open Source Projects | 43 | Jun 16th, 2006 8:55 AM |
| Problem Associated with Vector Source code | buggytoast | Java | 3 | Apr 2nd, 2006 5:41 AM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 9:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |