Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 22nd, 2007, 12:52 PM   #1
kandle
Newbie
 
Join Date: Oct 2004
Posts: 5
Rep Power: 0 kandle is on a distinguished road
Question 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.
kandle is offline   Reply With Quote
Old Aug 22nd, 2007, 12:58 PM   #2
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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.
ReggaetonKing is offline   Reply With Quote
Old Aug 22nd, 2007, 1:36 PM   #3
Ben.Dougall
Programmer
 
Ben.Dougall's Avatar
 
Join Date: Jul 2007
Location: London, Ontario, Canada
Posts: 34
Rep Power: 0 Ben.Dougall is on a distinguished road
Send a message via MSN to Ben.Dougall
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.
Ben.Dougall is offline   Reply With Quote
Old Aug 22nd, 2007, 2:01 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 22nd, 2007, 5:45 PM   #5
kandle
Newbie
 
Join Date: Oct 2004
Posts: 5
Rep Power: 0 kandle is on a distinguished road
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
kandle is offline   Reply With Quote
Old Aug 22nd, 2007, 6:47 PM   #6
Ben.Dougall
Programmer
 
Ben.Dougall's Avatar
 
Join Date: Jul 2007
Location: London, Ontario, Canada
Posts: 34
Rep Power: 0 Ben.Dougall is on a distinguished road
Send a message via MSN to Ben.Dougall
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.
Ben.Dougall is offline   Reply With Quote
Old Aug 22nd, 2007, 9:39 PM   #7
kandle
Newbie
 
Join Date: Oct 2004
Posts: 5
Rep Power: 0 kandle is on a distinguished road
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?
kandle is offline   Reply With Quote
Old Aug 23rd, 2007, 8:17 AM   #8
Ben.Dougall
Programmer
 
Ben.Dougall's Avatar
 
Join Date: Jul 2007
Location: London, Ontario, Canada
Posts: 34
Rep Power: 0 Ben.Dougall is on a distinguished road
Send a message via MSN to Ben.Dougall
Quote:
Originally Posted by kandle View Post
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?
Its only two commands in total.

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.
Ben.Dougall is offline   Reply With Quote
Old Aug 23rd, 2007, 4:03 PM   #9
kandle
Newbie
 
Join Date: Oct 2004
Posts: 5
Rep Power: 0 kandle is on a distinguished road
Thank you for reply.Screen is blurred,cd Java still does not work,will try something else.Thanks Again.
kandle is offline   Reply With Quote
Old Aug 23rd, 2007, 4:27 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC