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

    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.
    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 | -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
    enable assertions with specified granularity
    disable assertions with specified granularity
    -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
    See Java SE Documentation at a Glance for more details.

    Process completed.

    any ideas? thanks!

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

    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
    Madgaon, Goa, India
    Rep Power

    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, 03:47 AM
  2. JCreator Error
    By akanksha in forum JCreator
    Replies: 1
    Last Post: 03-17-2012, 05:20 PM
  3. Jcreator error help
    By Sage in forum JCreator
    Replies: 1
    Last Post: 03-19-2010, 02: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, 08: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