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: More on NetBeans failure to start



Bob,

Thanks for your help. I'd already modified nbexec to include a -d32 option
just to see what happens. No change (see my last post).


My netbeans.conf file contains the following value for netbeans_jdkhome:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

same as yours.

Also, thanks for the code to add to nbexec. Here are the results (contents
of jvmstartupinfo.txt):

netbeansstartup data
JDKHOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
CP:
/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/boot.jar:/Applications/Net
Beans/NetBeans 
6.1.app/Contents/Resources/NetBeans/platform8/lib/org-openide-modules.jar:/A
pplications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/org-openide-util.jar:/Appl
ications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/boot_ja.jar:/Applic
ations/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/boot_pt_BR.jar:/App
lications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/boot_zh_CN.jar:/App
lications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-modules
_ja.jar:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-modules
_pt_BR.jar:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-modules
_zh_CN.jar:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-util_ja
.jar:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-util_pt
_BR.jar:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8/lib/locale/org-openide-util_zh
_CN.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/dt
.jar
JARGS:
-Dnetbeans.system_http_proxy="DIRECT"
-Dnetbeans.system_http_non_proxy_hosts=""
-Dnetbeans.dirs="/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/nb6.1:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/ide9:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/java2:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/xml2:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/apisupport1:/Applications/NetBeans/NetBe
ans 
6.1.app/Contents/Resources/NetBeans/enterprise5:/Applications/NetBeans/NetBe
ans 
6.1.app/Contents/Resources/NetBeans/profiler3:/Applications/NetBeans/NetBean
s 6.1.app/Contents/Resources/NetBeans/gsf1:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/ruby2:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/visualweb2:/Applications/NetBeans/NetBea
ns 
6.1.app/Contents/Resources/NetBeans/identity2:/Applications/NetBeans/NetBean
s 
6.1.app/Contents/Resources/NetBeans/harness:/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/cnd2:"
-Dnetbeans.home="/Applications/NetBeans/NetBeans
6.1.app/Contents/Resources/NetBeans/platform8"
'-Dcom.apple.mrj.application.apple.menu.about.name=NetBeans'
'-Xdock:name=NetBeans' '-Xdock:icon=/Applications/NetBeans/NetBeans
6.1.app/Contents/MacOS/../Resources/NetBeans/bin/../nb6.1/netbeans.icns'
'-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade'
'-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense'
'-Xmx512m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m'
'-XX:MaxPermSize=200m' '-Xverify:none' '-Dapple.laf.useScreenMenuBar=true'
'-Dsun.java2d.noddraw=true'
ARGS:
--userdir "/Users/gnunes/.netbeans/6.1" "--branding" "nb"



Regards,
    gary



Bob Potterveld wrote (9/26/08 8:59 PM):

> Hi Gary,
> 
> My understanding based on using Netbeans 6.1 is that the jdk used by
> netbeans is defined in the file:
> 
> /Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/
> etc/netbeans.conf
> 
> I would assume that Netbeans 6.5 uses the same approach but have not
> confirmed this. Running netbeans from the dock or launching manually
> should ultimately startup netbeans using the jdk defined in this file.
> 
> On my system this file contains the following definition for
> netbeans_jdkhome. Note there are other properties defined.
> 
> # Default location of JDK, can be overridden by using --jdkhome <dir>:
> netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/
> 1.5/Home
> 
> Switching between JDK's to run the ide in means changing this file.
> 
> I'm not sure how this conf file gets originally setup but am presuming
> it is done so during installation of Netbeans. I don't know how it
> selects the java to use.
> 
> This conf file also has a property named netbeans_default_options.  If
> you need to alter some of the parameters passed to java / netbeans on
> startup, this would be the property to try modifying.
> 
> What jdk is the netbeans.conf file pointing to on your system?
> 
> I've been able to successfully switch between running the ide using
> netbeans_jdkhome set at 1.5  and 1.6. When running using 1.5, the
> default on my system is the 32 version. When I added -d64 to the
> netbeans_default_options I can force it to start in 64bit 1.5 mode.
> 
> If you can capture the exact command being issued on your system it
> might be helpful.
> 
> In the nbexec file add the following just before the eval statement
> you posted:
> 
> echo "netbeansstartup data" > $HOME/jvmstartupinfo.txt
> echo "JDKHOME:" >> $HOME/jvmstartupinfo.txt
> echo ${jdkhome} >>  $HOME/jvmstartupinfo.txt
> echo "CP:" >> $HOME/jvmstartupinfo.txt
> echo $cp >> $HOME/jvmstartupinfo.txt
> echo "JARGS:" >> $HOME/jvmstartupinfo.txt
> echo $jargs  >> $HOME/jvmstartupinfo.txt
> echo "ARGS:" >> $HOME/jvmstartupinfo.txt
> echo $args  >> $HOME/jvmstartupinfo.txt
> 
> This creates the file jvmstartupinfo.txt in $HOME. If you post your
> results I can try the exact same startup logic on my system and also a
> couple of other architecture variants.
> 
> 
> Bob Potterveld


 _______________________________________________
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: More on NetBeans failure to start (From: Bob Potterveld <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.