How to make a class executable ?

I'm wondering if it is possible to make a class file executable?
If yes I would like to no how can I do that.

Is it possible to convert a class to native code which runs without
a java virtual machine. I ask this because this would incrase the performance of my application.

I use windows NT.

Can somebody help me?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1) You cannot directly make a class file executable. There are however many products on the market which allow you to build executables from your classes. To name two, there is TowerJ and IBM's Visual for Java Enterprise Edition.

2) See the above answer. I think you'll find out, though, that generally speaking, the performance gains you get from doing this aren't very significant. You should profile your application and look for the exact performance problems for which you are suffering.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1) Javasoft provides a stub C program that launches a Hello world class.
Minor modification of this file can create a platform dependent (read "NT Based") executable to launch your class

2) As for question #2, yes, there are a number of Java to C and C++ projects on the web, j2c comes to mind ( however current development in this area has stagnated with the development of newer JIT compilers.
There are many companies providing the tool to convert a class to exe.
Visit this site you find some free products which will help you to conversion of java class to exe.
This site providing JToExe tool.
Hi type,

it is previously asked question

Create the Java Application first. Then there is an utility in where
      u can convert the class file into
      an exe file. u can find it in the Java section of
      It will be something like Class to EXE
      Good Luck.

      JtoExe link is broken!!!

      Thank you mbormann, I found the product on the tucows site.  Thanks for the
      URL.  This is what I was looking for.  Please propose an answer so I
       can give you the points.

      I bought JtoExe and it works great!

      If anybody wants to know how to get it (since the link is broken),
       email me and I will post the info here.

tybeAuthor Commented:
Thank you very much for your help !!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.