Results 1 to 2 of 2
  1. #1
    Josep_16's Avatar
    Josep_16 is offline Member
    Join Date
    Mar 2011
    Posts
    40
    Rep Power
    0

    Default How to create executable Java file?

    Hello. I'm still a novice in Java, and I've never created a Java file that could be executed just by double-clicking, just like an .exe would; I just tried the program by using "Run" in Netbeans.
    The kind of file I mean is like the ones you can download in the oracle examples' webpage: for example, in the Swing components examples' webpage (Using Swing Components: Examples (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)), by clicking [Launch], which downloads the file.
    Is there a way to do it in Netbeans ? And is there any difference from the kind of file used for applets than for self-governing programs?
    Thanks!

  2. #2
    jammas615 is offline Senior Member
    Join Date
    Jul 2011
    Location
    Melbourne, Victoria, Australia
    Posts
    155
    Rep Power
    3

    Default Re: How to create executable Java file?

    You want a .jar file, correct? I know that in eclipse you can export your project to an executable jar.
    In NetBeans:
    Packaging and Deploying Desktop Java Applications
    Last edited by jammas615; 10-05-2011 at 10:53 PM.

Similar Threads

  1. create windows executable using executable jar file
    By sarwar1234 in forum New To Java
    Replies: 2
    Last Post: 02-07-2011, 08:29 PM
  2. How to create an executable jar file?
    By Jonatan10 in forum New To Java
    Replies: 7
    Last Post: 12-23-2010, 03:42 PM
  3. Create Executable Jar file
    By sarwar1234 in forum New To Java
    Replies: 11
    Last Post: 10-28-2010, 12:26 PM
  4. Create Executable Jar file
    By sarwar1234 in forum New To Java
    Replies: 3
    Last Post: 09-27-2010, 05:10 PM
  5. How to create java executable file through CMD
    By Riaz Ali in forum New To Java
    Replies: 4
    Last Post: 08-03-2010, 08:20 AM

Posting Permissions

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