This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Accessing JDK1.3.1 folder from the DOS root directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Accessing JDK1.3.1 folder from the DOS root directory" Watch "Accessing JDK1.3.1 folder from the DOS root directory" New topic
Author

Accessing JDK1.3.1 folder from the DOS root directory

Jessica Lang
Ranch Hand

Joined: Jul 23, 2002
Posts: 61
I tried accessing the JDK1.3.1 folder from the MS-DOS Prompt root directory ("C: ")by issuing the command "cd jdk1.3.1" and it says invalid directory. I am using Microsoft XP OS. Any clue?
Thanks...
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This is provbably telling you that whatever program you are running (command prompt, etc.) is currently at a different "current working directory".
Try:
cd \JDK1.3.1
instead.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

"Jessica"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
PS... nice first name though
Jessica Lang
Ranch Hand

Joined: Jul 23, 2002
Posts: 61
Hi Frank,
The 'try' didn't work...but thanks for helping..
After much research, I have figured out the reason. I upgraded my Win 98 recently to XP recently. In my previous WIn 98 desktop, I have a MS-DOS Prompt shortcut, so, when upgraded the OS, this short-cut remains on the XP desktop.
From my research, Win 98 uses Command.com while XP uses cmd.exe. Both commands treat the filename differently. In Command.com, it doesn't recognise "jdk1.3.1", 'cause it it confused with the many DOTS of the foldername...hence, it says "Invalid Directory". However, XP cmd.exe is about to recognise the "jdk1.3.1" foldername. So, I am using the XP cmd.exe which is activated from the START menu> ALL PROGRAMS> ACCESSORIES> COMMAND PROMPT
I am glad that I have managed to solve these two problems today.....Thanks to JavaRanch, all the members and a very helpful fren called Tony....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing JDK1.3.1 folder from the DOS root directory
 
Similar Threads
Win Xp compile problems help!!
doubt on absolute path and relative path
Win Xp compile problems help!!
Unable to run an applet with appletviewer
I feel kinda dumb but...