JTable in NetBeans IDE

Hi
Not sure if this is the right forum for a NetBeans question?!
I've created a program using NetBeans, which contains a form/screen displaying a JTable.
While the JTable displays the data from my TableModel object OK, it is not displaying the column names (an array of Strings in my TableModel).
Any ideas on how I might fix this?
Thanks in advance!

Don't use an IDE to write your code. Learn how to write the code yourself. Here is a simple example:
http://forum.java.sun.com/thread.jspa?threadID=595582&messageID=3143964

Similar Messages

  • How do I add a TableModelListener using NetBeans IDE 6.0

    I added a JTable using the IDE but I need to be able to detect when someone has changed the value in a cell.
    From reading I found that I need a TableListener and can use TableChanged and GetValueAt but I can not determine how or where I am suppossed to add that code.
    It seems like it should be in the Guarded block because that is the only part of my code where my JTable is in scope.
    I tried adding a TableModelListener in the section of code that I can edit...right above main and the section where the IDE adds lines like these....
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
    So long story short I still can not determine how to add a Listener to my table.
    Is it something I have to edit myself or can the IDE add it? I can only see Mouse and Key Listeners that I can add in the IDE.

    Hi,
    Sorry I don't have a ready answer to your question, which by now you have probably resolved already. One reason you did not receive a timely reply is that this is a Java Studio Enterprise (JSE) forum, and not a NetBeans forum. Although these are two different products, many of the Enterprise features of JSE can be found in the current NetBeans 6.0 product.
    The general place to ask NetBeans questions is at [email protected]
    Regards,
    -Brad Mayer

  • JavaBeans in NetBeans IDE 6.0

    I got it!
    Edited by: Cool_breez on Apr 25, 2008 3:14 PM

    Hi,
    Yes, sorry for not including the code. It was rather a lot all
    generated by netbeans.
    Now, because of different reasons I decided not to continue with the
    data bindings provided in the netbeans ide nor the java desktop
    database application like it is generated by the netbeans ide. Those
    reasons being:
    1. Something that should have worked simply did not work.
    2. I was not too happy with the provided functionality anyway. Too
    much clicks needed to perform the crud operations.
    3. The whole construct is to complex, very hard to understand and
    maintain and probably new versions will give an unneeded maintenance
    problem.
    So I will not use the data binding and conceive a solution using
    directly the more basic Java components like the Jtable (without
    databinding and writing my own tablemodel, ...).
    Thanks :c), BoBi

  • Problem with Netbeans IDE 5.0: Building Gui

    Hello,
    I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
    Step 1) Create a myJPanel class (new JPanel Form)
    Step 2) make a simple operation on myJPanel such as adding a JTable.
    Step 3) Create a myJForm Class (new JFrame Form)
    Step 4) Adding a JPanel to myJFrame (default name jPanel1)
    Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
    this should set the jPanel1 (and all its contents and behaviours) created
    in step 4 equals to myJPanel();
    Step 6) run myJFrame;
    ........ and nothing happens. It is dispalyed just a gray JFrame.
    It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
    Hope you may help me,
    thx

    Unfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.

  • NetBeans IDE 4.1 & a class file

    Hello, I use NetBeans IDE 4.1 to write my java programs. I've been assigned to write a program that will prompt the user for an input. To make this easier, my University has written a file called "In.java" so we can easily get any type of input from the user. For example if we want the user to enter his/her name, we would write:
    System.out.println ("Please enter your name: ");
    String name = In.getString(); //allows user to enter a string
    The "In.java" file is supposed to be kept and compiled in the directory I'm working in. I kept it in C:\j2sdk1.4.2_09 and it works fine when I write a program in notepad but not NetBeans IDE. It does not recognize the "In.class" file. Any way to get around this? Thanks in advance.

    NetBeans 4.1 is bundled with J2sdk1.5.0_04. Check your NetBeans classpath and see if it is pointing to the newer sdk.
    If so, it needs to be changed to point to your older SDK...
    ... or, get your In.class file into the current NetBeans classpath...
    ... or read up on, and use the new Scanner class in the new sdk.

  • Swing application with JavaHelp crashes outside Netbeans IDE.

    Hi guys I have developed a small swing application in Netbeans IDE. I used the following code inside the IDE for JH.
    public void createHelp()
           try {
                   URL hsURL = new URL("jar:file:eDictionaryHelp.jar!/eDictionaryHelp/eDictionary.hs");
                   hs = new HelpSet(null, hsURL);
           catch (Exception ee)
            // Say what the exception really is
            System.out.println( "HelpSet " + ee.getMessage());
            System.out.println("HelpSet "+ helpHS +" not found");
            JOptionPane.showMessageDialog(new JFrame(), ee.getMessage(), "Error", ERROR_MESSAGE);
            hb = hs.createHelpBroker();
       }When I run the program inside the IDE and and click on the corresponding MenuItem.. JavaHelp comes up as it should! No problems with that.
    But when I build the project and tried to run it from the .jar file in the PROJECT_HOME/dist/ the swing got displayed till this function was called. and then it simply crashed.
    Investigating further and commenting out one line at a time and compiling I found out that whenever the hs = new HelpSet(null, hsURL); is encountered, the app crashes (it doesnt throw any error).
    But as I said this is not the case when i run and compile inside the IDE. I only get this problem when running the app from outside the IDE.
    I have tried all kinds of combinations of the URL .. for eg ( I am aware of Bug 4149782)
    ClassLoader cl = this.getClass().getClassLoader();
    try {
                   URL hsURL = HelpSet.findHelpSet(cl, helpHS);
    .What can be the problem guys? Any suggestions?
    Thanks!

    Anyone has an answer on this?
    I am facing the same problem.. I am using NetBeans 5.5
    arijit_datta, do u have a solution for this problem already?
    Thanks,
    SK

  • Sun Studio (12,1) is unable to find a supported version of the Netbeans IDE

    Hi all,
    We're working on upgrading both the hardware and software on our application currently, and part of this involves upgrading our compiler to Sun Studio 12.1. I downloaded
    SunStudio12u1-SunOS-SPARC-pkgs-ML.tar.bz2
    from the Sun website and we installed it into the following location on our server:
    /opt/compiler/sunstudio12.1
    I successfully compiled all my code using the compiler, however, when I try to launch the debugger by typing ./sunstudio in the 'bin' directory, I get the following error:
    {opt/compiler/sunstudio12.1/bin}./sunstudio
    Sun Studio is unable to find a supported version of the NetBeans IDE.
    Sun Studio requires a NetBeans IDE version 6.5.1 with NetBeans C/C++ module (cnd
    2) enabled.
    Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/compiler/sunstudio12.1/netbeans
    I have seen references to executing 'prepare_system' on forums while I was trying to investigate this, but when our sys admin folks try to execute the command, it does not work (command not found). They've mentioned that they expected a prepare_system script in the directory where we untarred the downloaded sun studio tarfile, but it is not there:
    drwxrwxr-x 4 59001 staff 1024 Aug 20 2009 .
    drwxr-xr-x 3 yu12 lifecad 1024 Jul 2 09:48 ..
    drwxrwxr-x 4 59001 staff 1024 Aug 17 2009 LEGAL
    -rw-rw-r-- 1 59001 staff 3985 Aug 19 2009 SS12u1_README-pkgs.txt
    -rw-r--r-- 1 59001 staff 5598 Aug 20 2009 SS12u1_README-pkgs_ja.html
    -rw-r--r-- 1 59001 staff 4155 Aug 20 2009 SS12u1_README-pkgs_zh.html
    -rwxrwxr-x 1 59001 staff 517979136 Aug 6 2009 SunStudio12u1-SunOS-SPARC-pkgs.sh
    -rwxrwxr-x 1 59001 staff 11814 Aug 6 2009 install_patches.sh
    drwxrwxr-x 5 59001 staff 96 Aug 17 2009 patches
    I can see a netbeans directory was created as part of the install, but I'm not sure why sun studio thinks netbeans is not available (afraid my knowledge about netbeans is practically non existent):
    {opt/compiler/sunstudio12.1/netbeans}ls -l
    total 6062
    drwxr-x--- 2 root root 512 Apr 5 11:14 bin
    drwxr-x--- 7 root root 512 Apr 5 11:14 cnd2
    -rw-rw-r-- 1 root root 5254 Mar 5 2009 CREDITS_ja.html
    -rw-rw-r-- 1 root root 5175 Mar 5 2009 CREDITS_pt_BR.html
    -rw-rw-r-- 1 root root 4908 Mar 5 2009 CREDITS_zh_CN.html
    -rw-rw-r-- 1 root root 5434 Mar 5 2009 CREDITS.html
    -rw-rw-r-- 1 root root 1717 Mar 5 2009 DISTRIBUTION.txt
    -rw-rw-r-- 1 root root 0 Aug 6 2009 dummy
    drwxr-x--- 2 root root 512 Apr 5 11:14 etc
    drwxr-x--- 7 root root 512 Apr 5 11:14 gsf1
    drwxr-x--- 6 root root 512 Apr 5 11:14 ide10
    -rw-rw-r-- 1 root root 1845 Mar 5 2009 LEGALNOTICE.txt
    -rw-rw-r-- 1 root root 64275 Mar 5 2009 LICENSE.txt
    -rw-rw-r-- 1 root root 37141 Mar 5 2009 moduleCluster.properties
    drwxr-x--- 7 root root 512 Apr 5 11:14 nb6.5
    -rw-rw-r-- 1 root root 15822 Mar 5 2009 netbeans.css
    drwxr-x--- 8 root root 512 Apr 5 11:14 platform9
    -rw-rw-r-- 1 root root 6141 Mar 5 2009 README_ja.html
    -rw-rw-r-- 1 root root 5692 Mar 5 2009 README_pt_BR.html
    -rw-rw-r-- 1 root root 5122 Mar 5 2009 README_zh_CN.html
    -rw-rw-r-- 1 root root 5155 Mar 5 2009 README.html
    -rw-rw-r-- 1 root root 2913280 Mar 5 2009 THIRDPARTYLICENSE.txt
    drwxr-x--- 5 root root 512 Apr 5 11:14 websvccommon1
    Our server details are:
    {opt/compiler}uname -a
    SunOS a03714 5.10 Generic_142900-03 sun4v sparc SUNW,T5440
    Any advice appreciated on how to get the debugger working. Ideally, I'd prefer not to uninstall / reinstall if at all possible as we're about to start system testing our executables, and I think a reinstall would require more unit teting and delays to our project (yikes!). But any input would be appreciated here.
    Thanks,
    Brendan.

    Hi David,
    First off - thanks for the response. I do have some follow up questions if you don't mind though:
    1. When you say the install is corrupted, do you suspect
    - the file I downloaded from the website either was corrupted, or was not the correct file for my platform
    - the procedure used to install the software was incorrect
    - something else
    2. Is there a logfile that the sun studio install creates which would indicate an error during the installation procedure? I'm sure our admins who performed the install would have shouted if an error was logged... but on the offchance that the installation does not 'shout loudly' for some errors, I'd like to see a log of the error. At a minimum, I'd expect it to say why the install failed, and what we need to modify to ensure a successful install next time 'round.
    3. I successfully compiled my code using the C compiler from the install. My unit tests also look good... does this suggest that the install was at least a partial success, and would you suspect that my recompiled executables are reliable, despite the fact that I cannot launch the IDE?
    4. Today, one of our admins telnetted to our unix server - not via exceed by the way, but he did try the following test:
    - set his display env variable (he knew he would not get a display however)
    - executed the sunstudio script
    He did not get the netbeans error, and the process appeared to be running (as I mentioned, without a display) until he killed it. I've asked if they can repeat the test using an exceed session. I thought there may be something on his $PATH that I did not have - unfortunately this was not the case (although, he may have access as 'root' to something that I require to launch the IDE). My question is, would you expect this behaviour if the install was corrupted?
    Let me know what you think.
    Thanks,
    Brendan.

  • How  to include the inner classes in a jar file in netbeans ide

    Dear java friends
    how to say to netbeans ide that it has to include the
    inner classes in the jar file.
    (i have one single applet class
    with two inner classes that show up
    in the build/classes file but not in the jar).
    The applet works in the viewer but not
    in the browser (I believe because the
    xxx$yyy etc should be in the jar)
    willemjav

    First, please stop posting the same question multiple times:
    Duplicate of http://forum.java.sun.com/thread.jspa?threadID=5269782&messageID=10127496#10127496
    with an answer.
    Second, If your problem is that you can't do this in NetBeans, you need to post to somewhere that provides NetBeans support - like the NetBeans website's mailing list. These forums do not support NetBeans (or any other IDE) - they are Java language forums.

  • How to build jms files using netbeans ide

    hi,
    i am using the latest netbeans ide to build a simple jms java file,
    but i am getting this:
    init:
    deps-jar:
    Compiling 10 source files to
    C:\wrox\pro_jms\Chapter04\Test\build\classes
    C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:4: package
    javax.jms does not exist
    import javax.jms.*;
    C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:11: cannot find
    symbol
    the netbeans ide i am using is jdk_1.6, which when i use directly to
    compile in command line mode, works. can anyone tell me why this is
    happening?
    thanks.

    I take it that you are trying to build a Java applicaiton that uses JMS API. To do it in netbeans using SUN OpenMQ I usually follow those steps:
    1) I create a new project
    2) I add JMS library. This is a library that I had created in netbeans using Library Manager. It consist of jms.jar ( this jar file contains the definition of JMS API). Next jar file is the implemention of the JMS API, in case of SUN OpenMQ it's imq.jar, but if you're using a different JMS provider it may be a different file. The last jar file in my JMS library is usually fscontext.jar, this jar file provides JNDI access to a file based store. Again if you're using something like ldap then it would be a different jar file.
    That's basicly it - Tom

  • Unable to configure Netbeans IDE for IDM

    I am trying to configure Netbeans IDE for my IDM project. I am using Netbeans 6.8 with the compatible plugin with JDK 1.6.
    For creating the project, I select Identity Manager Project and then provide the war file, that I create for my existing IDM installation(so that Netbeans IDM project is connected with my existing IDM project), and then select Configure repository later.
    When I perform Build, I get the following error.
    <Error during build>
    Indexing C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\custom\WEB-INF\config\custom-init-postprocess.xml
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\idm-staging\sample\admins.xml: Unexpected error parsing: com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
    ==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
    com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
    ==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\nbproject\nbjdk.xml:8: The following error occurred while executing this line:
    C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\build.xml:384: Object validation failed; see object validator error output for details.
    BUILD FAILED (total time: 21 seconds)
    </Error>
    Anyone with similar issues, and workarounds would be appreciated.

    Use Netbeans 6.1 and Sun Identity Manager 8.1.1 and download plugin com-sun-idm-ide_8.1.0.20080630.nbm from http://java.net/projects/identitymanageride/downloads
    Currently i have installed it and it is working fine for me.
    OR
    re-downloaded idm ide-bundle.zip respective to your idm version and try to craete project in Netbeans 6.1 and 6.8.

  • Problem in Connectivity to Derby Database in Netbeans IDE

    I am using the newest version of Netbeans IDE
    I already set the variable for JAVA_HOME and DERBY_HOME along with the path variables.
    I am trying to connect to Database in Network Mode
    using the following code
    try
    Class.forName("org.apache.derby.jdbc.ClientDriver");
    catch(ClassNotFoundException exception)
    exception.printStackTrace();
    but it is giving the runtime error that "Unable to load Driver"
    Please help me to get through this

    Try adding the following to your class:
    import org.apache.derby.jdbc.ClientDriver;
    If it produces an error, your driver *.jar file is not in the classpath.

  • BEGINNER - NetBeans IDE

    Hi
    In NetBeans IDE >> Palette Window >> JFrame properties, I set the background color to (for example) blue but when I run with F6 key, the appearing window is always at gray color. Why?
    Thanks in advance

    hi ,try this
    put a JPanel on the JFrame and set background color property of the JPanel .

  • Cannot find class CustomerFacadeRemote in NetBeans IDE 5.0 Quick Start Guid

    Hi,
    I am new to Sun Java Studio Enterprise 8.1. I am follwing NetBeans IDE 5.0 Quick Start Guide for J2EE Applications example and got two following errors:
    C:\SunStudioWS\CustomerBook\CustomerBook-war\src\java\web\CustomerDetail.java:41: cannot find symbol
    symbol : class CustomerFacadeRemote
    location: package ejb
    ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
    C:\SunStudioWS\CustomerBook\CustomerBook-war\src\java\web\CustomerDetail.java:41: cannot find symbol
    symbol : method lookupCustomerFacadeBean()
    location: class web.CustomerDetail
    ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
    2 errors
    C:\SunStudioWS\CustomerBook\CustomerBook-war\nbproject\build-impl.xml:299: The following error occurred while executing this line:
    C:\SunStudioWS\CustomerBook\CustomerBook-war\nbproject\build-impl.xml:141: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 1 second)
    Here is the code:
    * CustomerDetail.java
    * Created on July 23, 2007, 3:27 PM
    package web;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author yl
    * @version
    public class CustomerDetail extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet customerDetail</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Servlet customerDetail at " + request.getContextPath () + "</h1>");
    String customerNr = request.getParameter("customer_nr");
    if((customerNr != null) && !(customerNr.equals("")))
    try{
    ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
    out.println("Customer's info for nr. " + customerNr + ": " + custFacade.getCustomerInfo(
    Integer.parseInt(customerNr)));
    }catch(javax.ejb.FinderException ex){
    out.println("Customer with nr. " + customerNr +" not found");
    out.println("<form>");
    out.println("Customer number: <input type='text' name='customer_nr' />");
    out.println("<input type=submit value=Select />");
    out.println("</form>");
    out.println("</body>");
    out.println("</html>");
    out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    private web.ServiceLocator serviceLocator;
    private web.ServiceLocator getServiceLocator() {
    if (serviceLocator == null) {
    serviceLocator = new web.ServiceLocator();
    return serviceLocator;
    private ejb.CustomerFacaderRemote lookupCustomerFacaderBean() {
    try {
    return ((ejb.CustomerFacaderRemoteHome) getServiceLocator().getRemoteHome("java:comp/env/ejb/CustomerFacaderBean",ejb.CustomerFacaderRemoteHome.class)).create();
    } catch(javax.naming.NamingException ne) {
    java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
    throw new RuntimeException(ne);
    } catch(javax.ejb.CreateException ce) {
    java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
    throw new RuntimeException(ce);
    } catch(java.rmi.RemoteException re) {
    java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,re);
    throw new RuntimeException(re);
    Thank you very much for any help.
    ylou

    In the code you have posted, some places refer to '.CustomerFacader' while others refer to '.CustomerFacade' leading to issues.
    Also: Have you considered using NetBeans 5.5.1 as an alternative to JSE 8.1?
    http://forum.java.sun.com/thread.jspa?threadID=5192837

  • Java 1.4.2 with NetBeans IDE 3.5 - Error Message, please help

    Hello, I have downloaded the "J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the install finished it said there was an error and to please refer to the log file.
    Here is what the log file says:
    "Installing J2SDK..."
    "Finished Installing J2SDK..."
    (Jul 1, 2003 7:53:14 AM), Setup.product.install, com.sun.installer.InstallJ2sdkAction, err, Error occured while installing [0] -> D:\Program Files\j2sdk_nb\_uninst\custom-install.bat "D:\Program Files\j2sdk_nb\install.log" "D:\Program Files\j2sdk_nb\j2sdk1.4.2\" D: "D:\Program Files\j2sdk_nb\_uninst"
    Now when I try to run "NetBeans IDE 3.5" I get an error message:
    Cannont load jvm.dll
    Does anyone know how to resolve this, I have tried uninstalling and re-installing and I get the same problem.
    Thanks,
    -Mike

    Hello, I have downloaded the "J2SE v 1.4.2 with
    NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the
    install finished it said there was an error and to
    please refer to the log file.
    Does anyone know how to resolve this, I have tried
    uninstalling and re-installing and I get the same
    problem.
    Thanks,
    -MikeHi Mike,
    Even I got a similar error message inspite of trying to re-install atleast 10 times! So I gave up and did this:
    1) I downloded J2SE SDK 1.4.2 seperately.
    2) I then downloded JPad Pro IDE (latest version).
    Now both are working really fine for me. :-) Could'nt be bothered to try again and again.
    Its up to you if you want to get the NetBeans installation done but all I wanted was a good IDE and the latest version of the JDK. I have been using it for the last 3 days and it is working perfectly fine!
    Regards :-)
    Vijay

  • Sun Studio is unable to find a supported version of the NetBeans IDE at the

    I'm following the system install instructions in the Grid Compute Utility guide, Appendix A "Building a Local Development Environment" and am getting stuck on step 4, installing sunstudio. I'm running Solaris 5.10 on x86 and can run netbeans IDE without problem. Here is some info, I'm not sure what other system info is relevant:
    bash-3.00# which netbeans
    /opt/netbeans-5.5.1/bin/netbeans
    bash-3.00# which sunstudio
    /usr/bin/sunstudio
    bash-3.00# sunstudio
    Validating NetBeans IDE at: "/opt/SUNWspro/../netbeans-5.5.1"
    Sun Studio is unable to find a supported version of the NetBeans IDE at the specified location.
    Sun Studio requires a NetBeans IDE version 5.5.1 with NetBeans C/C++ Development Pack version 5.5.1
    installed. Sun Studio looks for a valid NetBeans IDE installation in the following order:
    1) Location specified with --netbeanshome command line option
    2) At /opt/netbeans-5.5.1 location, if exists
    3) At /opt/SUNWspro/../netbeans-5.5.1 location, if exists
    4) At /opt/SUNWspro/../../netbeans-5.5.1 location, if exists
    Please run the System Preparation Tool (prepare_system), if available, to set up your environment.
    Any help!?

    Did you install NetBeans separately or let Sun Studio installer do it? The latter usually results in working configuration.
    I think that NetBeans installation simply doesn't have c++ pack; you can install one following usual NetBeans modules installation path and then re-try starting Sun Studio.
    Another option is to uninstall NetBeans and re-install Sun Studio using its installer, which should set up NetBeans properly.

Maybe you are looking for