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.
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.
set a system property
enable verbose output
-version print product version and exit
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
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
load native agent library by full pathname
load Java programming language agent, see java.lang.instrument
show splash screen with specified image
Which dialog did you open?
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
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.
I tried that, but it has not worked, but thanks for the help and suggestions.
'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 ...
yes, Jos, thats what I am saying, maybe I need to uninstall and reinstall Eclipse ?
Doesn't changing the workspace back again to its original value (or anywhere not on that usb stick) help?
Originally Posted by helen1974