The Artima Developer Community
Sponsored Link

Java Answers Forum
Conversion of class file into executable format.

3 replies on 1 page. Most recent reply: Feb 9, 2004 5:44 AM by twc

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
sajunaid

Posts: 1
Nickname: saj
Registered: Sep, 2002

Conversion of class file into executable format. Posted: Sep 10, 2002 3:46 PM
Reply to this message Reply
Advertisement
Dear Sir,
can i convert a java class file into an executable file format (.exe extention)?.
I hope that you will be reply answer of this mail.
Thanks.
S.A.Junaid


siddhartha

Posts: 15
Nickname: saddysan
Registered: Jul, 2002

Re: Conversion of class file into executable format. Posted: Sep 10, 2002 11:06 PM
Reply to this message Reply
Well Sun Microsystems does not provides any tool for converting .class files to .exe, but yes there are some third party tools available which create an .exe format which calls your programs. But in this case JDK should be at the clients machine. The link of this software is
http://www.duckware.com/jexepack/index.html

But if you need more professional solution then i will recommend to use InstallAnywhere.
http://www.zerog.com/products_ia_01.html
It will create setup file for you and also install JRE on client machine if not already installed.

I hope this will help you

saddy

Sylonious

Posts: 1
Nickname: sylonious
Registered: Feb, 2004

Re: Conversion of class file into executable format. Posted: Feb 8, 2004 3:02 PM
Reply to this message Reply
>But in this case JDK should be
> at the clients machine.

I'm new to java. It's my understanding that in order to run a java program it has to be run in MS-Dos. That is a big problem because If I build a comericial program for the masses most people would have trouble doing that. That is why I would think it would be better to have an a on click start format.

twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: Conversion of class file into executable format. Posted: Feb 9, 2004 5:44 AM
Reply to this message Reply
> >But in this case JDK should be
> > at the clients machine.

Actually, all that is needed is the JRE, not the full JDK. Only developers need the JDK.

> I'm new to java. It's my understanding that in order to
> run a java program it has to be run in MS-Dos. That is a
> big problem because If I build a comericial program for
> the masses most people would have trouble doing that. That
> is why I would think it would be better to have an a on
> click start format.

You can have a "click start format" on Windows if you bundle your program into an executable Jar file. In fact, the jar files that I have used not only click-started on Windows, but on Mac as well.

Of course, as indicated above, the user will still have to have the Java Runtime installed to run programs written in Java, but that is the way things are going. Visual Basic programs have always required a special runtime file to be installed. Flash, Shockwave, and others require plug-ins. Both Java and .NET just take the process to the next level with a full runtime environment required.

I hope this helps.

tom

Flat View: This topic has 3 replies on 1 page
Topic: Polymorphism Question Previous Topic   Next Topic Topic: NullPointerException ??

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use