Results 1 to 8 of 8
  1. #1
    Ilgoo is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Red face stupid question...

    I there!
    I know nothing about Java but I would just like to run this:

    i have got a folder here with
    - a ".settings"-folder
    - a "bin"
    - a "lib"
    - a "src"-folder
    - a ".classpath"
    and
    - a ".project"

    and i want to run this! how do i do this?
    thx

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: stupid question...

    That is a Netbeans project. You can open it using the Netbeans program. If this is supposed to be a Java program that you want to run, there should be a jar file in that 'bin' directory which you may be able to run by just double clicking it (if Java is properly installed on your system). If there isn't any such thing, well then you're not really in a position to be helped.
    Last edited by gimbal2; 11-11-2013 at 03:37 PM. Reason: typo
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Ilgoo is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Default Re: stupid question...

    I have got java installed but if i double click the .jar files nothing happens!

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: stupid question...

    Then it is probably not a jar that you can run. Ask whoever you got this project from what to do.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    Ilgoo is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Default Re: stupid question...

    i would i run a folder like this?

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: stupid question...

    A way to see if there is an error message:
    open a command prompt window and change to the directory with the jar file
    execute this command: java -jar THEJARFILENAMEHERE
    If java has an error, the message should display.

    On windows: To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    Ilgoo is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Default Re: stupid question...

    this is what i get:

    no mainmaniestattribut, in THEJARFILENAMEHERE

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: stupid question...

    Please copy the full contents of the command prompt window. It should show the command that you entered as well as the error message. The contents should look like this:
    Java Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\Norm>java -jar NoJarFile
    Error: Unable to access jarfile NoJarFile
    
    C:\Users\Norm>
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. New to android, probably a stupid question
    By mwr1976 in forum Android
    Replies: 0
    Last Post: 11-22-2011, 08:47 PM
  2. simple question feel stupid asking...
    By IYIaster in forum New To Java
    Replies: 3
    Last Post: 10-02-2009, 05:04 PM
  3. a really stupid question
    By SwinGirl in forum NetBeans
    Replies: 10
    Last Post: 06-25-2008, 09:06 PM
  4. Quick Stupid Question
    By bluekswing in forum New To Java
    Replies: 7
    Last Post: 01-08-2008, 06:35 PM

Posting Permissions

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