Making an executable file

Does anyone knows how can i create an executable file using java?
i want to do an application that anyone who has windows can do double click in a file made with java and my application begins,
thank you!

.jar ara java executables but you can not double
click them to initialize them, you need to go to a
console a put: java name.jarDepends on how it your host platform is set up, on most windows, Linux & MacOS X computers with the JRE installed, JARs are double clickable.
but what i need is a EXE file: name.exe and when you
double click the application beginsYou can use webstart (does not create an exe, but does create an double clickable icon), or shell scripts, or you can just search the forum, it has been answered so many times before. It is asked more than once a day!

Similar Messages

  • Error in making RT executable file

    Dear Sir,
    I had build a project in Labview 2011 version and now I have upgraded to labview 2013 version. I want to make an executable file and deploy onto RT Target but when I start building the exe file following message appears
    Detail Disable dialog.vi and Not found dialog .vi does not support the current target.
    Error 1003 occured at AB_Get_detailed_brokenVI_Message.vi and AB_Targetfile.lvclasspen_top_level_vis.vi
    Please suggest me some solution as soon as possible.

    Did you understand Gerd's reply?  RT (Real-Time) targets run a special "Real-Time" Operating System, specifically not Windows, and do not support the usual user interaction via the Front Panel.  You may have run across the term "Head-less System", which means a system, running a program, but without user interaction.
    When you build an application for Windows, you end up with an "executable" having the extension ".exe".  This is designed to be started by selecting the application and getting it to run, for example, by double-clicking it (the "default" action).  In contrast, building a stand-alone executable for an RT system gives you a file with the extension ".rtexe" -- such a file (to the best of my knowledge) can only be executed by being "marked" on the Target as the "Start-up application".  The idea is when you turn your Real-Time Target on, it automatically loads the (single) Executable that you built, and starts running it "head-lessly".
    Hope that clarifies things.
    BS

  • [b]Simple Deploy problem- making an Executable JAR File ...PLEASE HELP [/b]

    Hi all,
    I Trying to deploy a simple J2SE app by making an Executable JAR File, however I don'r understand how to add a valid value to the Main Class field.
    I followed the following description within Jdev, after creating a Deployment Profile:
    Deploying an Executable JAR File
    You can make your simple archive or J2EE Client Module into an executable JAR file that you can launch with the java command.
    To deploy an executable JAR file:
    1) Select and right-click the simple archive or client icon in the Navigator to display the context menu.
    2) Choose Properties.
    3) Click JAR Options in the tree.
    4) Select Include Manifest File (META-INF/MANIFEST.MF).
    5) In the Main Class field, enter the fully qualified name of the application class that is to be invoked.
    7) Click OK.
    8) Launch the executable JAR file from the command line:
    java -jar myapp.jar
    where myapp represents your JAR file name.
    Like I said it's in 5) I'm doing something worng
    My deploy-file (PlotPrint.deploy) looks the following:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <client-deployment xmlns="http://xmlns.oracle.com/jdeveloper/903/deploy/j2ee-client-jar" nselem="client-deployment" class="oracle.jdeveloper.deploy.jar.ClientProfile">
    <archiveOptions>
    <additionalManifests/>
    <compressed>false</compressed>
    <hasManifest>true</hasManifest>
    <mainClass>PlotPrintClient</mainClass>
    </archiveOptions>
    <archiveTargetPlatform/>
    <cdaSettings>
    <additionalArchives/>
    <afterFilters/>
    <beforeFilters/>
    <duringFilters/>
    <selectedArchives>
    <archives>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdbc/lib/classes12.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdbc/lib/nls_charset12.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jdev/lib/jdev-rt.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/soap/lib/soap.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlparserv2.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jlib/javax-ssl-1_2.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/jlib/jssl-1_2.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/activation.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/mail.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/j2ee/home/lib/http_client.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/webservices/lib/wsdl.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlparserv2.jar!/"/>
    <Item protocol="jar" path="file:/C:/Oracle9i_Jdev/jdevbin/lib/xmlcomp.jar!/"/>
    </archives>
    <selectionMode>0</selectionMode>
    </selectedArchives>
    </cdaSettings>
    <defaultConnection class="java.lang.String"/>
    <deployClientMaxHeapSize/>
    <earURL path="deploy/PlotPrint.ear"/>
    <enterpriseAppName/>
    <jarURL path="deploy/PlotPrint.jar"/>
    <profileDeps/>
    <properties/>
    <selectedProjectFiles>
    <autoInclude>true</autoInclude>
    <deploySourceAs>0</deploySourceAs>
    <files class="[Ljava.net.URL;"/>
    <selectionFilters/>
    </selectedProjectFiles>
    </client-deployment>
    I using Oracle9i Jdev, but have also tried it un the new Jdev 10g version, but the same problem everytime:
    Error message: Could not find the main class: program will exit.
    Please help I really need this to work
    Message was edited by:
    MHCI
    Message was edited by:
    MHCI

    Yes that was the problem so I have changed the element mainClass to
    <mainClass>xxPlotPrint.MHCI.PlotPrintClient</mainClass>
    But now another probem has occured, since I get the following error when run the jar-file (When I run the app from within Jdev there are no warnings or errors).
    ----Batch-file-----
    @echo off
    java -jar PlotPrint.jar
    echo Test Plot and Print Batch-file!
    pause
    ---- out to cmd ----
    Exception in thread "Thread-0" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
    at xxPlotPrint.MHCI.NNE35_worker.run(NNE35_worker.java:42)
    at java.lang.Thread.run(Unknown Source)
    Exception in thread "Thread-2" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
    at xxPlotPrint.MHCI.OCEJobDB_worker.run(OCEJobDB_worker.java:41)
    at java.lang.Thread.run(Unknown Source)
    Exception in thread "Thread-1" java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl
    at xxPlotPrint.MHCI.NNE27_worker.run(NNE27_worker.java:42)
    at java.lang.Thread.run(Unknown Source)
    It's the same problem in all three exceptions (the exactly the same code), however I was a bit to quick this is the line (the line before I process the xml doc :-)
    import org.w3c.dom.Element;
    responseData = new Vector();
    responseData = test_NNE35_SOAP.getXSDdoc();
    Element elements = ( (org.w3c.dom.Element)responseData.elementAt(0) ); (line 42)
    Please help I don't understad why I receive this exception, since I included the xmlparserv2.jar file, and don't even have a workaround :-(

  • URGENT ! Making EXEcutable file in Forms 4.5/5/6 ???

    Dear Experts
    I am using Forms 4.5 & Reports 2.5 for Oracle 7.3.2 database.
    Can I make EXEcutable file to run the application directly ?
    If it is not possible in this version, Is it possible in Forms ver 5 ? ver 6 ?
    If so, what is the procedure / menu sequence.
    Richard
    null

    Simply no way.
    You have the forms runtime that you use to launch your .fmx.
    So, you will have a batch file that launches your form using the forms runtime.
    It may be something like:
    D:\ORANT\BIN\F50RUN32.EXE g:\centrala\tlogin_noi_cen USERID=login/login@apollo usesdi=yes
    This works for Forms 5.0 and the given form & database include some trick for logging on a "system user" without revealing the Oracle username & password that actually owns the object schema needed for the application. It may well be without logging on to a database, the user having to log on through the default forms logon screen, or you may design a logon screen of your own.
    RTM on your forms runtime command for more details, and check the logon & logout built-ins.
    If you must have applications in straight .exe files, give up using Forms and use some other tools (Delphi, C++Builder, VB, MSVC++, but not some Java development environment, that doesn't produce .exe either).
    Regards,
    BD

  • Making EXEcutable file in Forms 4.5 / 5 /6

    Dear Experts
    I am using Forms 4.5 & Reports 2.5 for Oracle 7.3.2 database.
    Can I make EXEcutable file to run the application directly ?
    If it is not possible in this version, Is it possible in Forms ver 5 ? ver 6 ?
    If so, what is the procedure / menu sequence.
    Richard
    null

    Simply no way.
    You have the forms runtime that you use to launch your .fmx.
    So, you will have a batch file that launches your form using the forms runtime.
    It may be something like:
    D:\ORANT\BIN\F50RUN32.EXE g:\centrala\tlogin_noi_cen USERID=login/login@apollo usesdi=yes
    This works for Forms 5.0 and the given form & database include some trick for logging on a "system user" without revealing the Oracle username & password that actually owns the object schema needed for the application. It may well be without logging on to a database, the user having to log on through the default forms logon screen, or you may design a logon screen of your own.
    RTM on your forms runtime command for more details, and check the logon & logout built-ins.
    If you must have applications in straight .exe files, give up using Forms and use some other tools (Delphi, C++Builder, VB, MSVC++, but not some Java development environment, that doesn't produce .exe either).
    Regards,
    BD

  • Making executable files from vis

    Hi,
    I am trying to make an executable file from vis. I have four subvis inside a main vi. Four booleans opens up my each individual subvis. Now when I make an executable,its works withoiut an error. Now when I run the program, my main vi opens up with four boolean. Now two of the boolean works perfect but the other two gives the window error. Can someone help me in this regard. I dont see why the two booleans would give me error. What could be the possible cause?
    Thanks
    SAL

    Have you installed the patches for LabVIEW 6.0? The latest patch is LabVIEW 6.0.2 and is available free for download from here. You should definitely have the latested patch installed.
    Also, can you check your Application Builder settings to make sure that the front panels for your 2 subVIs that cause the crash aren't being removed? LabVIEW 6.0 would sometimes mistakenly remove the panel, which would of course cause the crash if you tried to call the subVI and view its front panel. Also, VIs that Property Nodes or Invoke Nodes shouldn't have their front panels removed, since these rely on front panel data.
    You can check these settings from the VI Settings tab of the Application Builder as seen below:
    To modify these settings, click the Edit Build Settings button to see the following dialog:
     Message Edited by Jarrod S. on 03-22-2006 02:37 PM
    Jarrod S.
    National Instruments
    Attachments:
    RemovePanelSettings.JPG ‏52 KB
    ChangeRemovePanelSettings.JPG ‏53 KB

  • Old Photos - Unix Executable File

    Trying to help a friend - he has a bunch of photos on his Mac that are six years old. He can't open them. He sent me one - it shows up as a "Unix Executable File" (whatever that is?). The read/write accesses are OK. File is about the right size (350K). iPhoto 6 won't open them. Is there a way to open/convert these files?
    Thanks, Nick

    Nick:
    Do the files have the jpg extension on them? If they do, select one and type Command-I. In the Info pane there's an Open with menu. In that menu select Preview as the default application to open it with. Then click on the Apply to all button. See if that won't get them to respond as they should.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • Can't save terminal executable files?

    i haven't done this for a while but in 10.4 i remember being able to save a double clickable terminal command that could be execute from the desktop or wherever
    how do you save terminal executable files

    Use TextEdit, select plain text and save wherever you want. You can rename the file afterwards to the suffix or your needs (like .command). Then making it executable is due, so my first post applies from here on.
    Björn

  • Problems creating a jar executable file...

    Hi there, I am new to these forums, my name is Jay.
    I am trying to create an executable .jar file for my program I created in JBuilder 2005, with java files and several other files as well. I am having MAJOR problems with either the main class not being found or failing to load Main-Class manifest attribute.
    I tried to make a .txt with two lines, including the first with the MAIN-CLASS: className and stuff and a second line blank, and use the cmf command line to run it and include it in there. I ran it and created it no problem, but then I try to run it, and I get the error of the main class not being found and I have specified the correct directory and class name.
    Then I try to make my own manifest file with the correct directory and class name by making a txt file into an .mf file and when I try the cf command line this time, it gives me the error of failing to load Main-Class manifest attribute.
    I have even followed the tutorials on the Sun developer website including Manifest making and stuff and everything.
    I have worked on this program (java) for months and I am now STUCK. If someone could maybe give me some assistance or suggestions as to what my problem might be, I would greatly appreciate it so much. Or if you want, you can e-mail me, @ [email protected] with suggestions. Thank you all very much.
    I have a folder in a directory. It's called SuperPassword, which is the folder where my project files and EVERYTHING is. my .class files are in the classes/superpassword subdirectory of the folder SuperPassword, my java files are in the src/superpassword subdirectory and my manifest file and txt files are in the SuperPassword main directory. Maybe that could give you guys a bit of a hint as to what I am dealing with, I want to explain it as clearly as possible.
    Jay

    I have a folder in a directory. It's called
    SuperPassword, which is the folder where my project
    files and EVERYTHING is. my .class files are in the
    classes/superpassword subdirectory of the folder
    SuperPassword, my java files are in the
    src/superpassword subdirectory and my manifest file
    and txt files are in the SuperPassword main
    directory. Maybe that could give you guys a bit of a
    hint as to what I am dealing with, I want to explain
    it as clearly as possible.
    JaySo I guess you have a directory path SuperPassword\classes\superpassword and the .class files are inside. Are the classes in a superpassword package? If they are, then the Main-Class must be something like "superpassword.MainClass" and when you jar the .class files you need to make sure they are in a superpassword directory inside the jar - like "jar cmf thejar.jar themanifest.txt superpassword\*.class"
    You can check the directory structure by displaying the contents of the jar using "jar tf thejar.jar"
    Also, remember that java is case sensitive.

  • Before installation of "flasplayer 13x32" recieved Security message re" it being an executable file that may contain viruses and codes that can corrupt my computer".

    Downloaded "flashplayer 13x32". A security message appeared from Microsoft "This is an executable file and may contain viruses or codes that will harm your computer". Question: If its corrupted, why did Adobe Website download it.??

    "This is an executable file and may contain viruses or codes that will harm your computer".
    The keyword is "MAY"...
    NOWHERE in that does it say "This is a virus."
    What you're seeing is a standard Windows warning about ANY executable file you can download.
    Adobe isn't, and never has been, in the business of making malware. That said, there are literally millions of fake downloads of things like Reader, Shockwave and Flash Player.
    Bottom line: If you don't trust the download... DON'T USE the download.
    There are two sources to trust for Adobe freeware:
    For Flash Player - Adobe Flash Player Distribution | Adobe
    For Reader - Adobe - Adobe Reader Distribution
    You can bookmark those links and use them ANY time you get an update notification, to know you're getting the download directly from the source.

  • Text Message: Unable to execute file for security ...

    Whenever I'm viewing a text message, when I try to open up the "Options" menu, I see the above message, "Text Message: Unable to execute file for security reasons". This doesn't seem to impact the functionality of the menu at all, everything seems to work.
    Anyone ever come across this before?
    I've updated the phone (Nokia E66) to the latest software, and I've only got one application installed other than the default base install (Google calendar sync utility), removing that doesn't change the problem.
    Thanks in advance!

    I get the same error after SW update to latest version when I try to run some apps 

  • My excel report is not working in executable file ,however,it works well in vi

    Hi all ,
         Could any one please help me in getting the reason behind the executable file not working for excel report generation,however I can get the same function without any problem in main vi.
    I am attaching my code and executable file also ,please have a look into it and let me know where I am wrong.
    Thanks & Regards !
    sarita
    Message Edited by MindPower on 10-24-2007 01:40 AM
    Message Edited by MindPower on 10-24-2007 01:43 AM
    Attachments:
    test datalog.vi ‏264 KB
    test datalog-NEW.zip ‏1020 KB

    I can't open the vi in the moment. But by your description I think that I know the solution.
    When you build the executable you've to add dinammically the vi's from report generator that aren't in your main vi hierarchy. So, you've to open the vi's and find those that are open trough "open vi reference" and add them dinamicaly.
    And don't know if these tips are enough.
    From NI Zvezdana S.
    "When you use the Report Generation Toolkit to build a stand-alone application with the Application Builder, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs. These two VIs contain subVIs that are called dynamically by the high-level Report Generation VIs. I believe that if you grab these VIs from the (desired office version part of the) installation CD instead of from the development machine, then everything should work. "
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Unix Executable files - need help to open

    Hi folks, sorry i have been looking through previous discussions re these type of files but its all well and truley above me.  I have been given a video file and when copied to 'finder' it showed it was a unix executable file and it opened Terminal, again made no sense to me.  I was informed to download MPEG Streamclip with no luck and the jargon I have read is goobledegook to me, sorry.  Can anyone help pls in simple terms???? 

    One thing you could try is to drop one of the files on to the vlc video player.  If the file is truely a video file then odds are vlc will figure that out and be able to play it.  It also has a menu to tell you info about the file so you could figure out what kind of file it actually is.
    In the case of windows .wmv files you should add Flip4Mac.  That would allow you to play those with QuickTime.
    Similarly add Perian to add more power to QuickTime so that it too could possibly handle those files like vlc.

  • How to convert the javasource file(*.class) to execute file(*.exe)?

    How to convert the javasource file(*.class) to execute file(*.exe)?
    thank you!

    Although i have seen a few programs (that are platform specific) that will embed a small jvm into an exe with your class file, it is generally excepted that you cannot create an executable file using java. The JAR executable file is probably the closest your going to get
    Pete

  • My MacBook Pro (Mountain Lion) seems to be making copies of files in my download folder.  Why is this happening and how do I stop it?

    My MacBookPro with Mountain Lion seems to be making copies of files in my download folder.  Why is this happening and how do I stop it?

    This issue has nothing to do with Time Machine or local snaphsots. No built-in feature of OS X does what you describe.
    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' 
    Copy (command-C) the selected text to the Clipboard. Then click anywhere in the Terminal window and paste (command-V). Post the lines of output (if any) that appear below what you just entered. You can do that by copy-and-paste as well. Omit the final line ending in “$”. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' 
    This time, you'll be prompted for your login password, which you do have to type. It won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

Maybe you are looking for

  • Anyone else having mic problems after 5.1?

    I updated to ios 5.1 and now Siri and the voice memo can't hear me unless I hold the phone to my mouth literally shout into the mic.  Anyone else have the same problem?  I think it's just the iOS update.

  • Exporting e-mail addresses as text file

    Hi, I've done a forum search, found lots of posts but none 'solved'. I want to export all the e-mail addresses from Address Book as a simple .txt file

  • Email from IPhoto 9.4 to Outlook  2011 V 14.2.4 [Mountain Lion]

    On Mountain Lion [10.8.2], this do not work ... Outlook client is correctly select in the preferences When i want to send a picture, Outlook opens but no window opens with the new message with the picture ... Any idea ?

  • Podcast producer ethernet address

    Hi there trying to get podcast producer to work, it runs jobs in xgrid until about 90% then fails when it is trying to post to blogg i noticed that the mac address in my workgroup manager is giving the the WAN port address and not the LAN address i w

  • Default Auto Connect

    I have a Actiontec modem and have changed my Advanced Security Settings to WPA-2 Personal and setup a network security key.   I shutdown my PC in the evening and then log back in the next evening but my network does not ask for the security key it au