This content has been marked as final. Show 12 replies
Is this because the Java development kit 1.6.0_02 is too new and the same procedures I have outlined in the book I'm using are outdated?
no, it's because the file is protected against being opened by people with less than 5 years' experience programming Java professionally.
do you realise that "mkdir src" will not actually unzip anything?
Your operating system is saying you can't create a directory...
I know, but this is the first step towards unzipping. Look, the book I'm using states this as a preliminary step and therefore I doubt it would take a top programmer to decipher these things.
What is this Windows? Just double click the zip file.
If you are on Linux try to do the previous step as root.
sudo mdkir src (or su and then mkdir on systems without sudo)
you will also have to unzip the file as root.
You are getting the permision error because the folder you are trying to write in (probably /usr/lib/vm) is not writtable.
I'm using Windows Vista Ultimate Edition. I have to unzip the file in the command prompt like this: jar xvf ..\src.zip. But first I have to mkdir src. I'll try to do it without the mkdir src unless there is another way to get ready for jar xvf ..\src.zip. When I use mkdir src, like I said, I get the message: access denied.
Message was edited by:
Windows is denying you the ability to write in/change the folder that you're in when you try to make the subdirectory.
Use the command mkdir in a folder that you have write privileges to - like your Documents folder.
Please learn how to use Windows commnads (2nd request!)
I'm using Windows Vista Ultimate Edition. I have toNo you don't. Why do you feel you have to do that?
unzip the file in the command prompt
And to backtrack a bit here.
You're doing this because why again? A book told you to so that you can learn Java?
Throw the book away. You do not need the source for the basic libraries to learn Java and a book that tells you otherwise is rubbish.
I don't think that Core Java 2 Volume 1-Fundamentals seventh edition by Sun Microsystems Press is rubbish. Two Phd guys wrote it.
I'm using Windows Vista Ultimate Edition. I haveto
unzip the file in the command promptNo you don't. Why do you feel you have to do that?
And to backtrack a bit here.
You're doing this because why again? A book told you
to so that you can learn Java?
Throw the book away. You do not need the source for
the basic libraries to learn Java and a book that
tells you otherwise is rubbish.
Ok, Windows Vista really gets in the way of using the command prompt.
You can just open Windows Explorer, create the src directory where you want (User Account Control "UAC) will jump out and ask for permission if you're writting to a protected dir).
You also could unpack the source with a GUI tool like WinRar or Winzip (.jars are just zip files with metainfo) to the dir you just created.
But if you absolutely want to do that via command prompt and write to a protected dir you must first disable UAC (http://www.petri.co.il/disable_uac_in_windows_vista.htm).
Just remember to enable it back again if you feel like it ok?
I don't think that Core Java 2 Volume 1-FundamentalsNeither the publisher nor the stated degrees of the authors tell anything about the quality of the work...
seventh edition by Sun Microsystems Press is rubbish.
Two Phd guys wrote it.
You don't need the sources, period (in fact, you should probably not look at them except as a last resort when debugging if something really strange happens and you can't figure it out from your own code what you're doing wrong).