Results 1 to 3 of 3
  1. #1
    mhanzo123 is offline Member
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Default JCreator error message

    I have a 32 bit windows computer. I installed the jdk file jdk-7u17-windows-i586.exe and the documentation, and got it in line with J Creator. When I started to do simple commands, such as System.out.println("Hello World!");, the file would compile fine, but when I ran the project, I got this error message:

    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
    -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 | -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 Java SE Documentation at a Glance for more details.

    Process completed.


    any ideas? thanks!

  2. #2
    SJF
    SJF is offline Senior Member
    Join Date
    Oct 2012
    Posts
    108
    Rep Power
    0

    Default Re: JCreator error message

    change directory to where your class file is located.

    java YourFilename (omit .class)

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,031
    Rep Power
    23

    Default Re: JCreator error message

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. JCreator error message
    By mhanzo123 in forum JCreator
    Replies: 1
    Last Post: 03-20-2013, 04:47 AM
  2. JCreator Error
    By akanksha in forum JCreator
    Replies: 1
    Last Post: 03-17-2012, 06:20 PM
  3. Jcreator error help
    By Sage in forum JCreator
    Replies: 1
    Last Post: 03-19-2010, 03:03 AM
  4. JCreator error:
    By guru_boy in forum New To Java
    Replies: 4
    Last Post: 05-06-2009, 05:53 AM
  5. error with JCreator
    By marco in forum JCreator
    Replies: 4
    Last Post: 11-29-2008, 09:33 PM

Tags for this Thread

Posting Permissions

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