Results 1 to 6 of 6
  1. #1
    ichwar is offline Member
    Join Date
    Jul 2009
    Location
    Rolesville, North Carolina
    Posts
    16
    Rep Power
    0

    Default Publish project from NetBeans

    Hello Forum-Frequenters,
    I need a little bit of help getting started with NetBeans 6.7.

    My problem is with publishing a project that I build. How do I actually get that project out of netbeans and make it usable by any computer with the JRE installed on it?

    Thanks, I really appreciate your help.:)
    if (ichwar == offline) {
    System.out.println("ichwar is busy");}

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Have you tried clicking on "Build" then "Build Main Project"? or F11 for a single key press?

  3. #3
    ichwar is offline Member
    Join Date
    Jul 2009
    Location
    Rolesville, North Carolina
    Posts
    16
    Rep Power
    0

    Default

    Ok, so I hit f11, it says it built it, but where did it put all the class files?
    if (ichwar == offline) {
    System.out.println("ichwar is busy");}

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    have you searched your netbeans working directory for a Jar file named for the project?

  5. #5
    ichwar is offline Member
    Join Date
    Jul 2009
    Location
    Rolesville, North Carolina
    Posts
    16
    Rep Power
    0

    Default

    Perfect. That worked. Now, I'm running Ubuntu linux. Is there a way for me to make this application runnable by Windows users? And by runnable, I mean, for them to be able to just click on an icon and have the application start up. It won't work for me to tell everyone I distribute this to a long string of letters they need to type into CMD to start it up. ;)
    if (ichwar == offline) {
    System.out.println("ichwar is busy");}

  6. #6
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    Netbeans automatically creates a jar file stored in dist folder in your projects home directory. Open the dist folder and you will find your jar file over there. Double click it and your program will start.

    You can also run it in the command prompt by typing
    java -jar <YouProgram>.java
    All the best
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

Similar Threads

  1. importing a netbeans project in Eclipse
    By javanoob#1 in forum Eclipse
    Replies: 0
    Last Post: 02-10-2009, 11:20 PM
  2. Netbeans java bsased student project
    By jagadish_321 in forum NetBeans
    Replies: 1
    Last Post: 02-04-2009, 04:28 AM
  3. How to publish jms topic on server
    By pankaj_salwan in forum Advanced Java
    Replies: 0
    Last Post: 10-06-2008, 09:59 AM
  4. Generating JavaDoc For a Project In NetBeans IDE
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 08-02-2007, 12:11 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
  •