Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

about creating a java exe file

Thread view: 
bharath - 05 Mar 2007 11:44 GMT
hi,
   i want to create a exe file from java class file  how to create it
and  is there any function  or  a way to run a java file within a java
file
Ingo R. Homann - 05 Mar 2007 11:49 GMT
Hi,

> hi,
>     i want to create a exe file from java class file  how to create it
> and  is there any function  or  a way to run a java file within a java
> file

Why do you need that? I mean, there are some exe-Wrappers, but most of
them need the installation of the JRE as well. And a jar-file can be
executed by a double-click as well. Webstart may be a good alternative
if you only need a "smooth" installation and update. However, JSmooth
may also be an idea for you.

Hth,
Ingo
bharath - 05 Mar 2007 12:11 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> Hth,
> Ingo
actually i am doing a project on image processing . i had implemented
the operations like
connected components,otsu binarization ,and several other operations
related to image processing using java and i want an exe file for each
of the java class file and i am a beginner to the java plz help me
Ingo R. Homann - 05 Mar 2007 12:43 GMT
Hi,

>>> i want to create a exe file
>>
>>Why do you need that?...
>
> ...i want an exe file...

As I said: There are some tools - like JSmooth.

As I said: There is no reason to create an exe. An "exeutable jar" is
enough (see the documentation for the command-line-tool 'jar').

Ciao,
Ingo

PS: By the way - if you think that the program runs faster if you create
an exe, then you are wrong. If your Program is slow, normally the reason
is that it is not well implemented.
Joe Attardi - 05 Mar 2007 17:00 GMT
> As I said: There is no reason to create an exe. An "exeutable jar" is
> enough (see the documentation for the command-line-tool 'jar').

Ingo --

While technically true, there is still some motivation to create a
native .exe launcher vs. an executable jar. It comes down to user
friendliness. If the user does not have an appropriate JRE to run the
program, a native EXE can check for that and warn the user that he/she
needs to download a newer JRE for their platform. The alternative is
getting an UnsupportedClassVersionError - which to your average end
user will be gibberish. So there's one possible reason.
Ingo R. Homann - 06 Mar 2007 08:29 GMT
Hi,

> While technically true, there is still some motivation to create a
> native .exe launcher vs. an executable jar. It comes down to user
[quoted text clipped - 3 lines]
> getting an UnsupportedClassVersionError - which to your average end
> user will be gibberish. So there's one possible reason.

What about a simple starter.jar which runs on *every* JVM independant of
the version?

Ciao,
Ingo
Joe Attardi - 06 Mar 2007 15:59 GMT
> What about a simple starter.jar which runs on *every* JVM independant of
> the version?

You could do that, I suppose. There still one case where this wouldn't
work, though - if a user doesn't have a JVM installed at all. I know
it is probably an uncommon case, but still one to consider.

Another point to consider is better OS integration. By default a JAR
file will just have a Java icon, whereas a native .exe launcher could
have the application icon embedded in it as a resource. A better
example of where a native launcher would be more beneficial is on a
Mac OS X system. For a clickable-launchable application on the Mac,
there is a whole directory structure that must be set up. But once it
is, it fits right in with the native environment and feels more like a
normal application.

This doesn't matter for more techie/developer oriented programs,
because users like you and I know that we can just double click the
jar and that's good enough for us, because it's a Java program.

But again, you make some good points too - just keeping the discussion
going!

--
Joe Attardi
Ian Wilson - 05 Mar 2007 14:33 GMT
> hi,
>     i want to create a exe file from java class file  how to create it

http://www.excelsior-usa.com/articles/java-to-exe.html

Note: Excelsior produce a commercial Java compiler, so are not
disinterested. Having said that, the article seems reasonably fair to me.

> and  is there any function  or  a way to run a java file within a java
> file

I'm not sure what you mean by "java file": source code, byte code,
native executable?
Andrew Thompson - 05 Mar 2007 23:56 GMT
..
> ..is there any function  or  a way to run a java file within a java
> file

<http://www.physci.org/codes/javafaq.html#exe>
<http://www.physci.org/codes/javafaq.html#jws>
Some examples..
<http://www.physci.org/jws/>

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.