The Artima Developer Community
Sponsored Link

Java Answers Forum
Java to Exe

11 replies on 1 page. Most recent reply: Jan 14, 2006 10:15 AM by John Kerry

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 11 replies on 1 page
Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Java to Exe Posted: May 3, 2004 7:59 AM
Reply to this message Reply
Advertisement
Is there any way to convert Class to Exes in JDK? Ok, ok if I could do that then it will threat Java's platform independency and security but we should have a way to convert classes to exes. Does anyone agree with me? Let me know if anyone has a solution!
Thanx,

Sanjay


twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: Java to Exe Posted: May 3, 2004 11:52 AM
Reply to this message Reply
> Is there any way to convert Class to Exes in JDK? Ok, ok
> if I could do that then it will threat Java's platform
> independency and security but we should have a way to
> convert classes to exes. Does anyone agree with me? Let me
> know if anyone has a solution!

Yours is one of the more commonly asked questions for beginners. Basically, what you are wanting is a compiler that compiles to native code rather than Java bytecode. There are ways to do this, but they tend to be very expensive.

The link below is from the Java Glossary, which is maintained by a Roedy Green. The whole site is worth bookmarking.

http://mindprod.com/jgloss/nativecompiler.html

I prefer to use executable jar files. Yes, it requires the user to install the JVM, but many of the java-to-exe solutions do too. Here is a link for more info on Jar files.
http://mindprod.com/jgloss/jar.html

Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Re: Java to Exe Posted: May 4, 2004 3:59 AM
Reply to this message Reply
I have searched through the net long time ago and I found software but the bad things is it is not for free (Ok ok people who create those deserve money) but aren't there any free stuff? I think SUN should have given us a solution with JDK.

twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: Java to Exe Posted: May 4, 2004 5:50 AM
Reply to this message Reply
> any free stuff? I think SUN should have given us a
> solution with JDK.
Why would they want to do that? As you pointed out in your first post, that would eliminate the cross-platform benefit of Java. They would be crazy to circumvent the main reason for writing code in Java.

A good alternative is to create JAR files. You can create an executable JAR file that can start and run on Windows or Mac's alike. Yes, that requires that the JRE be installed, but that isn't a big deal. Even Visual Basic has to install a runtime dll.

Look at all the 'new' languages, Perl, Python, even .NET. All of them require some sort of virtual machine. That is the wave of the future.

Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Re: Java to Exe Posted: May 4, 2004 10:17 PM
Reply to this message Reply
Actually, there are many reasons to create EXE files. Not all methods compile Java bytecode into native format - some methods simply create an executable wrapper that bootstraps the Java code. There are many uses for it. For instance, we use such an executable for installing Java programs as Windows services, and also to make Java programs work with InstallShield installations. Also, this is useful if you, for instance, want to ensure that only 1 instance of your Java app runs at a time.

I've tried a couple of progams, and found EXE4J to be the easiest to use: http://www.exe4j.com. It costs some money, but is very inexpensive, and is well worth that money, IMO. This lets you create standalone EXEs, Windows services, and even lets you specify that only a single instance run at a time.

Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Re: Java to Exe Posted: May 4, 2004 11:42 PM
Reply to this message Reply
Hi again,
Thakn you for the soft link exe4j. Try jexePack 3.4c and get the crack from web. It will work! No need to pay (Ok ok that is rude,, but have no choice!) If you anyone can't get 3.4c version then mention it here with your email address.

twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: Java to Exe Posted: May 5, 2004 6:02 AM
Reply to this message Reply
> Hi again,
> Thakn you for the soft link exe4j. Try jexePack 3.4c and
> get the crack from web. It will work! No need to pay (Ok
> ok that is rude,, but have no choice!) If you anyone can't
> get 3.4c version then mention it here with your email
> address.

It is more than rude, it is illegal and immoral. You DO have a choice - don't do it.

Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Re: Java to Exe Posted: May 5, 2004 8:20 AM
Reply to this message Reply
Oh! I am shocked to see the reply! Ok, cracking other people's software is damn bad but...

twc

Posts: 129
Nickname: twc
Registered: Feb, 2004

Re: Java to Exe Posted: May 5, 2004 12:05 PM
Reply to this message Reply
> Oh! I am shocked to see the reply! Ok, cracking other
> people's software is damn bad but...

But what? This is a list for programmers, and you are asking for help writing programs. But you turn around and indicate that it is OK to steal other people's work. Frankly, I find that very hypocritical.

I use a lot of open source software. That way it is legal and moral for me to modify it as I see fit. If it isn't availabe open-source, I either pay up, or I do without.

Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Re: Java to Exe Posted: May 6, 2004 4:05 AM
Reply to this message Reply
Ok, I will not talk about reverse engineering. Reverse engineering is bad, bad, bad, BAD! Ok, no more nasty stuff!
Regards,
Sanjay

John Kerry

Posts: 4
Nickname: bagira
Registered: Jan, 2006

Re: Java to Exe Posted: Jan 14, 2006 10:12 AM
Reply to this message Reply
Where can i download JExePack v3.4c. I just can't get it. There's only the newer version.

John Kerry

Posts: 4
Nickname: bagira
Registered: Jan, 2006

Re: Java to Exe Posted: Jan 14, 2006 10:15 AM
Reply to this message Reply
Where can i download JExePack v3.4c. I just can't get it. There's only the newer version. my mailing address is
john_marker1234@yahoo.com

Flat View: This topic has 11 replies on 1 page
Topic: 2 way mapping Previous Topic   Next Topic Topic: Parting Thought

Sponsored Links



Google
  Web Artima.com   

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