Switch compiler in NetBeans

Hi.
Does anyone know how to get install the lateest build of JavaFx compiler (Marina) into NetBeans.
I've tried to add "new platform", but NetBeans doesn't recognize downloaded build as JavaFX platfrom (because it's compiler).
I've tried to append downloaded files to existing with overwriting, but it didn't help.
Is there any "HowTo" use latest complier version with NB?
Thank you.

If you have installed netbeans 6.5 without javafx sdk include it before, you can update your IDE with install javafx1.1 Plugin for NeatBeans IDE 6.5. I copied it from article on java.sun.com/javafx. In the netbeans main menu :
1. You choose Tools --> Plugins.
In the Plugins window, click the Settings tab and check the Active checkboxes for NetBeans Update
Center and all the update centers listed. The other update centers are checked for any updated plugins
on which the JavaFX 1.1 Plugin might depend.
2. Select the Available Plugins tab and click Reload Catalog to obtain the latest list of available plugins.
3. In the list of available plugins, locate all the plugins in the JavaFX category.
You can type javafx in the Search text field to help locate these plugins.
4. Check the Install checkboxes for the JavaFX plugins found, if not yet checked, and click Install.
5. In the NetBeans IDE Installer dialog, click Next to continue with the installation.
6. Read and accept the terms in all of the license agreements displayed and click Install.
7. After the installation has been completed successfully, click Finish to restart the IDE.
hope it can help you,
regards,
endang

Similar Messages

  • Problem in compiling in Netbeans IDE

    Hi all,
    I am using Netbean 3.6. I am getting an error in compling
    Class.forName("ClassName");
    Cannot resolve symbol. What should I do About it.
    However I am able compile the same program in command line. Only I am unable compile in netbean 3.6. Do I need to change any settings. Please let me know.
    My mail Id is
    [email protected]
    [email protected]
    Regards,
    Saravanakumar

    Is there any reason that you are using 3.6? I am using 5.5.
    anyway the forName method returns the Class object associated with the class or interface with the given string name.
    so for the given:
    Class.forName("ClassName");
    The Class.forName method must be used with care in JRE code. A call
    of the type Class.forName(classname) can only be assumes to find classes on the bootclasspath, since it does a look up on the callers classloader

  • Missing ant package while compiling in NetBeans IDE

    hi all,
    I am having problem compiling in NetBeans IDE 5.0. The error is package org.apache.tools.ant not found. I have installed apache-ant-1.6.5-bin and jdk1.5.0_07. Are these enough? The library files are in jar format. How can I tell if I having missing package "org.apache.tools.ant "?
    I am new to ANT tools and NetBeans. Can someone help?
    Thanks.

    i have tried with other projects and no problem. Only this project.
    What classes do I need to add into the project?

  • Compiling error (netbeans and javac)

    Hi,
    I have created a project with netbeans. It has two files Main.java and Methods.java. I can compile and run it using netbeans without any errors. But if I go to the directory where that files are located and try "javac Main.java", I get the error like this:
    Main.java:26: cannot find symbol
    symbol : class Methods
    location : class projectname.Main
    Methods met = new Methods();
    I get this error 2 times.

    cd ..
    javac projectname/Main.java

  • Compiling in Netbeans

    Hi Guys,
    I'm using Netbeans 4 and I'm facing a strange problem. I can ask Netbeans to ignore some files/packages and not to show it on the editor (Tools -> Options -> System Settings), right? However, when I compile the whole project it's not ignoring those files. What am I doing wrong?
    Best regards

    You must be kidding!Sometimes... but not this one. The way I described is the one I've used so far. I'm using 3.6, though.

  • J2me polish compilling in netbeans

    I'm trying to integrate netbeans with j2me polish but when rebuilding I get an error
    Buildfile: build.xml
    clean.tar.src:
    clean.resources:
    clean.devices:
    clean:
    build.tar.src:
          [tar] Building tar: D:\projects\MobileClient1\CP_Phone_Backup-Src.tar.gz
    build.resources:
          [tar] Building tar: D:\projects\MobileClient1\CP_Phone_Backup-Common.tar.gz
    build.devices:
    BUILD FAILED
    D:\projects\MobileClient1\build\build.xml:57: The <subant> type doesn't support the nested "target" element.
    Total time: 4 seconds
    BUILD SUCCESSFUL (total time: 4 seconds)

    akienou wrote:
    Hello Lichtens,
    I've been able to install the Polish samples installed with J2ME Polish.
    The problem is how I can create a new J2ME Polish project or how I can integrate Polish functionalities to an existing project.
    Thanks in advance.From the tutorial itself that you pointed:
    When you start a new project in NetBeans, just copy one of the sample build.xml scripts to your project's folder. Then adjust the settings according to your needs.

  • How to compile a simple "Hello World" program in Java by using Netbeans

    Hi all, I am very new to java programming arena. i am trying to learn the most demanding language for the time being. To program, i always use IDE's as it makes programming experience much easier by underline the syntax errors or sometimes showing codehint. However, I am facing some problem when i use Netbeabs to compile a simple "Hello world" program. my problem is whenever i write the code and press compile button, netbeans says "main class not found". Consequently,i am becoming frustated. So, i am here in this forum to get some kind help on How i can compile java programs in Netbeans. Please help me out, otherwise i may lose my enthusiasm in Java. please help me, i m stuck

    Go to http://www.netbeans.org/
    You should find tutorials there.

  • Compiling a .dll in netbeans (Almost there)

    (I have the GNU g++ cygwin compile installed and selected to be used as C compiler in netbeans)
    I have got so far but falling at the last hurdle.
    I have modified a java wrapper so that I can put it in a package, I adjusted the code, compiled it, called javah on the source class using:
    javah packagename.classname
    which worked
    I've then re-written the wrapper.c file so that it includes this new header file classname.h
    I've re-written the methods so that they start with Java_packagename1_classname1_ (the way they appear in the header)
    I've created a new C/C++ project in netbeans (Selected dynamic linked library in options)
    I've added the exsisting classname.h files + Cdll.h file to the header files (both included in the wrapper.c)
    Now I should be set to compile my wrapper.c into a .dll file
    I press the build button and I get this:
    Running "C:\cygwin\bin\make.exe  -f Makefile CONF=Debug" in C:\Documents and Settings\test\DynamicLibrary_3
    /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory `/cygdrive/c/Documents and Settings/test/DynamicLibrary_3'
    mkdir -p build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes
    gcc.exe    -c -g -IC\:/Program\ Files/Java/jdk1.6.0_01/include -IC\:/Program\ Files/Java/jdk1.6.0_01/include/win32 -fPIC  -o build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes/J-k8055-wrapper.o ../My\ Documents/Java\ Projects/USB_K8055/build/classes/J-k8055-wrapper.c
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:1: warning: -fPIC ignored for target (all code is position independent)
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:18:41: USB_interface_usb_interface.h: No such file or directory
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:19:22: K8055D_C.h: No such file or directory
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JReadAllAnalog':
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:97: error: request for member `NewLongArray' in something not a structure or union
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:98: error: request for member `GetLongArrayElements' in something not a structure or union
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:117: error: request for member `ReleaseLongArrayElements' in something not a structure or union
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JReadDigitalChannel':
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: `false' undeclared (first use in this function)
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: (Each undeclared identifier is reported only once
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:210: error: for each function it appears in.)
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c: In function `Java_USB_1interface_usb_1interface_JSetCurrentDevice':
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:319: error: parameter name omitted
    ../My Documents/Java Projects/USB_K8055/build/classes/J-k8055-wrapper.c:319: error: parameter name omitted
    make[1]: *** [build/Debug/Cygwin-Windows/_ext/C_/Documents_and_Settings/test/DynamicLibrary_3/../My_Documents/Java_Projects/USB_K8055/build/classes/J-k8055-wrapper.o] Error 1
    make[1]: Leaving directory `/cygdrive/c/Documents and Settings/test/DynamicLibrary_3'
    make: *** [.build-impl] Error 2
    Build failed. Exit value 2.Any ideas ?
    Thanks.

    Ok I'm still stuck here is my test code as simple as I can make it:
    Main.java
    package dlltestapp;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Main {
        static {
             System.loadLibrary( "J-K8055-wrapper" );
        public static void main(String[] args) {
            USB_interface_K8055.JOpenDevice(0);
            USB_interface_K8055.JSetAllDigital();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            USB_interface_K8055.JClearAllDigital();
            USB_interface_K8055.JCloseDevice();
    }USB_interface_K8055.java
    package dlltestapp;
    public class USB_interface_K8055 {
    public static native long JOpenDevice(long i);
    public static native void JCloseDevice();
    public static native void JSetAllDigital();
    public static native void JClearAllDigital();
    }dlltestapp_USB_interface_K8055.h
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class dlltestapp_USB_interface_K8055 */
    #ifndef _Included_dlltestapp_USB_interface_K8055
    #define _Included_dlltestapp_USB_interface_K8055
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     dlltestapp_USB_interface_K8055
    * Method:    JOpenDevice
    * Signature: (J)J
    JNIEXPORT jlong JNICALL Java_dlltestapp_USB_1interface_1K8055_JOpenDevice
      (JNIEnv *, jclass, jlong);
    * Class:     dlltestapp_USB_interface_K8055
    * Method:    JCloseDevice
    * Signature: ()V
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JCloseDevice
      (JNIEnv *, jclass);
    * Class:     dlltestapp_USB_interface_K8055
    * Method:    JSetAllDigital
    * Signature: ()V
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital
      (JNIEnv *, jclass);
    * Class:     dlltestapp_USB_interface_K8055
    * Method:    JClearAllDigital
    * Signature: ()V
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital
      (JNIEnv *, jclass);
    #ifdef __cplusplus
    #endif
    #endifK8055D_C.h
    ** Microsoft Visual C++ 2005 Project for the K8055 USB I/O Card **
    **                    Copyright Velleman 2006                   **
    **                        www.Velleman.be                       **
    **                         Developed by                         **
    **                       RE-Applications                        **
    **                   www.RE-Applications.be                     **
    #ifdef __cplusplus
    extern "C" {
    #endif
    #define FUNCTION __declspec(dllexport)
    FUNCTION long __stdcall OpenDevice(long CardAddress);
    VOID __stdcall CloseDevice();
    FUNCTION long __stdcall ReadAnalogChannel(long Channel);
    VOID __stdcall ReadAllAnalog(long *Data1, long *Data2);
    VOID __stdcall OutputAnalogChannel(long Channel, long Data);
    VOID __stdcall OutputAllAnalog(long Data1, long Data2);
    VOID __stdcall ClearAnalogChannel(long Channel);
    VOID __stdcall ClearAllAnalog();
    VOID __stdcall SetAnalogChannel(long Channel);
    VOID __stdcall SetAllAnalog();
    VOID __stdcall WriteAllDigital(long Data);
    VOID __stdcall ClearDigitalChannel(long Channel);
    VOID __stdcall ClearAllDigital();
    VOID __stdcall SetDigitalChannel(long Channel);
    VOID __stdcall SetAllDigital();
    FUNCTION bool __stdcall ReadDigitalChannel(long Channel);
    FUNCTION long __stdcall ReadAllDigital();
    FUNCTION long __stdcall ReadCounter(long CounterNr);
    VOID __stdcall ResetCounter(long CounterNr);
    VOID __stdcall SetCounterDebounceTime(long CounterNr, long DebounceTime);
    VOID __stdcall Version();
    FUNCTION long __stdcall SearchDevices();
    FUNCTION long __stdcall SetCurrentDevice(long lngCardAddress);
    #ifdef __cplusplus
    #endifJwrapperZC.cpp (To be compiled to J-K8055-wrapper.dll)
    #include <stdio.h>
    #include <windows.h>
    #include <jni.h>
    #include <dlltestapp_USB_interface_K8055.h>
    #include <K8055D_C.h>
    JNIEXPORT jlong JNICALL Java_dlltestapp_USB_1interface_1K8055_JOpenDevice
      (JNIEnv *env, jclass in_cls, jlong CardAddress)
       long retCode = -1 ;
       retCode = OpenDevice(CardAddress);
       return retCode;
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JCloseDevice
      (JNIEnv *env, jclass in_cls)
         CloseDevice();
         return ;
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital
      (JNIEnv *env, jclass in_cls)
         SetAllDigital();
         return ;
    JNIEXPORT void JNICALL Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital
      (JNIEnv *env, jclass in_cls)
         ClearAllDigital();
         return ;
    }Attempting to compile the .dll I get:
    Running "C:\cygwin\bin\make.exe  -f Makefile CONF=Debug" in C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\DLLtestAppC++
    /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory `/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++'
    mkdir -p build/Debug/Cygwin-Windows
    g++.exe -mno-cygwin -Wl,--add-stdcall-alias -shared -m32   -c -g -IC\:/Program\ Files/Java/jdk1.5.0_06/include -IC\:/Program\ Files/Java/jdk1.5.0_06/include/win32 -I. -fPIC  -o build/Debug/Cygwin-Windows/JwrapperZC.o JwrapperZC.cpp
    JwrapperZC.cpp:1: warning: -fPIC ignored for target (all code is position independent)
    g++: --add-stdcall-alias: linker input file unused because linking not done
    mkdir -p dist/Debug/Cygwin-Windows
    g++.exe -mno-cygwin -Wl,--add-stdcall-alias -shared -m32    -mno-cygwin -shared -o dist/Debug/Cygwin-Windows/libDLLtestAppC__.dll -fPIC build/Debug/Cygwin-Windows/JwrapperZC.o 
    build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JOpenDevice':
    /cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:15: undefined reference to `_OpenDevice@4'
    build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JCloseDevice':
    /cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:28: undefined reference to `_CloseDevice@0'
    build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JSetAllDigital':
    /cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:43: undefined reference to `_SetAllDigital@0'
    build/Debug/Cygwin-Windows/JwrapperZC.o: In function `Java_dlltestapp_USB_1interface_1K8055_JClearAllDigital':
    /cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++/JwrapperZC.cpp:58: undefined reference to `_ClearAllDigital@0'
    collect2: ld returned 1 exit status
    make[1]: *** [dist/Debug/Cygwin-Windows/libDLLtestAppC__.dll] Error 1
    make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Administrator/My Documents/NetBeansProjects/DLLtestAppC++'
    make: *** [.build-impl] Error 2
    Build failed. Exit value 2.Plz. help
    Thanks.

  • Netbeans and Java compilation

    Hi all,
    I got a number of files done by Netbeans but when I use those file for compilation in normal Java (it means not compiling in netbeans but in Java), i got some problem with the code automatically generated by netbeans.
    can anyone help me a solution for the chance of compiling my files (all of them still .java) in normal Java (javac ...) because if not, i will have to do again all the code for UIs :(
    thanks all

    thanks for reply.
    when i try to compile in normal command prompt, the part relating to "position" of each component in the frame generated by Netbeans appear to be errors, e.g. "package org.jdesktop.layout does not exist" which means to me that this would be a only-in-netbeans library.
    is there any way for me to link to a specific classpath to get this compilable ?
    and, by the way, i have one more question raised from Netbeans.
    I try to read a .txt (text ) file in Netbeans by placing that file into the "src" folder but netbeans said "FileNotFoundException" and when i try to read the properties of text file, it states "unrecognized file". any idea how to get Netbeans recognise this file???

  • I have a problem compiling servlets bymeans of NetBeans IDE 3.6.

    If I compile a servlet by means of another IDE, they are oK and work well with NetBeans too.
    On the contrary, if I compile it bymeans of Netbeans 3.6, I get a .class which does not work. I
    have realized also that for instance if the .class i get with the other IDE is 1,58 KB, if I use
    NetBeans I get a .class smaller, that is 1,53 Kb.
    Can you help me?
    Thanks
    Eugenia Mariani

    ok
    This is the servlet named Contatore.java
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Contatore extends HttpServlet
    private int conta;
    public void init(ServletConfig config) throws ServletException
    conta = 0;
    public void doGet(HttpServletRequest richiesta, HttpServletResponse risposta)
    throws IOException, ServletException
    conta++;
    risposta.setContentType("text/html");
    PrintWriter out = risposta.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Pagina con contatore</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("Questa pagina e' stata visualizzata");
    out.println("<h1>"+conta+ "</h1> volte.");
    out.println("</body>");
    out.println("</html>");
    out.close();
    Before using the compiler of NetBeans (that is after getting Contatore.class by means of Bluej) when I use Execute I see in Internet Explorer 6.0 with win Xp Pro at the
    http://localhost:8084/esempi/Contatore
    Questa pagina e' stata visualizzata
    1
    volte.
    and Contatore.class is 1,58 KB
    After that I use the compiler of NetBeans when I use Execute here the error from Tomcat 5.0
    I see in Internet Explorer 6.0 with win Xp Pro at the
    http://localhost:8084/esempi/Contatore
    HTTP Status 404 - Servlet Contatore is not available
    type Status report
    message Servlet Contatore is not available
    description The requested resource (Servlet Contatore is not available) is not available.
    Apache Tomcat/5.0.19
    and Contatore.class is 1,53 KB
    I hope to have said everything
    I wait a help, please.
    Thanks

  • Netbeans 6.9.1 and JavaFX formatter

    Is there any idea why Netbeans 6.9RC1 has a better javafx formatter than 6.9.1?
    I'm always using the formatter with below configuration.
    extend tab to space = no
    all curly brackets are on new line
    Netbeans 6.9 RC1 has deficiency in some points:
    -insert a before a.content[i]
    -i18n strings : ##""
    -in string expressions: "...{some-expression}"
    But Netbeans 6.9.1 has also same bugs. Even worse. My 800 lines of code become 1000 lines when I ran the formatter (adding extra spaces after each keyword).
    I wonder whether the fx team is using the formatter in netbeans. I really ask this not for criticizing. Before 6.9.1, I guessed the problem of formatter was that only small code segments were tested.
    But in 6.9.1, some sample codes in formatter are also wrong formatted.

    Michael Schmid wrote:
    Wohoo,
    starting as a forum newbie....again :s
    Anyway, I've run into some troubles during the setup of my very first J2EE 6 project in Netbeans. I've installed Netbeans 6.9.1 and the included Glassfish v3 server runtime. Then I've created a new J2EE 6 project using Netbeans J2EE project wizard. Said wizard has an option: "Use shared library directory". I ticked this option and specified the shared library directory to be "lib". Then I've added JAR files to it, but somehow this JARs are not added to the classpath of the dependent EJB and Web project. Any time I try to import a class from one of the EAR libraries I get the compile-time ClassNotFound error in the IDE.
    I'm a seasoned Eclipse user, and only recently have switched over to Netbeans (mostly out of curiosity). In Eclipse the ${EarProject}/lib folder was automatically recognized as the EAR's lib folder, and any JAR files added to it where available for all J2EE modules in the EAR project. After consulting the integrated Netbeans help on the topic I was convinced that this should work the same in Netbeans. Can any experienced Netbeans developer assist me in this please?
    PS: I'm sorry if this is the inappropriate forum category, but the old "Netbeans" category from the Sun Forums seems to have disappeared during the forum transition.
    EDIT: on an unrelated note I'd like to bring to your attention that this is the first "real Java question" in this forum :D ("Wohoo this is new" posts don't count)
    Edited by: 791078 on 24.09.2010 18:27You are right, these are the wrong forums. Post your question here: http://forums.netbeans.org/ , if you want help from people who regularly userNetbeans.

  • Netbeans 6.9.1 & J2EE 6 & Shared Library Directory = Classpath errors

    Wohoo,
    starting as a forum newbie....again :s
    Anyway, I've run into some troubles during the setup of my very first J2EE 6 project in Netbeans. I've installed Netbeans 6.9.1 and the included Glassfish v3 server runtime. Then I've created a new J2EE 6 project using Netbeans J2EE project wizard. Said wizard has an option: "Use shared library directory". I ticked this option and specified the shared library directory to be "lib". Then I've added JAR files to it, but somehow this JARs are not added to the classpath of the dependent EJB and Web project. Any time I try to import a class from one of the EAR libraries I get the compile-time ClassNotFound error in the IDE.
    I'm a seasoned Eclipse user, and only recently have switched over to Netbeans (mostly out of curiosity). In Eclipse the ${EarProject}/lib folder was automatically recognized as the EAR's lib folder, and any JAR files added to it where available for all J2EE modules in the EAR project. After consulting the integrated Netbeans help on the topic I was convinced that this should work the same in Netbeans. Can any experienced Netbeans developer assist me in this please?
    PS: I'm sorry if this is the inappropriate forum category, but the old "Netbeans" category from the Sun Forums seems to have disappeared during the forum transition.
    EDIT: on an unrelated note I'd like to bring to your attention that this is the first "real Java question" in this forum :D ("Wohoo this is new" posts don't count)
    Edited by: 791078 on 24.09.2010 18:27

    Michael Schmid wrote:
    Wohoo,
    starting as a forum newbie....again :s
    Anyway, I've run into some troubles during the setup of my very first J2EE 6 project in Netbeans. I've installed Netbeans 6.9.1 and the included Glassfish v3 server runtime. Then I've created a new J2EE 6 project using Netbeans J2EE project wizard. Said wizard has an option: "Use shared library directory". I ticked this option and specified the shared library directory to be "lib". Then I've added JAR files to it, but somehow this JARs are not added to the classpath of the dependent EJB and Web project. Any time I try to import a class from one of the EAR libraries I get the compile-time ClassNotFound error in the IDE.
    I'm a seasoned Eclipse user, and only recently have switched over to Netbeans (mostly out of curiosity). In Eclipse the ${EarProject}/lib folder was automatically recognized as the EAR's lib folder, and any JAR files added to it where available for all J2EE modules in the EAR project. After consulting the integrated Netbeans help on the topic I was convinced that this should work the same in Netbeans. Can any experienced Netbeans developer assist me in this please?
    PS: I'm sorry if this is the inappropriate forum category, but the old "Netbeans" category from the Sun Forums seems to have disappeared during the forum transition.
    EDIT: on an unrelated note I'd like to bring to your attention that this is the first "real Java question" in this forum :D ("Wohoo this is new" posts don't count)
    Edited by: 791078 on 24.09.2010 18:27You are right, these are the wrong forums. Post your question here: http://forums.netbeans.org/ , if you want help from people who regularly userNetbeans.

  • Netbeans org.openide package problem

    Hi,
    I wanted to set a menemonic for the menu with an '&Something'
    Netbeans asked me to import some package to what I naively agreed,
    but as it happens I don't have that package on my computer so the problem
    is that the program(s) don't compile because Netbeans adds this non-existing
    package to every new project I make !! and I can't run windowed applications anymore,
    Please help me, how to tell Netbeans to not include this package ???

    It took so long because I had to switch computers with
    another Neatbeans instalation but the solution is:
    "You can later turn this option on or off. Choose Tools | Options. Expand the
    Editing node, and select Form Editor Settings. Then change the Generate
    Mnemonics Code property."

  • Mysterious anonymous inner class in switch block

    public class MysteryFile {
      public enum Elements {
        WIND, EARTH, FIRE, WATER
      Elements el;
      public MysteryFile(Elements el) {
        this.el = el;
      public void whatIsItLike() {
        switch (el) {
          case WIND: System.out.println("A bit chilly sometimes"); break;
          case EARTH: System.out.println("Gets hands dirty."); break;
          case FIRE: System.out.println("Hot! skin melt"); break;
          case WATER: System.out.println("Cool! clean hands"); break;
          default: System.out.println("Don't know"); break;
      public static void main(String[] args) {
        MysteryFile anElement = new MysteryFile(Elements.FIRE);
        anElement.whatIsItLike();
    }When compiled in Netbeans or in the command line, generates an unexpected MysteryFile$1.class file. If the entire switch block is commented out and recompiled, it does not get generated. Where does this anonymous inner class come from?

    The MysteryFile$1 class looks something like this (javac 1.6.0_02):
    class MysteryFile$1 {
      static final int[] $SwitchMap$MysteryFile$Elements;
      static {
          // the line number (debug info) of this static initializer
          // is "switch (el)" line in MysteryFile.java
          $SwitchMap$MysteryFile$Elements =
                  new int[MysteryFile$Elements.values().length ];
          try {
              $SwitchMap$MysteryFile$Elements[
                      MysteryFile$Elements.WIND.ordinal() ] = 1;
          } catch (NoSuchFieldError e) {
              // fix stack?
          // repeat with EARTH(2), FIRE(3) and WATER(4)
    }... and the actual switch statement in 'MysteryFile' looks like so:
      //switch (el) {
      switch(MysteryFile$1.$SwitchMap$MysteryFile$Elements[
              this.el.ordinal() ])
      case 1:  // WIND
          break;
      case 2:  // EARTH
          break;
      case 3:  // FIRE
          break;
      case 4:  // WATER
          break;
      default:  // ...
      }I suppose this is necessary because the compiler can't guarantee that the runtime enum-constant-to-ordinal mapping will be identical to that at compile time (the API docs say it depends on the declaration order in the source code, which I think may change without breaking binary compatibility).
    PS MysteryFile$Elements.values() is a synthetic method that returns all enumeration constants in a MysteryFile$Elements array. Found this old related thread: [http://forum.java.sun.com/thread.jspa?threadID=617315]

  • Change netbean's java version

    How can I compile my netbeans project (which uses an ant script) to compile with java 1.4 and not 1.5, because I keep getting this
    Unsupported major.minor version 49.0error after I compile in netbeans and then run in the command prompt. However, If I build in the command propmt (ant build.jars) and run it the command prompt it works fine.
    I'm pretty sure netbeans is screwing it up...

    Well, I have the java platform from the tools menu set to 1.4 but when i go to Help and then about, it says Java 1.5, so I changed that 1.4 by editing "netbeans.conf" in C:\Program Files\netbeans-4.1\etc by adding "# default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
    netbeans_jdkhome="C:\local_depot\home\rel\Automation\LATEST\Automation\common\3rdParty\java\current", and restarted netbeans, now it says it's running 1.4 in the about menu and 1.4 in the platform manager and it works!!!

Maybe you are looking for

  • Keyboard, Trackpad Shuts off

    Every time I convert my video files using Handbrake or VisualHub, after about an hour my keyboard and trackpad die on me. What's interesting is, the keyboard doesn't necessarily die, it more or less FREEZES. That is, (this has happened more than 5 ti

  • Node - Dynamic Attributes

    Hi, I have a node 'CONF' with attribute ATNAM01. I used a ZSTRUC to create this node. Here my requirement is that based on user inputs I will execute a FM, I will get no of entries in my itab. I need to assign attributes based on itab entries to 'CON

  • Table TKZU1 and T.code KSAZ

    Hi All could anybody let me know what is the relation between table TKZU1 and T.code KSAZ useful answers would be rewarded with points Regards Prasad

  • Complexity of PL/SQL in Discoverer Admin

    Hi, Read you can register PL/SQL in Discoverer Admin - how complex can this be? Something comparable to the stored procedures in SQL Server? I guess it returns only one value as the output? Thanks!

  • Target structure generation using GUI mapping

    Hi Experts, I have two nodes in source  and one node in target structure . Source permanentemployee (0..n)       name       dept contract employee (0..n)      name      dept Target Employee (0..n)     name     dept If both nodes (permanentemployee  &