Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes Creating .exe from class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Creating .exe from class file" Watch "Creating .exe from class file" New topic
Author

Creating .exe from class file

Mani vannan
Ranch Hand

Joined: Aug 21, 2004
Posts: 185
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 ? )


Manivannan
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
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.....


Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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.


Java API Documentation
The Java Tutorial
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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

Joined: Dec 23, 2003
Posts: 798
See this link.

http://jsmooth.sourceforge.net/

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

Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30392
    
150

Manivannan,
Thanks for updating your display name. Note that we require a last name not just an initial.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating .exe from class file