Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java to exe compiler

Options
  • 25-11-2003 6:19pm
    #1
    Closed Accounts Posts: 989 ✭✭✭


    Is there a free or very cheap program to create executables from Java programmes?


Comments

  • Hosted Moderators Posts: 2,094 ✭✭✭halenger


    Ive tried this and it works like a charm:

    JET

    There's a free version there for non-commercial use of course.

    I've used it and it does exactly what it's supposed to. Not too complicated. Can seem a bit complicated at first but give it all the details it asks for (and or check the help files) and you'll be compiling java in no time! :)


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    http://www.duckware.com/jexepack/

    Not free though. It is a bit pointless making an EXE though. Better to create an app that will work on other systems.

    You can also make a self executing jar file which is better IMHO...

    http://www.freejavahelp.com/articles/jar.html


  • Closed Accounts Posts: 989 ✭✭✭MrNuked


    Wanted to put it into an executable to protect my intellectual property - Java Class files can be reverse-compiled. Also to make it "feel" like a commercial app.


  • Registered Users Posts: 4,185 ✭✭✭deadl0ck


    Whay write it in Java if you're going to turn it in to an exe ?


  • Registered Users Posts: 3,135 ✭✭✭oneweb


    Could you not wrap the class files & resources in a WAR?

    It is what it's.



  • Advertisement
  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    Originally posted by MrNuked
    Wanted to put it into an executable to protect my intellectual property - Java Class files can be reverse-compiled. Also to make it "feel" like a commercial app.

    Anything can be reversed compiled, even an exe. You should just use an Java Obfuscator like these if you want to protect your bytecode ....

    http://www.leesw.com/
    http://www.codingart.com/codeshield.html
    http://www.zelix.com/klassmaster/

    Not sure what you mean "feel" like a commercial app. More like feel like a windows application.

    Actually a quick look at those EXE compilers they are more wrappers then actual bytecode to instruction code, so not sure what you get out of it.


  • Registered Users Posts: 4,185 ✭✭✭deadl0ck


    Could you not wrap the class files & resources in a WAR?

    What good would that do ?

    That's only a web archive file - in essence it's just a jar file


  • Registered Users Posts: 1,865 ✭✭✭Syth


    Isn't the whole point of Java that it's multiplatform? For that you need Java bytecode. If you want to write programmes that'll be executables then learn C++ or something.


  • Closed Accounts Posts: 989 ✭✭✭MrNuked


    I want to build a lightweight application and make it available for download. If I use regular java files I have to bundle the JVM with it which would increase the download size. I think Java is not the best choice for the program; I was intending to go with it because it's my preferred language and I've already developed some Java text manipulation tools that could be reused in this project.
    Are there free VB/C++ compilers? Think I got VB 6 free with a magazine somewhere so maybe I'll use that. Need to design a GUI as part of it so it might be the best choice.
    Thanks for the links and info


  • Registered Users Posts: 4,185 ✭✭✭deadl0ck


    You could use C#. It's very like Java.

    Also .NET SDK is downloadable and I've used SharpDevelop with is a pretty good free IDE


  • Advertisement
  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    Originally posted by MrNuked
    I want to build a lightweight application and make it available for download. If I use regular java files I have to bundle the JVM with it which would increase the download size.

    Actually you don't have to bundle the JVM, just point the user to the JVM download link if they don't have it.

    C# and VB your kind of in the same boat. You are going to have to bundle runtime files as well (or in the case of C# the user is actually going to have install .NET)


Advertisement