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

Similar Messages

  • 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

  • Hi, I use two email addresses within one account with gmx.  I created one account with the first email address now. How do I add the second one to this account? Now it looks like this. One account was opened with address A. I receive in this account email

    Hi, I use two email addresses within one account with gmx.
    I created one account with the first email address now. How do I add the second one to this account?
    Now it looks like this.
    One account was opened with address A.
    I receive in this account emails for address A and B.
    But I can only write and answer with address A.

    Hi Rudegar,
    Sorry for my late reply.
    It s not the amount of accounts I'm struggling with.
    When I create now for both email addresses one account, then I receive the same emails two times.
    That is not what I want.
    Because on gmx the two email addresses have the same inbox and outbox.
    E.g. I can login to my gmx account either with email A or B. It doesn't matter.
    Now I want to have the same on my ipad.
    One account with both email addresses.

  • How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari" bc I can't download the latest software?

    How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari". I cannot download this software bc my lap top is to old. The msg literally pops up everytime I make any moves on itunes and is VERY annoying.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • How to use the add_line procedure of laf project

    Hi all.
    I'd like to use the add_line procedure of Laf project to draw a line at a specific place in a canvas. But there are several parameters and i can match the one i'm looking for.
    I can for example, set how large, thick, color etc. that line is to be drawned. but indeed i, like to place it at a specific location within a canvas, say (56,31).
    My current line of code is:
    Set_Custom_Property( 'CONTROL_LAF.BEAN',1,'ADD_LINE','1,10,10,300,10,2,r154g106b58,.5,round,blevel');      
    Any ideas will be highly appreciated.
    Regards, Luis ...!

    Hello,
    <p>Do you have the link to the documentation?<br>
    You can specify only the first 5 parameter wich are: indice, x1, y1, x2, y2<br>
    Set_Custom_Property( …, 'ADD_LINE', '1,56,31,250,31' );
    </p>
    Francois

  • 'iTunes requires Safari 4.0.3 or later to use the iTunes store within iTunes'

    In iTunes 10.5 on my Mac OS X 10.5.2, this message keeps popping up;
    "'iTunes requires Safari 4.0.3 or later to use the iTunes store within iTunes"
    This pops up every 5 or so seconds, so its really annoying if im trying to listen to music. There is no 'don't show this message again' option so its really getting on my nerves! The only way to get update Safari is though a software update and I am scared that if I do a software update, my Mac could crash again, like it did the last time and I had to spend €130 to get it fixed!
    My question is:
    1) should I do a software update and
    2) how can I stop this message apart from updating?
    Thanks in advance,
    Hannah.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • Has anyone used the new Panasonic HDC-HS300 camcorder with FCE4 yet?

    I'm thinking of buying this new high definition camcorder, but would like to know whether anyone has used it: does the log/transfer manner of getting video into final cut espress work?
    I'm also interested in whether anyone has used the new Canon LEGRIA HF S10, with the same question.
    thanks,
    Steve

    Both of the cameras you provided links to should work fine with FCE. For the Canon and Panasonic cameras, you would use Log and Transfer to import the footage. This should work very smoothly as long as you shoot using 60i so it is compatible with the sequence in FCE. I use an AVCHD camcorder similar to the Canon you are looking at an it is working great for me.
    Things to keep in mind:
    1. Both HDV and AVCHD footage need to be converted to AIC in FCE upon capture/ingestion. FCE will do this automatically, but be prepared for large file sizes. A 15 minute project I created on my AVCHD camcorder at 1920x1080 took up about 15-20 GB of memory once converted to AIC.
    2. If you get an HDV or DV camera you will use Capture, not Log and Transfer.
    3. Becaues of the way AVCHD footage works, when FCE imports it the program creates intermediate frames between the ones the camera captures. This is normally OK but might be a problem for fast action shots.
    4. As Ian said, unless you plan to invest in more expensive equipment the DVDs you burn will actually be SD, not HD. I do this in iDVD and I have always been happy with the results.
    So I guess it is up to you: Do you prefer to shoot on tape or hard-drive, use firewire or USB to upload? If the answer is tape, firewire then HDV is for you. If hard-disc, USB, choose AVCHD. In the end it comes down to your personal preference. All of the cameras you have mentioned should be fine working with FCE.

  • How do I use the AirPlay Mirroing on my mac with Mountain Lion ?

    How do I use the AirPlay Mirroing on my mac with Mountain Lion ?
    I watched the video about Mountain Lion, but the airplay icon can't appear on my menu bar.
    WHY ?

    i have a MacBook Air (Early 2011)
    and it doesn't support the airplay mirroring ,,, the only things that the failed to do is  " MENTION IT "
    it wouldn't hurt anyone if they just say it's limited to Late macs ,,,, i really wanted that feature and i updated my mac so i can watch movies on my HD screen ,,,,
    i hope they made and update for it ,,, otherwise i have to wait another 4 months to get a new macbook pro

  • Can I use the Apple ADC to DVI adapter with a VGA monitor?

    Hey everybody,
    I have a quick question. I work on computers fr friends and family as a hobby. I have an ADC monitor and need ot be able to hook up computers with a VGA port on them to it. Can I use the Apple ADC to DVI adapter along with an Apple DVI to VGA adapter to successfully connect VGA computers to my ADC display? I was assuming this would work and ordered both adapters but now I have made myself nervous about weather or not this will actually work. Has anybody out there successfully done this? Thanks for your help in advance everybody.

    You can't run an ADC display with a VGA computer without a converter. Adapters won't do it.
    a VGA to ADC converter will drive the ADC display directly
    <http://www.gefen.com/kvm/product.jsp?prod_id=1301>
    If you have the Apple DVI to ADC adapter
    <http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=18 72D402&nplm=M8661LL/B>
    you could use it with a VGA to DVI converter
    <http://www.gefen.com/kvm/product.jsp?prod_id=1310>
    It might be cheaper to get DVI graphics boards for the computers and use the Apple DVI to ADC adapter.
    <http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=18 72D402&nplm=M8661LL/B>
    Your title says "Can I use the Apple ADC to DVI adapter with a VGA monitor?". If you want to connect a VGA monitor to a computer's ADC port you need the ADC to VGA adapter
    <http://www.gefen.com/kvm/product.jsp?prod_id=1299> You can't use an ADC to DVI adapter followed by a DVI to VGA adapter, because the ADC to DVI adapter doesn't pass the analog video signals needed for VGA.

  • Why can't i use the radio on my nano 7g with bluetooth

    why can't i use the radio on my nano 7g with bluetooth. i wanted to use wireless feature at work but i only use the radio at work , so i bought bluetooth stereo headphones by plantronics, got the backbeat 903, at wal-mart  . got home got it all set up and works fine but not for radio , i'm so dissaponted and am thinking i might take them back and continue using the wire ware , but then again i like listening to my podcast while doing dishes and chores at home so the bluetooth would be better for that .

    i have sent a feedback form to apple about this problem . i hope that they work on a sulotion for it .

  • Can I use the camera on my iPod Touch with FaceTime?

      I have been trying to use the camera on my iPod Touch with FaceTime.  Will it work?  How do I sign in?  When I click on Preferences the preferences window does not appear, and preferences in the drop down menu becomes greyed out.  I am using an older Apple Cinema Display.  Also Apple doesn't show the iSight camera for sale on the website.

    Hello Chris
    Pairing an iPod touch to the computer to use the camera is not supported, but you can use any webcam that can be plugged into the computer.
    FaceTime for Mac: About HD video calling
    http://support.apple.com/kb/HT4534
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • The disk drive in my iMac 8,1 has stopped working, so I now use an LG 8x Slim Portable that works.  However, every time I use the LG drive, I lose contact with my Time Machine back-up drive that has to be deleted and reinstalled.  Help!

    The disk drive in my iMac 8,1 has stopped working, so I now use an LG 8x Slim Portable that works.  However, every time I use the LG drive, I lose contact with my Time Machine back-up drive that has to be deleted and reinstalled.  Help!

    It's not Logic that can't find them, it's your Komplete apps, though if you did exaclty as you say I can see no reason why they can't.
    Do you know where the apps installed them in the first place? I chose a non-standard locarion for mine, but I'm sure it installs sounds to your documents folder/native instruments/name of app.
    Go into the prefs of each app and choose the library location button on the library tab and point it to the relevant folder in documents/native instruments and see if that works
    jake

  • Using  the current version of photoshop CC with Mac OS 10.9 for the next 5 or so years on same mac?

    I am intending to upgrade to photoshop CC from photoshop CS6, my concern is is my computer is 6 years old and probably I will not be able to upgrade to a later mac operating system as I have mac os 10.9, and I may not be able to upgrade to a future version of photoshop, will I be able to use the current version of photoshop CC with Mac OS 10.9 for the next 5 or so years on same mac?, I know I can do this with Photoshop CS6.

    There's no reason why you can't do both.  You will always have CS6 to fall back on if the need should ever arise, the same as most of the regular posters here.  But you could enjoy CC for as long as it suited you, and it has some very features and more are coming all the time.
    We've seen two nice updates to Photoshop CC in the eight months since the subscription model went live.  (Have I got that right?)  So we can expect three a year or more, and there were some killer new features in 14.2.  Heck, it would already break my heart if I had to go back to CS6.  In another four years...   It ain't gonna happen.

  • Can i use the trial version of Photoshop CS6 with Windows XP - if so, where can i download it?

    Can i use the trial version of Photoshop CS6 with Windows XP - if so, where can i download it?

    Hi,
    Yes you can, please check the minimum system requirements: System requirements | Photoshop
    Here is the download link for trail: Download CS6 products
    Thank You
    Arjun

  • How to use the special character pallet in Maverics with Illustrator

    How to use the special character pallet in Mavericks with Illustrator - I follow the help instructions, but the pasted in object looks like a rectangle with an X, I have done this before, in earlier versions of AI, but cannot make it work in CS6.
    In fact, I can open an old AI file (CS4), copy the character (a graphic symbol, also taken from the special character set), paste it in, and it works, but can't do this with a new one, from the drop down, Show Character Viewer, in the Mavericks menu bar.

    The box with an X indicates the font you are using does not have the glyph you are trying to paste. Try a different font.

Maybe you are looking for