Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > need help about Java

need help about Java
Thread Tools
Dedicated MacNNer
Join Date: Aug 2004
Status: Offline
Reply With Quote
Jan 22, 2005, 07:20 PM
 
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
Reply With Quote
Jan 22, 2005, 08:27 PM
 
Looking at the script, it should be there in the documentation folder.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
maCCer  (op)
Dedicated MacNNer
Join Date: Aug 2004
Status: Offline
Reply With Quote
Jan 22, 2005, 08:30 PM
 
#! /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.
     
maCCer  (op)
Dedicated MacNNer
Join Date: Aug 2004
Status: Offline
Reply With Quote
Jan 22, 2005, 08:32 PM
 
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.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2