 |
 |
Java 1.4.2 API missing in xcode 1.5
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status:
Offline
|
|
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
|
|
My copy of that file tells me to run sudo /Developer/ADC\ Reference\ Library/documentation/Java/scripts/unjarJavaDocumentation.sh
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status:
Offline
|
|
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
|
|
Uninstall your devtools, reinstall them.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jul 2002
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Oct 2003
Location: UK
Status:
Offline
|
|
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
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |