Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Java

    Hello, I have recently picked up Java coding and started learning the basics. However I am new to programming as a whole and am confused about a point.

    I use NetBeans (IDE 6.9.3) and know how to make some very basic code and running it in Netbeans however as much as I look I cant seem to find a way to run the .java or .class files it puts out when I save it after working on it

    Also I was wondering, after figuring out how to run the files how I would promt a user for a input to use as a string. And how to display outputs (such as strings or vars).

    Im sorry if this is a long question but if you know and good websites or such please link them to me.

    Thanks


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java

    The only semi-automatic launcher for Java is the executable jar. I don't know if Netbeans allows you to export these (don't see why it wouldn't), but Eclipse does has this function.

    There are other solutions (such as creating your own Java application launcher, or creating a script file), but these are more complicated. Of course, you can always launch Java applications from the command-line (note: this can get very complicated, particularly for larger projects). For a reference, see The official command-line docs.