Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java 1.5 plist



Greg et. al.,

Okay now I'm getting somewhere. After running the app from the terminal I get:

AWM01:~ macawm$ java -classpath /System/Library/Frameworks/ JavaVM.framework/Versions/1.5.0/Home/lib/deploy.jar com.sun.deploy.panel.ControlPanel

Exception in thread "main" java.lang.NullPointerException
at com.sun.deploy.panel.AppleJREListModel.refresh (AppleJREListModel.java:72)
at com.sun.deploy.panel.AppleJREListModel.<init> (AppleJREListModel.java:36)
at com.sun.deploy.panel.AppleJREDialog.<init> (AppleJREDialog.java:34)
at com.sun.deploy.panel.AppleGeneralPanel.getApplicationPanel (AppleGeneralPanel.java:160)
at com.sun.deploy.panel.AppleGeneralPanel.initComponents (AppleGeneralPanel.java:100)
at com.sun.deploy.panel.AppleGeneralPanel.<init> (AppleGeneralPanel.java:40)
at com.sun.deploy.panel.ControlPanel.initComponents (ControlPanel.java:130)
at com.sun.deploy.panel.ControlPanel.<init> (ControlPanel.java:45)
at com.sun.deploy.panel.ControlPanel.main(ControlPanel.java: 373)


Anthony

On Aug 14, 2005, at 5:38 PM, Greg Guerin wrote:

If you can't reinstall J2SE 5.0, it's probably because there's already a
receipt for it in /Library/Receipts/. It should be named
"Java15Release1.pkg". Drag it out or trash it (you'll need to be an admin
user), and you should be able to reinstall J2SE 5.0.


After reinstalling, if Java Preferences still won't run, there should be a
stack trace in the console log. Please copy and paste that trace into an
email and post it to the list.



With J2SE 5.0 installed, you should be able to run the Java Preferences
main class from the command-line, or you can fabricate a simple replacement
app-bundle. The app itself is found in this jar, so use it as the
classpath:
/System/Library/JavaVM.framework/Versions/1.5.0/Home/lib/deploy.jar


The main class is:
  com.sun.deploy.panel.ControlPanel

If you run from the command-line, be sure to run the 1.5 JVM. If you
fabricate an app-bundle, be sure to specify JVMVersion as 1.5, or it won't
work.


And you may want to set the "apple.laf.useScreenMenuBar" property to true.

-- GG

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Java 1.5 plist (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.