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 5 of 5

Thread: How to create .exe file for project based on Netbeans 6.5?

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to create .exe file for project based on Netbeans 6.5?

    Dear sir,
    I have developed my project in netbeans 6.5.The project is library management system using frames and database
    Now I want my project to run on 1 click,that means I have to create .exe file
    Please tell me how to create that so that my project opens on 1 click
    regards
    gaurav khatwani


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: converting to .exe

    Hello haygaurav and welcome to the Java Programming Forums.

    As far as im aware, you cannot make a Java exe file using Netbeans.

    You are going to need to find a convertor. These are applications that will convert your .java/.jar file into an executable .exe.

    These links should clear things up for you:

    Convert Java to EXE - Why, When, When Not and How

    JSmooth 0.9.9-7 User Manual

    Let us know how you get on. It would be interesting to report your results.

    Thank you.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: converting to .exe

    I find this a interesting problem, I have not checked out the link this time, I did read it once before, one would think that since the OAK project failed & it was internet that saved the day and gave us what is now JAVA, that to make sure the foot is in the door and make JAVA really really really good that there would be a option to make a stand alone project.


    But my question is if you can not make a EXE file from your *.java work, what about having a set of files so if you take all your *.class to a computer that does not have JRE (Java Runtime Environment) installed on that computer you can still run your project.



    ---- MORE -----

    why do I always get this ??????????
    I log on, write my story, then this wined up message appears that increases my blood pressure " You do not have permission to perform this action. Please refresh the page and login before trying again. " THEN I HAVE TO LOG ON AGAIN!!!!!!!!!! its getting on my tit.
    Last edited by Eric; November 28th, 2008 at 12:18 PM.

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: converting to .exe

    Eric, please check your Private Messages. Located at the top right of the forums.

    Can you please address your issues in a private message to me or post in the JPF Lobby rather than hijacking this thread.

    Thanks again.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  5. #5
    Junior Member
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: converting to .exe

    Quote Originally Posted by haygaurav View Post
    Now I want my project to run on 1 click,that means I have to create .exe file
    Hi haygaurav,

    when you want to run your project on 1 click, that may not just mean to create a exe file.
    you can have a .bat file. with the below code (sample)
    java -jar "C:\Projects\NumberAddition\dist\NumberAddition.ja r"

    hope that helps....

    regards
    bijju

Similar Threads

  1. How to convert GSM 6.10 wav file to MP3/PCM/OGG/AU format using JAVA?
    By expertise in forum Java ME (Mobile Edition)
    Replies: 4
    Last Post: April 11th, 2014, 02:13 AM
  2. [SOLVED] Java program to convert and compare integers
    By luke in forum What's Wrong With My Code?
    Replies: 9
    Last Post: May 18th, 2009, 06:26 PM
  3. Program to convert Hexadecimal to its Character equivalent
    By nathanernest in forum Java Theory & Questions
    Replies: 2
    Last Post: April 8th, 2009, 03:12 AM
  4. Java program to find the minimum and maximum values of input data
    By awake77 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 20th, 2008, 04:12 PM