Jar To Exe

Hi All
I have a .jar file.Now i want to create .exe.How can i make it.
Plz Help me

Vijayjava wrote:
Hi All
I have a .jar file.Now i want to create .exe.How can i make it.
Plz Help mehttp://launch4j.sourceforge.net/
probably that's what you are looking for
Regards

Similar Messages

  • Has anybody used jsmooth tool to convert .jar to .exe?help needed

    Hello,
    has anybody used jsmooth tool to convert .jar to .exe if so please let me how to do because i couldnt do using the user manual since its not clear pls if any one uses it please let me know the procedure to do its really urgent plsssss

    Prabhav (guest) wrote:
    : We were looking for a tool from which we could directly embed
    : PL/SQL codes to our pre built HTML pages. When I came across
    : WebAlchemy, developed by the Aussie pro, I thought that was
    the
    : thing I wanted. I am using the beta version 2.1 of WebAlchemy
    : but I am having problems converting my pl/sql embedded Html
    file
    : into web PL/SQL cartridge as the Alchemy cannot convert few
    : attributes properly.
    : Has any body used it and have solution? Is there any other
    : product like this on the web or market? Pleaes advice, only
    : thing I want is to let my HTML be able to listen to Pl/sql
    : procedure and generate dynamic contents without use of CGI and
    : JavaScript.
    : Please suggest anything u can.
    Hi,
    I have also used Web Alchemy, but have never come across a
    production version (I tried also). It's a shame it was never
    completed, as it only seems to support HTML v2.
    Regards
    Toby.
    null

  • Jar to exe is *really fragging simple* - read on...

    Step 1) compile this code to xjar.bin
    int main(int argc, char *argv) {
        return system("javaw -jar xjar.exe");
    }step 2) cat xjar.bin yourapp.jar > xjar.exe
    viola, it's an exe, it can have a pretty icon, a user can double click to run, no .bat files, AND it's cross platform! because you can legally prepend data to a zip file, the exe is merely a header, for other platforms you can run the normal .bat / .jar way. (you may need to do zip -F to fix though, the kaffe VM doesn't like headered zips, sun's is ok with it though)
    ===
    My knowledge of C was really basic a few months ago, and has rotted since, methinkst it should only take another couple of lines to do
    "javaw -jar %s", args[0]
    to allow renaming of the exe, but my many attempts all segfault, can someone here add to it?

    still need a JVMWherever you go you still need libraries - and compare
    the size of 8MB JRE download to all the gigabytes of
    stuff in /usr/lib
    The most common reason is because they want the appto be faster, this solution,
    at least on start up is slightly slower.It starts slightly slower, and after that JIT takes
    care of the rest. With the exception of array use
    (with enforced bounds checking each access) and the
    first time a each class is loaded, JITted programs can
    run faster than CI didn't claim that it would run faster if actually compiled. I did however say that is what people think when they are looking for a compiled solution. I doubt that they will think that your solution meets that need.
    >
    >
    The second most common reason is to "protect" thecode. This doesn't help
    with that either.A) most people wouldn't even attempt to decompile
    any .exe file, unless they know its a jar in disguise
    B) Obfuscation helps a lot, even if it isn't perfect
    C) C binaries can be decompiled to C source, just like
    java. I can't remember the program (dcc?), it's still
    in alpha and the author got a job and moved on before
    finishing it, but it still works for small simple
    apps.
    D) Writing / editing parts in jasmin tends to screw up
    decompilers, and they either crash or resort to
    spewing bytecode mnemonics
    Anywho, the point is is solves some of the problems,
    without creating any new ones (unless you count the
    nanoseconds for a 5KB C prog to start as a
    problem...)...Again I didn't say that I wanted to do this. I argue against using any methods designed to protect code. But other people do. The slight hiding that this achieves might be what they want. Or not.

  • JAR to EXE or executable JAR conversion

    Greetings all
    I have a jar file placed in my java\bin folder. i want to make it into an executable .exe file. if not that i want to execute it without going on command line and writing
    java -jar MyJar.jar
    is there any solution?
    somebody told me to make a .BAT file and run it..i dont know anything about BAT files...is there any convertor that may convert my Jar into .EXE file keeping icons + images in my program intact?

    rabia409 wrote:
    Greetings all
    I have a jar file placed in my java\bin folder.Why? It should not be there?
    i want to make it into an executable .exe file.Please forget that for a moment and tell us what your goal is (instead of what you think the correct approach is).
    if not that i want to execute it without going on command line and writing
    java -jar MyJar.jarSo you want to double-click it and it should run?
    If your system is set up correctly and "java -jar MyJar.jar" works, then double-clicking it should start it was well.

  • Convert Jar to Exe

    Hi,
    I would like to convert my Java application to a single .exe file. I have read through many posts highlighting the advantages and disadvantages.
    The reason for this is that I would like to offer my application as a commercial software and clearly I do not wish to provide users with all classes and jars...in other words, how does one go about protecting the software against pirate use?
    what would be the best tool to create this 'real' .exe file that contains all it needs to run on any (windows) maching without the need of having a Java runtime installed?
    My idea is to first use some obfuscator and then convert the whole thing into an .exe.
    thanks

    I don't know... IBM doesn't seem to worry much about this, they sell me RAD and don't bother with any of that protection business. What bad thing could happen if somebody saw your code? Remember that people don't need to decompile your classes to pirate them, they can just make copies of the classes.

  • How do i convert .jar to .exe?

    how can i convert jar files into .exe ,is there any tool to make that if so plss let me know its urgent

    Mikado wrote:
    ..how do i convert my .jar file to .exe fileUse Java Web Start to launch the Jar file direct from the net. It provides a slick, easy and secure route to 'one click' installation. JWS also provides many other goodies, like cross-platform support, splash screens, auto-update, desktop integration and more..
    BTW - when asking a question, do not forget to add a question mark (?) at the end.

  • Javafx JAR to .exe(windows) or .app (MAC)

    hi,
    Anybody has any idea how can i import my javafx application to an installation file for MAC or Windows?
    For example, MAC has a jar bundler app which convert java jar to .app files for MAC.
    I tried with it, but it fails, i have no idea how to make it run javafx jar files.

    I've looked throughout the forum but I've only found
    how to call an executable from within the java code,
    but not convert it into an exe.
    And about googling it, I found few (maybe not using
    the correct keywords, any suggestion?), and they
    don't quite work well, so, just asking if any of you
    have had success with one and, what is the name of
    it.
    Thx.can't have looked very far, then. the definitive answer to this question has been posted several times, quite recently
    the real question, though, should be "do I want to bind my nice portable java code to a particular platform?"

  • Any free .jar to .exe converters / builders?

    I've found several installers online, but they are all ridiculously expensive for me (student wanting to share his open-source projects with the community). I've found the .jnlp files pretty nice-to-use, but I'd also like to deploy some applications with installers for Windows (Mac and Linux would be a plus, but is not necessary).
    Is there any FREE solution to my problem?

    Well they don't have to throw the advertisements into
    the actual exe. That's just retarded. Spam the
    website, spam the interface, don't spam the exe.Nobody's ever going to look at the interface or the website, and there is no better means to make you pay for the product, otherwise, your customers won't pay for yours.

  • Conversion of a .jar OR a .class file into a .exe  file

    Can anyone tell me as how to convert a .jar OR a .class file into a .exe file
    I need to know as soon as possible.

    Okay I will tell you the steps:
    Look in the top right hand corner of the page.
    There should be a box with a red title line. Inside the
    title should be the letters 'S E A R C and H'.
    In the white part of th box should be a smaller line, in which you can type.
    type in "conversion .jar .class .exe" or some similar string.
    Then click on the button next to the text box.
    Read the page of results you get.
    Click on the first link and read what is said on the connecting page.
    If that doesn't help, use your browser's back button and click on the next link, and repeat util your question is answered.

  • Getting exe path - JSmoothed my jar

    I created an application and I read the path of my jar code like this:
    Class cls =myClass.class;
            ProtectionDomain domain = cls.getProtectionDomain();
            CodeSource source = domain.getCodeSource();
            URL url = source.getLocation();
            String path=url.toString();
            path=path.substring(0,path.lastIndexOf('/'));Let�s suppose my app.jar is located in "C:/Program and Files/mySoftware/bb.jar"
    Then, my path returns "C:/Program and Files/mySoftware"
    Now I wrapped my jar into .exe file using Jsmooth(yes, I need to do that)
    When I run my .exe file it finds a different code location like this:
    "C:/Program and Files/tmp/images".
    Is there a different way of grabbing the exe path?
    Thx!!

    ThomYork wrote:
    Hi again DrLaszlo.
    I tried all the previous answers on the thread about the path.
    Now that I created a file .exe for my application, I could get its path using
    String tmp = System.getProperty("user.dir");
    Actually that's how you get the current working directory. Probably you set that to be the directory where the exe was located, but you can't rely on that in general.
    Since I was trying to load an image file I had the MalformedURLException when I created
    the url using the path.
    So, I verify if "tmp" starts with "file:\". If not, I add it and works fine.
    if(!tmp.startsWith("file:\\")){
         tmp="file:\\"+tmp;     
    You should use slashes in URLs, not backslashes.

  • JAR Files...great

    So...me and some friends wrote some personal financial software (pure java) and it is pretty much complete. With only one problem though. An execitable like file that can be clicked on and ran (yes, I know a JAR File) but we have 18 text files used as help files and a database (Access...java level 1 standard odbc jdbc bridge driver...I know not the best idea either) and we have to get those files to be read by any computer we install our program on. There in lies my question...
    I have not work with JAR files very much but do know that they can be a pain. Is it possible while using a jar to install those 18 help files and the database onto the user's computer. Know where they are and interact with them. Thank you for any help.

    didittoday wrote:
    maybe you got confused...I don't have any jar's I want to make a jar or an exe to run my application me and my friends wrote. I have 18 help text files and and Access database that I want to be able to interact with after we package everything togethermaybe you are the one that's confused
    you can zip or tar all your files and distribute them
    there is no need for a jar or exe
    the access database is another story
    if you need to install that then your client needs to install or you need an installer (MSI or whatever) program
    Edited by: wpafbuser1 on Feb 19, 2008 1:58 PM

  • Exe File

    I want to make a application in swing. How can i make a exe file for code written in java? Can anyone please explain it to me.
    Thank You
    Faiz Burney

    Is there any ID which compiles java code into exe. for
    exampled does jbuilder can compile java code into
    exe?
    ThanksOnly if you pay lots of money for the non-personal edition(s).
    Search the forums for the two keywords 'jar' and 'exe' and you'll find lots of results. I can't be bothered to summarise them, I see this question pop up at least once a day here.
    Unless you really want an exe file, use an executable jar. It's like a zip file but when double-clicked can run the enclosed java program. Only problem is that it requires the end user to have a JRE installed, and that it's the correct one. But as long as you specify the system requirements it shouldn't be a problem. To find out about this,search for 'executable jar' in the forums. There are also lots of posts for this topic.

  • Executable jar - question

    I build an executable jar or exe and I want to run this program on a system(win 2000), where there is no jdk installed. Is there any possibility to built my program in such way, so that this program would run on this system?

    Yes, try google to find the many many ways this can be done
    http://www.google.co.uk/search?q=executable+java

  • JBuilder 2005 .exe problem

    Good day...
    I wrote an application which requires jdk1.5(using JBuilder 2005)
    and was able to create the .jar and .exe of the same. The .jar is working fine but the .exe is not coz its still refering to jdk1.4. How do i make my .exe to point jdk1.5
    Pls help me in this regard....
    Thank in advance !

    Just don't make that .exe, it's entirely useless. You
    can double-click an executable JAR as well, plus, you
    can modify it. You can't unzip that .exe. Also, the
    .exe wrapper provided by JBuilder still won't run if
    there's no JRE installed, and it's of course not
    portable.
    There is absolutely no advantage I can see to having
    that .exe.Except that you get a friendlier name in the process view of task manager. (I haven't used JBuilders exe-builder. Does it also let you specify icon?)

  • Java Wizard and EXE

    1. How to make a java application installation wizard? After installation a link to run the program should come on to the start menu, as what happens when you install a common software in windows OS.
    2. is it good to make a jar an exe, will it give the exact same results as a jar does?

    Madushan wrote:
    ..2. is it good to make a jar an exe, No.
    ..will it give the exact same results as a jar does?No. A Jar will run on any OS with a compatible JRE. An EXE will only run on Windows. For installing a Jar on Mac and Unix/Linux*, I highly recommend Java Web Start (http://www.java.com/en/download/faq/java_webstart.xml).
    JWS can provide desktop integration via the JNLP (launch configuration) file. If the app. is sand-boxed, the user will be prompted to accept or reject the desktop integration. If the app requests (and the user grants) higher level permissions, the shortcuts are made automatically. Shortcuts can also be added programmatically using the IntegrationService (http://download.oracle.com/javase/6/docs/jre/api/javaws/jnlp/javax/jnlp/IntegrationService.html).
    More complex installations can be taken over using Java code (or native installers) invoked from an installer-desc for the application.
    Some other features of web start are auto-update, lazy downloads, splash screens..
    * Actually, I also recommend JWS for Windows installs. I just thought I'd give you it's features before coming to that. ;)

Maybe you are looking for