Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2012
    Posts
    52
    Rep Power
    0

    Smile Eclipse won't run the java program

    I had a project that was running good, but I renamed it and now it gives me this really long warning:
    I need to fix this as fast as possible because I am going to make a 2d game for school.

    Java Code:
    Usage: javaw [-options] class [args...]
               (to execute a class)
       or  javaw [-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.
    I can add more of it if you need it.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,941
    Rep Power
    8

    Default Re: Eclipse won't run the java program

    That is not an error message. That appears to be simply the output you get when you type "javaw" into a command prompt without any arguments.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Join Date
    Jun 2012
    Posts
    52
    Rep Power
    0

    Default Re: Eclipse won't run the java program

    I am using eclipse so I don't know how to change the arguments

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,941
    Rep Power
    8

    Default Re: Eclipse won't run the java program

    Quote Originally Posted by HelloWorld1234 View Post
    I am using eclipse so I don't know how to change the arguments
    You're going to have to be more specific. When do you see this output? What exactly are you trying to do? What happens when you compile via the command line? Do you have any real errors in eclipse?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Join Date
    Jun 2012
    Posts
    52
    Rep Power
    0

    Default Re: Eclipse won't run the java program

    I get this every time I try to run a program in eclipse and I haven't tried manually building the project in the command line, and no I don't have any real errors in eclipse. I am just tring to run my program.
    I will try to compile in the command line now.
    I just found out that I don't know how to compile in the command line...
    Last edited by HelloWorld1234; 04-03-2013 at 07:05 PM.

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,941
    Rep Power
    8

    Default Re: Eclipse won't run the java program

    Like I said, what you're showing isn't an error message. If you aren't getting any error messages (and I would bet that you are, you just don't see them), it's going to be pretty tough to help you.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    Join Date
    Jun 2012
    Posts
    52
    Rep Power
    0

    Default Re: Eclipse won't run the java program

    could you tell me how to compile it in the command line, that would probaly be of help.

  8. #8
    Join Date
    Jun 2012
    Posts
    52
    Rep Power
    0

    Default Re: Eclipse won't run the java program

    I fixed it, I don't know how, but my launch settings had been reset, and now I managed to restore them, thx for your help :)

  9. #9
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,941
    Rep Power
    8

    Default Re: Eclipse won't run the java program

    This is why I recommend beginners stick with compiling via the command prompt, at least until they understand what's going on. For more information: "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Java program in Eclipse help (Mouse events in applet)
    By M-Dub4321 in forum New To Java
    Replies: 6
    Last Post: 06-11-2012, 04:06 PM
  2. Need help with java program using eclipse
    By starplayerrob in forum New To Java
    Replies: 16
    Last Post: 07-01-2011, 09:34 AM
  3. Running a java program without eclipse / JAR Files?
    By littledrummerboy in forum New To Java
    Replies: 7
    Last Post: 05-30-2011, 06:38 PM
  4. Replies: 1
    Last Post: 01-18-2011, 06:27 PM
  5. DB program in Eclipse
    By Unni in forum Eclipse
    Replies: 3
    Last Post: 08-09-2007, 11:07 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
  •