Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse not running application(Configuration issue)
Eclipse not running application [message #900046] Fri, 03 August 2012 15:50 Go to next message
Reggie Walker is currently offline Reggie WalkerFriend
Messages: 1
Registered: August 2012
Junior Member
ENV: Juno on Windows XP

When attempting to run any program (as "Java Application") I get this output in the console:

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


It feels like a configuration issue - but not sure where. For testing purposes, I ran a basic "Hello World" and was able to get success. I know this doesn't say much - but any potential configuration gotchas I can look for?

TIA

Re: Eclipse not running application [message #900054 is a reply to message #900046] Fri, 03 August 2012 17:04 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1348
Registered: July 2009
Senior Member
Something appears to be incorrect in the command line that is constructed to run your application. Check the VM arguments section of your launch config. Look for any invalid options or extraneous spaces.

You can see the actual command used to launch your program by opening the Debug view and opening the terminated launch. Right click on the tree entry that represents your process and select properties. This will give the actual command used to run your application.
Previous Topic:Garbled pixels on tab names in Linux
Next Topic:Serial Version Issue with AspectJ
Goto Forum:
  


Current Time: Fri Nov 21 20:31:49 GMT 2014

Powered by FUDForum. Page generated in 0.02031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software