Results 1 to 8 of 8
Thread: Ant
- 03-23-2012, 06:34 PM #1
Member
- Join Date
- Mar 2012
- Location
- Ireland
- Posts
- 18
- Rep Power
- 0
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
HelenLast edited by helen1974; 03-23-2012 at 06:44 PM. Reason: Additional info
- 03-23-2012, 06:42 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17
Re: Ant
Which dialog did you open?
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-23-2012, 06:52 PM #3
Member
- Join Date
- Mar 2012
- Location
- Ireland
- Posts
- 18
- Rep Power
- 0
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
- 03-23-2012, 08:16 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-24-2012, 10:52 AM #5
Member
- Join Date
- Mar 2012
- Location
- Ireland
- Posts
- 18
- Rep Power
- 0
Re: Ant
I tried that, but it has not worked, but thanks for the help and suggestions.
Helen
- 03-24-2012, 11:45 AM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-24-2012, 06:51 PM #7
Member
- Join Date
- Mar 2012
- Location
- Ireland
- Posts
- 18
- Rep Power
- 0
Re: Ant
yes, Jos, thats what I am saying, maybe I need to uninstall and reinstall Eclipse ?
regards
Helen
- 03-24-2012, 11:08 PM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,394
- Blog Entries
- 7
- Rep Power
- 17


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks