Making .exe's

hu,
can i compile java byte code to a .exe that i can run without having the java SDK on the computer where its run? if so, how? its gonna run on windows xp...
-thanks.

You should do a search before posting. This subject has been covered a million times�
http://onesearch.sun.com/search/onesearch/index.jsp?qt=creating+.exe&charset=UTF-8&rf=0&qp_name=null&subCat=siteforumid%3Ajava54&rt=1&site=dev&nh=10&cs=0&dftab=siteforumid%3Ajava54&chooseCat=javaall&col=developer-forums
You can create an .exe, but what you want to do is create a .jar file. Once you got it, you double click it and your application will launch (if you have Java Virtual machine installed).
Johnny

Similar Messages

  • Making .exe for a java file

    Hello all, i'm much interested in making
    a java file to be in .exe form without using any
    IDE's available for JAVA .
    Is it possible for us to make the .exe form of a
    java file to be executed in a machine
    which has only JRE AND JVM.

    Hi Jayandh,
    Please see these forum threads. It will give you some idea.
    http://forum.java.sun.com/thread.jsp?forum=17&thread=150203
    http://forum.java.sun.com/thread.jsp?forum=31&thread=149733
    I hope this will help you.
    Thanks
    Bakrudeen

  • .. Making Exe File of Forms 6i

    Hi..
    I have completed a project and now want to make exe file of the Forms..
    i do not exactly know how to do so..
    it is something like IF RUN 60 command..
    but i m not getting it right ..
    Kindly tell me how to do so..
    Will it be the exe we can insatall anywhere and access the database like we does in VB.. where we do not need to install VB at each machine to run the exe.. files..
    I m in the process of deploying the application now..
    Your support will count alot..
    Thanx alot ..
    Best Regards..

    There is no need to install the Oracle Forms runtime engine, neither your application files (Forms, Reports, etc.) on each client machine.
    You can install the Oracle Forms software on a share file server where each client access the Oracle Forms engine and your application files. In that setup, you still need to configure the client Oracle registry to tell it where to find the files. You would not do that kind of setup on a WAN or slow client connections because it will take ages for the Oracle forms files to download to the client machine.
    You can't create an exe with Oracle forms the same way you would in VB. Oracle Forms is a runtime engine and you need it to run your application.
    The command line for your application will look like:
    If installed on client machine:
    C:\Oracle\forms6i\BIN\ifrun60.EXE <name of your main application form>
    If installed on File server
    F:\Oracle\forms6i\BIN\ifrun60.EXE <name of your main application form>
    The deployment vehicule can be any of
    - You physically go to the workstation and do the installation
    - You provide a Web or server link (or through Microsoft SMS) where they can download and install the application files with instructions (this can be a batch file which will extract and copy all of the required files, Oracle Forms + Application files + update the registry). Don't forget that some Oracle files are installed within the Windows\system folder when you install Oracle Forms from the installation CD and are required to properly run any Oracle Forms application.
    Client-server deployment with Oracle Forms (or other client-server software) is not easy and that's where the Web or something such as Citrix becomes very handy.

  • Problem with making exe

    Hii there,
    I've developed an GUI application and trying to build .exe for that. I use JSmooth to do this, the .exe is being made... but when I double click on the .exe file, a DOS prompt is opened and remains halted, nothing is happend.
    could you else use JSmooth to make the same, and kindly solve my problem please....
    regards...
    Dev

    You could also try javAround. But I think it�s not exactly what you want. It requires that you bundle your JVM and start your executable .jar through your own JVM.
    I like it cause it does not embed your .jar in an exe file.
    http://sourceforge.net/projects/javaround

  • Making .exe in java

    Hai
    How to make .exe in java,i know it is not possible.
    but if you give the class along with the product then customer can decomile this class file can see the source.
    with this regard how java is sucure in product delevery
    pls suggest is there any other way other than giving the class files to customers
    my mail Id:[email protected]
    Yogisha

    hai webprowler!
    can u explain what u told,i tried by compiling
    like this
    javac -g:none a.java
    then also i can decompile ,i can see the methods ,
    pls help me .
    Yogisha

  • Making exe of application which work fine with Web start.

    Hello guys,
    i am working on on-line casino gaming.First thing i want to explain to you is about my current mechanism for downloading game.
    I have used JNLP and web start to download all necessary files at client side and it works fine..At every time it checks new jars are there or not...
    Now i want to make the exe of my java application which i can give to client on movable device like compact disk..so client can install the application from anywhere and play casino games..
    Now I want to know how to make on-line application as executable (exe) and every time it checks for updates which is supported right now by jnlp file..
    which thing i have to consider,which tool is easy to use,which mechanism can solve my query....
    please help me out...
    thank you in advance...

    Hi
    Chris RENAUD 768,
    First of all the PDF files should be set to be read by the application you developed by default.
    To set the default program:
    Control panel \Programs \Default Programs \Associate a file or protocol with a program
    In IE8 There used to be a key called HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}  which stored the File Types that could either
    Auto-Open or not. We can create a .bat file to automatically add a value here to achieve the goal.
    The code is as following:
    @ECHO OFF
    reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
    if "%ERRORLEVEL%" EQU "1" (
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}" /f /v "PDF.File" /t REG_NONE
    Note: Please Back up the registry before you modified the registry and delete the key  {0002DF01-0000-0000-C000-000000000046} if it has existed in the registry before you ran the .bat file.
    Best regards

  • Making ".exe"s on java

    how can i compile java code into Windows executable program (exe) so I do not to use SDK every time i run my program?

    Here's a good post about creating exe's, even if it was persian_dude who asked about it a week ago :P
    http://forum.java.sun.com/thread.jsp?forum=31&thread=256821

  • Making exe without installer

    I bought Application Builder and have LabView 8 Full Development System and am trying to make EXE's from my VI's.  My question is can I make an .exe that runs without Labview on a machine and without installing it into the registry?  Where I work I don't have Admin rights on the computers and want to build .exe's to run standalone.  I know that you can make .exe's that run with LabView on the machine and you can make an "installer," but that changes the registry and installs it into the Progam Files folder.  I just want a standalone .exe, is it possible with Labview 8? 

    smercurio_fc wrote:
    With any .exe you build with the Application Builder you need the run-time engine on the target machine, regardless of LabVIEW version.
    In addition, you need the right version of the runtime engine. (You can install as many versions of the runtime engine as you need)
    Actually, there were some workarounds in the past that allowed running a LabVIEW executable without installing the runtime engine. I am not sure if these things still work. See for example the following old post: http://forums.ni.com/ni/board/message?board.id=170&message.id=55834#M55834
    Message Edited by altenbach on 02-26-2007 02:13 PM
    LabVIEW Champion . Do more with less code and in less time .

  • Making exe file

    Dear sir/madam
    I have developed a project and it is working properly, if i give this project to customer then he will have to compile and run on DOS. what should i do that my costomer click on a file placed on desktop and it start working.So please tell me that how can we create an exe file of this project.

    Rajsarawat wrote:
    jdk1.4 is install in c:\ and my project named "myedit.txt".
    how can i make it so that it can be run on a sigle click. please send me procedure.My friend,
    - Create a normal text file on windows, right click "new text document".
    - inside the text file write java followed by the name of your main class file without the class extension at the end.
    e.g. java myedit (if myedit is the name of your main class)
    - save the text file
    - rename the the file to whatever you want with .bat as extension
    e.g. run.bat
    good luck

  • Making '.exe' file/application using JAVA

    Hi,
    Is it possible to make an application(an exe file) using just Java, just as we in VB.If yes can you please give some idea how can we do that.
    Thanks.....

    To make a java application run from a click on an icon
    you must create a Jar file as I've explained below:
    Create a separate folder and place all the source code programs needed to run the application in it. You just need the ones with the .class extension. You don't need the ones with the .java extension.
    Open up 'Notepad' and type in this line:
         Main-Class: your class that has the main method
    You don't need the .class extension.
    ex. If your main method is in a program called HelloWorld.class
    type in :
    Main-Class: HelloWorld
    Make sure you hit the RETURN key at the end of the line. I forgot to do that which is why I spent four hours trying to get this to work!
    Save this as: manifest.mf
    and put in the same folder as above. Make sure it doesn't save as manifest.mf.txt
         Open MS-DOS.
    CD change to the directory and folder you are in.
    Type this in exactly as I have written:
    jar cvfm0 myprogram.jar manifest.mf *.class
         This should put a Jar file in your folder. Just click on it and it should work.
    Make sure the program doesn't need to take input from a command line, like DOS.
    Otherwise it will do nothing. As long as your program creates a frame, window, button or something, it should work.
         To run the Jar file from DOS(for testing purposes) type:
    java -jar myprogram.jar
         If you get an error stating that it can't find the main method class(like mine did), right click on the 'myprogram.jar' file that was created,
    click on properties, then ZipMagic.
    Open the 'manifest.mf' file and make sure
    that 'Main-Class: yourprogramname' is in there.
         If you followed these directions you should be able to create an executable java file.
    Below I've explained what the commands to create the Jar file mean.     
    jar: means you are creating a java archive file which acts like a ZIP file
    c: means create a new jar file
    v: means verbose which tells DOS to show the action it is doing
    f: means that the files to choose are going to be typed in by a user(you at the Dos prompt)
    m: means to use the manifest file that you specify
    0: means that the file won't be compressed
    To make a JAR file you only need the cfm letters.

  • Making .exe from .class

    Hi,
    I have written a java application which makes use of many .class files. Now I want to club all the .class files into a single .exe files, so that when I double click the exe file, my application should run. I am using Windows with JVM installed. Can someone tell me how to do this? This is extremely urgent. Thanks a lot.

    package all your classes with package statement and store in a folder with the name of that package
    import those packaged files into your main program. ie..import Test.*;
    create your mf file
    Mainfest-Version: 1.0
    Main-Class: (your main file) make sure you hit enter after this staement or you will get errors. save it as .mf.
    @ prompt = jar cvfm yourprogram.jar Mainfest.mf yourclassname.class anypictures.whatever yourother classes/*.* yourOtherClasses/*.* and so on.
    to test the program java -jar yourprogram.jar
    did I leave anything out?

  • Making exe from classes

    hi,
    we developed application using swing package. we want to make exe for windows and linux also. how can we do that. if anybody suggest me that would be helpful for me. now we have jbuilder also with us. just now we got it. i don't know much about it. will it be useful to generate exe.
    thanks in advance
    sriram

    Use the Advanced Search located in the top right hand corner of this page. This question has been asked and answered numerous times.

  • Making exe of java file

    I have a java file that contains password to log to embaded system using secure copy. So i do not wann to show that password to any one.
    So can i make exe of it or any other way to hide the password.
    i do not want to use jar or war because it can be easily broken

    I have a java file that contains password to log to
    embaded system using secure copy. So i do not wann to
    show that password to any one.a native executable won't help that
    So can i make exe of it or any other way to hide the
    password.what makes you think an executable will do this?
    i do not want to use jar or war because it can be
    easily brokenjust as easily as an executable. and you can't choose between a jar and a war, you have to use whichever is appropriate for your deployment. if you are developing a web-app, how on earth is your container going to load a windows executable? and this isn't a JSP question, in any way shape or form

  • Problem in making exe file for java application

    helo,
    i tried to make an windows installer packge for my jar file using advance installer. There is one option for including JRE with this package. i included jre package also.otherwise ,the applicaiton will not work in client side,if java is not installed in his system.
    But the problem is after i make the setup including JRE ,the size of the file become 26mb. So,it took long time to download the application.
    What are the essential jav files we have to include while makes the setup for running the application.I included all the JRE folder itself.
    So the size become heavy. Anybody plz help me solve this
    regards
    jithesh

    Hello, I have the same problem, did you solved it?
    Thanks

  • Error in running exe

    Hi All
    I am getting some errors when trying to run a labview exe.
    I have to export the data into excel from labview.Withot making exe and running the vi it was working..But after making the exe i am getting error.
    I dont know whether its because of the way i build the exe(because in exporting to excel all i used was built in control for report generation).
    In the case of searching for the udl's name also i was facing the same problem.There is a vi that will find
    the current working directory and i have placed the udl inside the current working directory.Suppose my udl name is dat.udl.then a subvi will search for the dat.udl in the current path .the udl be in the path C:\Documents\dat.udl and i have created the exe say Data Entry.exe in tha path C:\Documents\Data Entry.exe
    Actually after making the exe i was getting an error related to the incorrect udl path,it was taking the udl path as C:\Documents\Data Entry.exe\dat.udl,Then i programmatically removed the string\Data Entry.exe from the current path so the vi will search for the udl in the correct path.(But i know that is not the correct way even i could solve that)
    These two related errors i was getting only after making exe and running the same.Otherwise it was working.
    Related to excel the error i was getting is...
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.
    NI-488:  Non-existent board.
    VI Path: C:\Documents\Data Entry.exe\Excel_Quit.vi
    Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared library.
    While making exe,
    I have created .lvproj in the path C:\Documents\
    Then in Application information i have set the target file name as Data Entry.exe and the destination directory as C:\Documents\
    In source file and destination i havent changed as it was in the correct path.
    In source file settings under the inclusion type ,start up vi was set as the vi's name(data entry.vi) and under dependencies,vi properties are set(centre,remove menu bar..)
    and Data Entry.exe was selected already from the combo (from the options Destination Directory,Support directory and Data Entry.exe.But the title for the option (Set Destination for all contained items) was disabled already.Is the way i build the exe is the reason for error?
    How do i rectify the error?
    Thanks....

    Hi user_1,
    it's the same question/reason as described here!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Deployment issue in Weblogic 9.2

    Hi, I get the below error while deploying my application in Weblogic 9.2.Guess, it has something to do with class path but am unable to fix it.Any help on this, would be great. Regards, Rahul ###<Oct 3, 2006 8:16:40 PM IST> <Error> <HTTP> <hpuxdhl> <

  • How can I import AVCHD files from my hard drive?

    - How can I work with .mts files from my Sony camera that I dragged from the camera to a folder on my computer. If I understand it well, if I import the files with a Log and Transfer, they will be converted to another format. - do they lose quality w

  • HT204053 how do i add a second ipod device to my account?

    how do i add a second ipod device (ipod touch 4th gen) to my account?

  • Creating a database objects for M by M by M relation.

    Please ignore the previous post, It was posted by mistake. Hi I want to persist the following relation in to the database. Student { studentId Name Team { teamId teamName Group { groupId groupName I want to put a student in to a group and a team. The

  • Default dashboard page for each user group

    How can I set for each user group (or for each user) which dashboard will be opened as the deefault after login? Can I also set the default page in that dashboard?