Compile Netbeans Project with

I've seen other NetBeans questions in this forum, so I think it is appropriate to post here.
I'm using NetBeans 5.5 and I'm getting the "you're using a deprecated method" warning. How can I configure NetBeans to compile with
-Xlint:deprecation?
Thanks...

Actually, you should post NetBeans questions to
http://netbeans.org

Similar Messages

  • Problem in build netbean projects with jaxb

    Hi, I encounter the problem which I dont' know if it is due to my pc memory insufficient or other reason.
    In my netbean projects, I add a Jaxb binding with a local xsd file, but when I try to clean and build the project, each time I have to wait for around 25 minutes, i think it is not make sense to build in such a time. As if I want to debug/run the project each time, it is impossible for me to wait like this.
    However, I have to use the xml file in that way, if I can't solve this problem, i have to write / use other method to "eat" the xml file for myself.
    Any suggestion or help is appreciated, thx.....

    Bishnu,
    Thanx for the response.
    My problem is whenever i do a little modification in the code, even if i just do some chanes & undo it then also i need to rebuild the application.
    There is a single project in my workshop which is pretty huge.As per your reply i am getting only two parts to check & uncheck i.e. If the project is "A" then i am getting A.work & project:A in the build box.
    The most important question: Do i need to shut down the server each time i make a small change?Even i have tried this by restarting the server,but every time i get the message that "the Controller.jpf could not compile."
    Any idea is most welcome.
    Samir

  • How do I create a NetBeans project with multiple JavaFX (FXML) dialogs?

    I'm very new to Java and JavaFX, so forgive what is probably a question asked a thousand times, but I can't seem to find the answer.
    I come from a Visual Studio (C# with WPF) background. I'm used to creating a Solution then adding a Project for each dialog/window that gets included in the Solution. Each dialog/window is a class derived from Window, and I simply create an instance of that class when I need to use the dialog.
    What I need to do is have a main window (stage) that contains two lists of participants (a red team and a blue team).
    Then I need a separate dialog for entering the information for the participant. So when a button on the main stage is pressed ("Add Red Participant"), I want to open the ParticipantDialog. When the "OK" or "Close" button on the Participant dialog is clicked, I want the dialog to be able to return a participant object to the main stage.
    Then the main stage adds that participant to the appropriate list.
    What I've gathered so far is that I will be creating an FXML file for the Participant dialog (and I assume an associated controller). Then when the "Add" button is pressed, I will call an FXMLLoader to load that FXML dialog. Something like this:
    FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ParticipantDialog.fxml"));
    Scene scene = (Scene)fxmlLoader.load();
    final Stage participantDialog = new Stage();
    participantDialog.setScene(scene);
    First question is: is that correct so far? Am I at least on the right track?
    Next question is: how or where do I create the FXML and controller files for the participant dialog using NetBeans? Should I create a separate project to make the participant dialog and then copy those files over, or is there a way to make the files within the parent project? And if I make the participant dialog in a separate project, what's the easiest way to access it from my main stage?
    I feel like I'm missing something simple here because this seems a lot harder than it should be.
    Thanks in advance for any advice.

    >  is that correct so far?
    Yes the sample code you have is fine to launch a new dialog when your Add button is pressed .
    > I create the FXML and controller files for the participant dialog using NetBeans?
    You can edit FXML text in NetBeans, but I think that is kind of tedious.
    You might want to create the FXML using SceneBuilder.
    You can use SceneBuilder in NetBeans.
    You may want to get it working without FXML first.
    For example, use the JavaFX scene graph API, then convert your program to use FXML once you are more comfortable with the JavaFX system.
    The piecemeal approach cuts down on the amount of learning you need to do at one time.
    > Should I create a separate project to make the participant dialog and then copy those files over.
    No.
    Just use a single NetBeans project.
    You will have separate FXML files for your main stage and your participant dialog, but they will both be placed in the same NetBeans project.
    > is there a way to make the files within the parent project?
    In NetBeans 7.3.1, do the following:
      File | New Project | JavaFX | JavaFX FXML Application
    This will create a sample project with a sample fxml file.
    Modify the sample project files to get what you want, changing the sample fxml to your main stage fxml and adding a new participant fxml to the same directory.

  • Compiling a project with referenced VI

    Hello All,
    -I am referencing a VI in my project using Open VI Reference (see attachment). 
    -The VI is under a folder in my Program Files directory and is referenced statically in my project, and is separate from my project folder.  So there is no calling VI for my reference VI, which has four sub-VI contained therein. 
    -Now my referenced VI is part of my project, even though it has no calling VI. 
    Does it need to be in my project?  I would think not, since there is no direct link to the referenced vi inside my project, aside from the static file path. 
    How does the app. builder treat this referenced VI when it creates an .exe?  Does it leave the referenced VI in the Program Files directory since that is the reference path or does it get included with all the other compiled VIs into the executable?  Should it be removed from my project?  Perhaps I am missing something and need to create the referenced VI as a separate build.  I don't know.
    Any information you can give would be greatly appreciated.  Thanks.
    Reese
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home
    Attachments:
    reference vi open fp.png ‏28 KB

    I'm sorry Mike, but I want to be clear on what you are saying.  Are you saying NOT to include it in my project but rather include it in the "always included" box in the application builder? 
    What do you mean by "You shouldn't do it, because your fixed path would be wrong."  What shouldn't I do?  Add it to my project?  I asked a lot of questions and am not sure to what you are referring.
    Thanks again for the reply.
    Reese
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Problem compiling a project with FORTE

    Hi, thanks in advance ,
    I've installed FORTE 6 update 2 and all has gone ok .
    I've built two projects without problems.
    But building a big project i've found nexts problems :
    bash-2.03# /opt/SUNWspro/bin/makeprd myproject_file.prd
    ild: (undefined symbol) st_key_create -- referenced in the text segment of output/b.o
    ild: (undefined symbol) st_key_create -- referenced in the text segment of output/a.o
    ild: (undefined symbol) mysql_store_result -- referenced in the text segment of output/a .o
    ild: (undefined symbol) mysql_num_rows -- referenced in the text segment of output/b.o
    *** Error code 5
    dmake: Fatal error: Command failed for target `output/final_file'
    All the files has compiled ok less files makes calls to a MYSQL and ST library .
    I've already tell to my prd where found a library in mysql ( /usr/local/mysql/lib and include ) and ST library ( $HOME/st.h and st.a" ), but i don't understand why ild can't found this symbols ...
    In mysql.h you can find :
    mysql_store_result , mysql_num_rows
    and in the st.h the other functions ...
    I've found declarations( in .h) and functions ( in .a )
    What's the problem ?, anybody can help me ?
    Thanks

    I'm sorry Mike, but I want to be clear on what you are saying.  Are you saying NOT to include it in my project but rather include it in the "always included" box in the application builder? 
    What do you mean by "You shouldn't do it, because your fixed path would be wrong."  What shouldn't I do?  Add it to my project?  I asked a lot of questions and am not sure to what you are referring.
    Thanks again for the reply.
    Reese
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Compiling CVI project with low-level input/outp​ut function under VC++

    when compiling I get:
    MIN69101.OBJ : error LNK2001: unresolved external symbol _read@12
    MIN69101.OBJ : error LNK2001: unresolved external symbol _write@12
    MIN69101.OBJ : error LNK2001: unresolved external symbol _lseek@12
    Release/minil.exe : fatal error LNK1120: 3 unresolved externals
    Error executing link.exe.
    minil.exe - 4 error(s), 0 warning(s)
    I think I need some libs.
    Who tell me what .lib I need?

    When you convert your existing CVI project, all external libs add automatically, you can see it in Project->Settings->Link.
    But they don't include low-level in/out function.
    If you use Dependency Walker you can see these functions in cvi-lvrt.dll, but not in cvi-lvrt.lib

  • Using the Netbeans GUI within a Project with existing Ant Script

    I cannot seem to figure out how to use the Netbeans GUI in my Project with existing Ant Script. Is this possible? I have no problem creating GUI interfaces in a java Application, but attempting to make a new JFrame Form gives the error: package org.jdesktop.layout does not exist, and I have not been able to find a way around this. Any suggestions? Thanks in advance.
    Chris Coulon

    OK, I think I am on the right track, but I don't understand why I am still getting this error:
    clean:
    compile:
    Copying 1 file to /Users/chris/**JavaProjects/Netbeans_ImageJ
    Created dir: /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
    Compiling 292 source files to /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:31: package org.jdesktop.layout does not exist
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:34: package org.jdesktop.layout does not exist
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/plugins/Kline_Frame.java:38: package org.jdesktop.layout does not exist
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    4 errors
    /Users/chris/**JavaProjects/Netbeans_ImageJ/source/build.xml:11: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 6 seconds)
    I no longer have the error in my java code in the Projects list, but I still cannot build the project. This is my current build.xml file:
    <!-- Ant makefile for ImageJ -->
    <project name="ImageJ" default="run">
      <target name="compile" description="Compile everything.">
          <!-- Copy the swing layout library into dist.lib -->
        <copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
        <!-- First, ensure the build directory exists. -->
        <mkdir dir="build" />
        <!-- Build everything; add debug="on" to debug -->
        <javac srcdir="." destdir="build" optimize="on" source="1.4" target="1.4" debug="on">
          <!-- The plugins directory only needs to be
                 present at runtime, not at build time. -->
          <!-- exclude name="plugins/**"/-->
        </javac>
      </target>
      <target name="build" depends="compile" description="Build ij.jar.">
        <!-- Copy needed files into the build directory. -->
        <copy file="IJ_Props.txt" todir="build" />
        <copy file="images/microscope.gif" tofile="build/microscope.gif" />
        <copy file="images/about.jpg" tofile="build/about.jpg" />
         <copy file="plugins/MacAdapter.class" tofile="build/MacAdapter.class" />
        <copy todir="build/macros"><fileset dir="macros"/></copy>
        <!-- Build ij.jar. -->
        <jar jarfile="ij.jar" basedir="build"
             manifest="MANIFEST.MF" />
      </target>
      <target name="clean" description="Delete the build files.">
        <delete dir="build" />
        <delete file="ij.jar" />
      </target>
      <target name="run" depends="build" description="Build and run ImageJ.">
        <copy file="ij.jar" toDir=".." />
        <java maxmemory="640m" jar="ij.jar" fork="yes" />
      </target>
      <target name="run2" depends="build" description="Build and run ImageJ.">
        <!-- Run in ImageJ directory -->
        <copy file="ij.jar" toDir=".." />
        <java maxmemory="640m" dir=".." jar="ij.jar" fork="yes" />
      </target>
      <target name="zip" depends="clean" description="Build zrc.zip.">
        <zip zipfile="../src.zip"
           basedir=".."
           includes="source/**"
        />
      </target>
      <target name="javadocs" description="Build the JavaDocs.">
        <delete dir="../api" />
        <mkdir dir="../api" />
        <javadoc
               sourcepath="."
               packagenames="ij.*"
               destdir="../api"
               author="true"
               version="true"
               use="true"
               windowtitle="ImageJ API">
        </javadoc>
      </target>
       </project>notice I added this line: <copy file="dist/lib/swing-layout-1.0.3.jar" todir=".." />
    because the dir ".." is where the other jar files are placed, i.e.:
    [GAIAG:~/**JavaProjects/Netbeans_ImageJ/source] chris% ls ..
    PolarDisplay          ij.jar               swing-layout-1.0.3.jar
    TestFrames          myApp
    api               source
    So why is the build not able to see the package org.jdesktop.layout in the jar file?
    Chris

  • PB with beans binding in a netbeans 6 java project with ant script existing

    Hi all,
    I am using netbeans 6.01.
    I want to use beans binding in a simple swing form created with Matisse designer. If i do beans binding in a Netbeans java project with existing ant script i have the following error :
    java.lang.UnsupportedOperationException: No PCPE/PCPMI found for classpath/compile in MasterFileObject@25 .... etc
    Beans binding works very well in normal java project ( Java Desktop App for instance ).
    How can i make it work in an existing java ant script project ?

    You need to add the Beans Binding (beansbinding-1.2.1) that come with NetBeans 6 in your projects class path.

  • Cannot create a project with netbeans 4.1

    hi. i am using jdk1.5 update 3 with netbeans 4.1. my operating system is ubuntu linux 5.04. when i want to create a new project with netbeans i get this error:
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    i open netbeans, click button "new project", select "General > Java Application", click "next" button.
    project name: JavaApplication1
    project location: /home/bsevindi
    project folder: /home/bsevindi/JavaApplication1
    when i click "finish" button, i get the error above. what should i do? BTW, i have compiled
    a sample project and it works fine. the problem is only about creating a new project.

    I suggest you post the question to a netbean users forum.
    This forum is better for question regarding programming rather than how to use an IDE.

  • NetBeans 4.1 and projects with existing sources: NoSuchMethodError

    I'm running NetBeans 4.1 with JDK 1.4.2_06 and I have a project that I've created with existing sources. I can compile everything without issues, however, when I try to run my file within the project for testing purposes, NetBeans recognizes that a main method exists, but I get the following error message:
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Java Result: 1
    At this point, my class is just:
    package nites.mda.configproperties;
    public class Debuggable {
    public static void main(String[] args) {
    System.err.println("Main");
    However, when I create a brand new Java project without existing sources, it will run perfectly fine. The class in this project is:
    package test;
    public class testClass {
    public static void main(String[] args) {
    System.err.println("Main");
    Anyone ever come across this issue before?

    The default project run settings in NB 4.1 use the "compile-time libraries" before they check recently compiled sources. If you have an old version of the file you are trying to run in a .jar file somewhere in your compile-time libraries NetBeans will use that file. If that old file does not have a main method you will get the error you mentioned.
    You will be able to compile your class because when compiling NetBeans will work on changed files and only access the compile-time libraries when needed.
    The new project will have no old .jars in its path so you will not run into this conflict.
    I would first try to remove the old copy of your file from the compiling sources path.
    If you can't remove the file try reordering the project�s libraries listed under project properties -> libraries-> �run� tab so that your �compiling sources� are listed before your "classpath for compiling sources"
    -Mark

  • Compile / run problems with netbeans 6 but not netbeans 6 beta 1 or 5.5

    When I compile my project in netbeans IDE 6.0 (Build 200711261600) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 i get quite often a "can not find symbol" error or during runtime a "netbeans 6 java.lang.NoClassDefFoundError" exception. also switching between F6 or ctrl-F5 mode can cause the problem to appear.
    Compiling again or clean build resolves it.
    However running the same project under netbeans 5.5 or 6 beta 1 never gives this problem.
    any hint what might be wrong? i looked and compared the project settings but can't see any difference, but I assume that the upgrade script must have changed something.

    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="BorderDemo" default="default" basedir=".">
    <import file="nbproject/build-impl.xml" />
    </project>This is 'build.xml' file. Check for 'project.xml' file in 'nbproject' folder. You will find it to be:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      </data>
      </configuration>
      </project>Change it to:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      <test-roots>
      <root id="test.src.dir" />
      </test-roots>
      </data>
      </configuration>
      </project>I hope it works.....
    thanks!

  • .jar not working when building project with netbeans plugin and log4j

    hey..
    subject tells everything..if i build my project referencing log4j, i get a .jar file with 280 kb which is executable
    if i add log4j and do some logging, code still works in netbeans, but buildung produces a .jar with 80 kb and an
    attached lib-folder with the log4j.jar in it..if i uncheck copy requested libraries, i just get the 80 kb .jar file which
    is not working
    any hints?

    Are you building the jar file using the fxdeploy ant task to build the Jar? That is required to have an executable jar file.
    Also there was a change to the netbeans project structure, which may be a contributing factor.
    Things to try: Upgrade to the latest netbeans 7.1 beta build, set up a new Java platform in nb that includes JavaFX, create a new JavaFX project and build it. This should produce an executable jar.

  • Compile a project that uses Spark modules (SDK 4.5) with FB4.1?

    Is it possible to compile a project that uses Spark modules with Flash Builder 4.1?
    I've added SDK 4.5 to FB and selected it in the project properties (no problems here).
    But how about the 'Flex modules' tab in the project properties window, will it be able to add Spark modules to the application?

    Yes, you will be able to use s:Module with FB 4. You'll have to do a new MXML component, then go to Flex Modules and click on the add button. (The new module wizard there won't support the spark module)
    However, please note that this is unsupported in the sense that we haven't tried that out at our end. (But I personally have and it works )
    -Anirudh

  • Project folder name in NetBeans interfering with JSF/GlassFish deployment

    I am not sure if this is a JSF issue or a NetBeans issue. I am very new to both.
    I have a project in a folder, let's say C:\Folder1, and when I try to "deploy" it on the GlassFish server, I get strange errors about a missing class... though that class is not even a part of this project.
    I believe that C:\Folder1 may have been something I used in the past for a different project but that is long gone.
    So this new project, if I move it to folder C:\Folder1a or C:\Folder2 or ANYTHING else but C:\Folder1... then it will deploy fine. But if I move it back to Folder1 (i.e. the exact same directory structure underneath that level), I get the mysterious error messages from GlassFish server about being unable to find the class that it doesn't even need.
    NOTE: When I say I am moving the project folder around, I am of course re-adding it to Netbeans every time via the "open project" under the file menu. In fact, I've even tried creating a brand new "naked" project, and then manually importing my source code into that project's folders. I have scanned every source doc for the mysterious missing classes and they aren't referenced anywhere! It has to be some metadata that Netbeans stores about that directory name since I once used it for a different project which DID have the mystery class name in it. Hopefully that makes sense...
    Any ideas? Obviously I can work around it, but it still irks me.
    Thanks!

    Clean build
    Unforunately that does not work. Here are the steps I followed:
    Create new project in Netbeans, point it to an empty folder called Ex2605. After that, I bring a couple source files (.java and .xhtml) into that Ex2605 directory structure. When I clean and build, it says ok. When I try to deploy, I get this error:
    +Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: LShoppingCart;. Please see server.log for more details.+
    C:\<path>\Ex2605\nbproject\build-impl.xml:721: The module has not been deployed.
    See the server log for details.
    BUILD FAILED (total time: 16 seconds)
    "ShoppingCart" is a class from a different project, that I once long ago had in a directory named Ex2605 at the same location. But that directory is long gone, it has been removed from the Netbeans project list, and there are NO references to the ShoppingCart class anywhere in any of the files currently in the Ex2605 folder. So that fact that Netbeans apparently is looking for something called LShoppingCart tells me it maintains a history somewhere else of what I used to have in the Ex2605 folder, and apparently I need to purge that history but have no idea how.
    If I try all of the above with any directory NOT named Ex2605, it works fine.

  • Command Line Compilation of  a Project with different packages

    Hi,
    I am trying to compile a project through command line, which has different packages with many classes in it. Now If I try to compile package by package It's complaining about other referenced classes of different packages. So I created .bat file, which includes all the packages, but it's complaining input line is too long.
    D:\jdk1.3.1\bin>app.bat
    My bat file is
    javac -d d:\Application\build d:\Application\source\com\ibc\rules\login\*.java d:\Application\source\com\ibc\rules\lookup\*.java .................d:\Application\source\com\ibc\wid\events\*.java d:\Application\source\com\ibc\wid\frames\cust\*.java ...
    and so on............
    Is there any solution for this problem?
    Thanks in advance....

    I think the prefered and more elegant way to compile project including packages should be writing makefiles including their compilation, installation, deploying - rules ..
    Make is really powerful, the maybe only weak-point is that there are some distribution of them, gnu-make, microsoft nmake .. which are slightly different, that made porting among platforms difficult.
    The jakarta-ant was a new approach to this which uses xml parser to proof the dependencies, etc ..
    Because I'm not familiar yet with xml & ant and as a in-blooded unix user, "make" is still my prefered way to do roject.
    The easiest way to get unix environment required for using make in Windows platforms is to download the "unxutils". It includes make, bzip2, diff, ... and other unix-tools. Refer to this (found from search by google) :
    http://www.weihenstephan.de/~syring/win32/
    http://www.weihenstephan.de/~syring/win32/UnxUtils.zip
    http://sourceforge.net/projects/unxutils/
    For more documentation on how to write makefile, use make -tool, see
    http://www.gnu.org/manual/
    http://www.gnu.org/manual/make-3.79.1/html_mono/make.html

Maybe you are looking for

  • Impossible to use smugmug uploader.

    Hello, I am a smugmug user. I want to create Smugmug galleries from aperture. I have linked Aperture with my Smugmug account. I can access my Smugmug galleries in Aperture without any problem. But when I want to create a new Smugmug gallery, just not

  • BEx Hierarchy Display

    In a report we are using orgunit hierarchy and we have another field in the report Manager name (manager of the orgunit).  Currently at the top level of the hierarchy all managers are displayed for every node under it. Example Level 1 Org 1----Manage

  • Gradients not smooth after Published?

    When working with my web site in iWeb design, my gradients are nice and smooth color transitions, but when I publish my site, the gradients have obvious color change transitions, more like bars than a gradient. Why is there such a big difference in w

  • Built in mic wont work with desktop version of skype

    So i had skype already on the computer when i got it sense it had windows 8 well it just started to show that the skype i was using was going out of date so i decided to follow the link to download the desktop version now it wont work with my mic not

  • Clarifications on campaign

    Hi Gurus, I have one doubt related to campaign. I am executing a campaign on a web UI (this only to test the campaign execution). On the channels i have selected "Email" as the medium,beneath this there are two fields one is "form for data file expor