Results 1 to 8 of 8

Thread: Ant

  1. #1
    helen1974 is offline Member
    Join Date
    Mar 2012
    Location
    Ireland
    Posts
    18
    Rep Power
    0

    Default Ant

    Hi all,

    I done some Eclipse / Java work today in college, saved it to my usb key and took it home, plugged it in and tried to open Eclipse / Java so that i could continue my work, i am getting a message in a dialog box which say's, "Ant Build" instead of the usual "Java Application".

    Has anyone any ideas on how to resolve this problem ?

    I have also copied some code from another project and tried running it but it is outputting info on as shown below.

    Thanks, Helen

    Usage: javaw [-options] class [args...]
    (to execute a class)
    or javaw [-options] -jar jarfile [args...]
    (to execute a jar file)

    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
    show splash screen with specified image

    Helen
    Last edited by helen1974; 03-23-2012 at 06:44 PM. Reason: Additional info

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default Re: Ant

    Which dialog did you open?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    helen1974 is offline Member
    Join Date
    Mar 2012
    Location
    Ireland
    Posts
    18
    Rep Power
    0

    Default Re: Ant

    Hi Jos,

    I opened Eclipse / Java as normal, directed the workspace to my usb and chose the file i had been working on earlier today, then i clicked on the GREEN RUN button and the result is what i have attached in my first message. Its no big deal, i could re-write the code, but I would like to know how to resolve or avoid this for when i become a professional Java developer, lol

    regards

    Helen

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default Re: Ant

    Better create a new Java (Application) project in your usual workspace and copy those files over from your usb stick; that way Eclipse can't read any (faulty?) configuration from that stick.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    helen1974 is offline Member
    Join Date
    Mar 2012
    Location
    Ireland
    Posts
    18
    Rep Power
    0

    Default Re: Ant

    I tried that, but it has not worked, but thanks for the help and suggestions.

    Helen

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default Re: Ant

    'It has not worked' doesn't tell us anything. You're basically saying that Eclipse doesn't allow you to create a new Java Application project ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    helen1974 is offline Member
    Join Date
    Mar 2012
    Location
    Ireland
    Posts
    18
    Rep Power
    0

    Default Re: Ant

    yes, Jos, thats what I am saying, maybe I need to uninstall and reinstall Eclipse ?

    regards

    Helen

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,528
    Blog Entries
    7
    Rep Power
    20

    Default Re: Ant

    Quote Originally Posted by helen1974 View Post
    yes, Jos, thats what I am saying, maybe I need to uninstall and reinstall Eclipse ?

    regards

    Helen
    Doesn't changing the workspace back again to its original value (or anywhere not on that usb stick) help?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •