d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Strange Error When Running A Project. > Builds But Won't Alway Run.
Add Reply New Topic New Poll
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 15 2013 02:21am
I get this strange error every now and then when I attempt to run certain java files. It's really hit or miss as sometimes it will run a file fine and then next it won't run the same file for no reason. Any ideas?

Code

--------------------Configuration: <Default>--------------------
Usage: java [-options] class [args...]
          (to execute a class)
  or  java [-options] -jar jarfile [args...]
          (to execute a jar file)
where options include:
   -d32   use a 32-bit data model if available
   -d64   use a 64-bit data model if available
   -server   to select the "server" VM
   -hotspot   is a synonym for the "server" VM  [deprecated]
                 The default VM is server.

   -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 | -no-jre-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 with specified granularity
   -da[:<packagename>...|:<classname>]
   -disableassertions[:<packagename>...|:<classname>]
                 disable assertions with specified granularity
   -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
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

Process completed.


Notice the process completed as if it was about to load the script.
Member
Posts: 2,478
Joined: Jan 4 2007
Gold: 7,545.00
Feb 15 2013 07:27am
It looks like you're miss typing the command to run the program.

This post was edited by DirtyRasa on Feb 15 2013 07:27am
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Feb 15 2013 08:38am
Quote (DirtyRasa @ Feb 15 2013 08:27am)
It looks like you're miss typing the command to run the program.


This. That's the java.exe man page.
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Feb 15 2013 11:23am
The commands and codes are written correctly. When I build the program it works. When I run it, it works when it wants too. I think it's because I opened the file and defaulted to JCreator IDE instead of open the IDE first and opening the file that way.

This post was edited by NinjaSushi2 on Feb 15 2013 11:24am
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll