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 > Developer Center > Java 1.4.2 API missing in xcode 1.5

Java 1.4.2 API missing in xcode 1.5
Thread Tools
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status: Offline
Reply With Quote
Apr 15, 2005, 02:15 PM
 
For some reason I don't have the Java 1.4.2 API in Xcode. I know you can access it on the web on Sun's website, but it would be nice to have it searchable in Xcode. If I click on Java in the Developer Documentation window, all the cocoaJava stuff is there, but no plain old java stuff. In the bottom pane I get the Java Reference Library page, if I click on API Reference and then select Java 1.4.2 API Reference: J2SE, I get the message "No file found at: /Developer/ADC Reference Library/documentation/Java/Reference/1.4.2/doc/api/index.html".

The closest folder I can find to that path is "/Developer/ADC Reference Library/documentation/Java/Reference/1.4.2/Java142API_J2SE" in that folder there's an index.html that tells me to run "sudo /Developer/Documentation/Java/scripts/unjarJavaDocumentation.sh", but when I do I get a "command not found" out of the Terminal. Any ideas on how I can fix this, or where I can find a full downloadable API that I can put in the right folder?

Thanks in advance folks
12" Rev B PB
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Apr 15, 2005, 05:39 PM
 
My copy of that file tells me to run sudo /Developer/ADC\ Reference\ Library/documentation/Java/scripts/unjarJavaDocumentation.sh
     
Thorin  (op)
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status: Offline
Reply With Quote
Apr 15, 2005, 06:00 PM
 
Thanks for the reply. I didn't mention in the first post, but I'd already done that (which is why I have the cocoa-java documentation showing up). I get the following error when I run that:

Code:
Extracting Java Documentation java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/docs.jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.tools.jar.Main.run(Main.java:185) at sun.tools.jar.Main.main(Main.java:904) java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/appledocs.jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.tools.jar.Main.run(Main.java:185) at sun.tools.jar.Main.main(Main.java:904) Running PBHelpIndexer
So ironically the only bit I need seems to be the only bit I don't have!

Anyone have any other ideas?
12" Rev B PB
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Apr 15, 2005, 06:02 PM
 
Uninstall your devtools, reinstall them.
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Apr 15, 2005, 09:31 PM
 
You may also need to find and install the Java SDK, though I'm not sure. Make sure you have the latest dev tools as well.
     
Thorin  (op)
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status: Offline
Reply With Quote
Apr 16, 2005, 04:29 PM
 
Ok, I'm loathed to uninstall anything at the moment, as I'm in the middle of a project working on a fairly tight deadline.

I've downloaded and installed the Java 1.4.2 Update 1 Developer Tools and I now have the documentation as HTML in the XCode documentation window. It isn't listed by class/method etc and isn't searchable like the cocoa-java documentation is.
12" Rev B PB
     
   
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:25 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