 |
 |
need help about Java
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2004
Status:
Offline
|
|
sudo /Developer/Documentation/Java/scripts/unjarJavaDocumentation.sh
This is the command i just typed in terminal(extract the java API), but after running this script for 20 seconds, the terminal seems be dead, and stop with a sentence  bindexhelp, so i wait for 1-2 minute, then terminal looks 'Alive' again.
According to that info above can i say the java API has been extracted, and ok to use the safari to browse??!!
One more thing, i found the Hard disk sapce go down as well, which means there must some NEW stuff, but how can i find those stuff?
|
|
There were once four people named Everybody, Somebody, Nobody and Anybody. Somebody had to do a job, but Nobody wanted to do it. Nobody could see that Anybody could do it, and Somebody got angry about that because it was Everybody's job. Nobody ended up doing it, and it so happened that Everybody blamed Somebody when Nobody did what Anybody could have done.
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Looking at the script, it should be there in the documentation folder.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2004
Status:
Offline
|
|
#! /bin/sh
JAVAFRAMEWORK=/System/Library/Frameworks/JavaVM.framework/Versions
JAVAREFROOT=/Developer/Documentation/Java/Reference
#make a directory for the jar file
mkdir -p ${JAVAFRAMEWORK}/1.3.1/Resources/Documentation/Reference
mkdir -p ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference
#extract the jar into where Developer Help Center expects to find it
echo "Extracting Java Documentation"
# 1.3.1
cd ${JAVAFRAMEWORK}/1.3.1/Resources/Documentation/Reference/
jar xvf ${JAVAFRAMEWORK}/1.3.1/Home/docs.jar
#1.4.1
cd ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference/
jar xvf ${JAVAFRAMEWORK}/1.4.1/Home/docs.jar
jar xvf ${JAVAFRAMEWORK}/1.4.1/Home/appledocs.jar
#create a symlink to expanded javadoc from /Developer/Documentation/Java
#1.3.1
rm -r ${JAVAREFROOT}/1.3.1/Java131API_J2SEAndAppleExtensions
ln -sfh ${JAVAFRAMEWORK}/1.3.1/Resources/Documentation/Reference/docs/api ${JAVAREFROOT}/1.3.1/Java131API_J2SEAndAppleExtensions
#1.4.1
rm -r ${JAVAREFROOT}/1.4.1/Java141API_AppleExtensions
rm -r ${JAVAREFROOT}/1.4.1/Java141API_J2SE
ln -sfh ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference/doc/api ${JAVAREFROOT}/1.4.1/Java141API_J2SE
ln -sfh ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference/appledoc/api ${JAVAREFROOT}/1.4.1/Java141API_AppleExtensions
#create symlinks from JavaHome to expanded doc
ln -sfh ${JAVAFRAMEWORK}/1.3.1/Resources/Documentation/Reference/docs/api ${JAVAFRAMEWORK}/1.3.1/Home/docs
ln -sfh ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference/doc/api ${JAVAFRAMEWORK}/1.4.1/Home/docs
ln -sfh ${JAVAFRAMEWORK}/1.4.1/Resources/Documentation/Reference/appledoc/api ${JAVAFRAMEWORK}/1.4.1/Home/appledocs
#run PBHelpIndxer to reindex site
echo "Running PBHelpIndexer"
/Developer/Tools/pbhelpindexer
|
|
There were once four people named Everybody, Somebody, Nobody and Anybody. Somebody had to do a job, but Nobody wanted to do it. Nobody could see that Anybody could do it, and Somebody got angry about that because it was Everybody's job. Nobody ended up doing it, and it so happened that Everybody blamed Somebody when Nobody did what Anybody could have done.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2004
Status:
Offline
|
|
i am a kind of newbie, that is the script, can some one help me where are those extracted files, thx
|
|
There were once four people named Everybody, Somebody, Nobody and Anybody. Somebody had to do a job, but Nobody wanted to do it. Nobody could see that Anybody could do it, and Somebody got angry about that because it was Everybody's job. Nobody ended up doing it, and it so happened that Everybody blamed Somebody when Nobody did what Anybody could have done.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|