Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating .exe from class file

 
Mani vannan
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any way that I can create .exe from class file using Netbeans? (I know some tools exist. But is there any option in Netbeans ? )
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Initials aren't enough. You can change your display name here. Thanks!

Second: this particular forum is for Java news announcements and discussion. We do have a forum for questions about IDEs, and so I'll move this thread there for you.
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last name concept is not there in all communities in all over the world, so i think if Ranchers would like to move globaly, they should adapt themselves to the global conditions.....
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Senthil B Kumar:
The last name concept is not there in all communities in all over the world, so i think if Ranchers would like to move globaly, they should adapt themselves to the global conditions.....


The name policy actually addresses that issue:

I understand that in some cultures there is no such thing as "first name and last name" - there is just one name. If you are one of these people, I would like to humbly ask you to sacrifice a piece of your culture to help me build this culture. In the past, permitting single names has inspired less wholesome "creative" aliases. The job of keeping names professional grew exponentially. The result is that exceptions to the naming rule are no longer permitted.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manivannan. P:
Hi all,
Is there any way that I can create .exe from class file using Netbeans? (I know some tools exist. But is there any option in Netbeans ? )


Now to actually address your question...

I don't know of any feature in NetBeans that allows you to create a .exe file. But then again, I don't know why you would want to, either, because .exe files only run in Windows. In my opinion a better solution is to make an executable JAR file instead. Executable JARs can run on any platform that has a JRE installed. In fact, if you are using NetBeans 4.0, it creates such a JAR for you in the dist folder of your project. If you want to run your program on a friend's computer, you just have to transfer this JAR file with your favorite medium (email, floppy disk, USB key, etc.).

If you want to learn how to create a executable JAR without NetBeans, I suggest that you google for "executable JAR".

Layne
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this link.

http://jsmooth.sourceforge.net/

The post author want to protect his source code. You could try that link.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manivannan,
Thanks for updating your display name. Note that we require a last name not just an initial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic