Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Mental Java error

  • 30-06-2012 2:17am
    #1
    Registered Users, Registered Users 2 Posts: 85 ✭✭


    JCreator keeps giving me the error below.

    My lecturer has no clue how to fix it. Any ideas?

    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
    -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 http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.


Comments

  • Closed Accounts Posts: 7,145 ✭✭✭DonkeyStyle \o/


    I'm not well up on Java, but it looks like the default output of java.exe when it's called with no arguments (or the help switch). There's probably an option in the IDE where you set the path and arguments to java.exe ... maybe they're not asking for java.exe, but javac.exe and you've got it pointed at the wrong file. Do you have the SDK installed or just the runtime?


  • Closed Accounts Posts: 5,482 ✭✭✭Kidchameleon


    I just ran java in command prompt there with no arguments and got the exact same "error". Looks like your ide is not set up correctly.


  • Registered Users, Registered Users 2 Posts: 1,686 ✭✭✭RealistSpy


    Have you tried using another IDE like eclipse?


  • Banned (with Prison Access) Posts: 60 ✭✭pseudofax


    Have you tried compiling manually with the "javac" command on the command line? Forget using IDE's when problems like this occur, as the problem could be the IDE itself and any associated environmental variables.


  • Registered Users, Registered Users 2 Posts: 1,712 ✭✭✭neil_hosey


    reinstall jcreator.. or alternatively use a good one! :)

    heres one:
    http://www.jetbrains.com/idea/


  • Advertisement
Advertisement