This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE Dev (Build 200509141800) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0_04-ea; Java HotSpot(TM) Client VM 1.5.0_04-ea- b02; Sun Microsystems Inc Profiler Build050915 ---- Started with clean userdir, calibrated jdk1.5.0_04. Added Sun Java Web App server 8.1PE (SJWA). Created new WebApl with this SJWA. (note its using same jdk as netbeans itself) When i try to Profile Main Project warning window "Select Java Platoform for Profiling" appears with confusing: "The Java Platform for this project cannot be used for profiling." (as i understand it it should be: "The Java Platform of this project cannot be used for profiling"). And dialog itself offers selection with only one JDK in it, which is exactly same JDK as webapp/profiler (use java platform defined in project)/netbeans is already using.
In fact the message means that JDK set for starting the server is not supported by the Profiler. For Tomcat this works, because it has the 1.5 set as default in its customizer. However, SJSAS doesn't have similar setting which JDK will be used so the user has to define it on its own. If you set concrete JDK for profiling in Profiler global settings, it will be used for starting the server automatically. The dialog message will be updated accordingly.
Changed message "The Java Platform for this project cannot be used for profiling." to "The Java Platform this project runs on cannot be used for profiling." For J2SE project this means that Java Platform of the project (defined in project's customizer) cannot be used for profiling. For J2EE/Web project this means that Java Platform of the server (defined in server's customizer) cannot be used for profiling. Fixed for M12.
Seems more clean for me now :-) Verified.
Closing old issues
Reverting to original Target Milestone value changed by mistake. Sorry for inconvenience.