How can Java program convert to .exe file which can run on window system?

Hi,
I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.
I had downed EXE4J software to make the program to .exe. BUT the exe file can not be run on other PC with the error message that warning the PC have not set up JVE. IS it necessary to set up JVE?
OR give me your experience on how to do it?
Thanks!

>
I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.>If you only code for Windows, why not use dotNet or C# or whatever system MS is pushing at this instant?
If you wish to code for computers, Java is good, but it needs a JRE.
The easiest way to get a Java application up and running on a client PC is to launch it via. webstart, and to use deployJava.js to ensure the minimum Java is on the client PC, ready to use webstart.
Used this way, you link to a web page where the user clicks a link that downloads and installs the application (and adds extras like splash screens, desktop integration, registration of interest in file types, automatic update..).
As an aside. The best way to ensure answers is to indicate your interest in solutions, by adding a lot of Duke stars to a thread.

Similar Messages

  • Random exe-files won't run on windows. Driver related?

    Hope someone smarter than me can find an answer to this...
    I've tried running a bunch of games via bootcamp and random exe-files won't run. A couple of times the setup.exe wouldn't start and other times the installations go fine but the game itself refuses. I get a short flash of a dos prompter that disappears within the fraction of a second and then nothing happens at all.
    I get the same thing weather I run XP SP3 or Win 7 x86 and I've probably tried ten games all together.
    I'm thinking it must somehow be driver (or else way BootCamp) related since all games have been successfully run on native PCs.
    Any ideas?

    I get a short flash of a dos prompter that disappears within the fraction of a second and then nothing happens at all.
    That sounds almost like trouble with your Windows Installer.
    What versions of Windows installer are you running for each of your OSes?
    A quick way to check: bring up a Run line, type msiexec and hit the Enter key. The Windows Installer version should be at the top of the information screen that comes up.

  • How to make a java-program to a exe file runing on windows?

    i kown that there were many topics on this problem.
    i want to kown how many kinds method to do this i can use now!
    i met a java-program can run on windows,but i don't find ant *.class
    files and *.jar files.it's extended file type is ".ese".
    thanks very much

    There are commercial products that allow you to do this (e.g. InstallAnywhere from http://www.zerog.com).
    One issue is that you have to decide whether you want to bundle a JRE with your program or not. If you do (and you should, in these days of XP shipping without any VM of its own), your program will be a minimum of about 9MB + whatever you actually add as part of your program :-).
    In any case, this is not a trivial undertaking.

  • How to run a java program via a batch file,which is called from a webserver

    REM This batch file runs the Spider with the [-v] option.
    REM Lines 51 through 54 are simple DOS commands..they call the Spider
    REM The location of the Spider package is the important piece of information here...
    REM a batch file has access to the whole computer where the server resides.
    setlocal
    set JDK=C:\j2sdk1.4.1_01
    set PATH=%JDK%\bin;.;%PATH%
    CLASSPATH=%JDK%\jre\lib\*.jar;.;%JDK%\jre\lib\ext\*.jar;.;%CLASSPATH%
    java spiderpackage.EntryPoint -v
    endlocal
    I am trying to call this batch file from my web server but I am unable to capture the result.I tried to append the result to a file but It writes nothing to it.What should I do to proceed?

    I am not entirely sure if this is analogous, but I once wrote a PHP script uner Linux that invokes java and returning the output. I found that it was necessary to pipe the output of the Java program from stderr to stdout in order to properly receive it in PHP. The command would be as follows:
    java spiderpackage.EntryPoint -v 2>&1
    The pipe syntax (2>&1) should be exactly the same under MSDOS. So add that, and then continue as normal (appending it to a file or whatever else you want to do). Hope that helps

  • How can I script a Flash .exe file to always stay on top of all other windows?

    Hi All,
    I'm new to action script, and I just need this one script
    > How can I script a Flash .exe file to always stay on top of
    all other windows?
    Basically what i want to do is have a flash-created
    step-by-step instructional movie, but for the movie to remain on
    top of all windows so the instructee is able to follow the
    instructions on-screen...
    It would be preferable to not have to buy another product
    just to do this... as I said, this is the only scripting I need.
    Thanks in advance
    Cheers
    Rick

    if you create your exe with mProjector you can use one of its
    new AS
    commands to do this.
    setZOrder
    http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
    all APIS
    http://www.screentime.com/software/mprojector/docs/index.html
    Demo
    http://www.screentime.com/software/mprojector/demo.html
    mProjector installs new classes and help into Flash, to
    enable them you
    must build your app with mProjector (its input is your swf)
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • Where does this java program read a text file and how does it output the re

    someone sent this to me. its a generic translator where it reads a hashmap text file which has the replacement vocabulary etc... and then reads another text file that has what you want translated and then outputs translation. what i don't understand is where i need to plugin the name of the text files and what is the very first line of code?
    [code
    package forums;
    //references:
    //http://forums.techguy.org/development/570048-need-write-java-program-convert.html
    //http://www.wellho.net/resources/ex.php4?item=j714/Hmap.java
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class Translate {
    public static void main(String [] args) throws IOException {
    if (args.length != 2) {
    System.err.println("usage: Translate wordmapfile textfile");
    System.exit(1);
    try {
    HashMap words = ReadHashMapFromFile(args[0]);
    System.out.println(ProcessFile(words, args[1]));
    } catch (Exception e) {
    e.printStackTrace();
    // static helper methods
    * Reads a file into a HashMap. The file should contain lines of the format
    * "key\tvalue\n"
    * @returns a hashmap of the given file
    @SuppressWarnings("unchecked")
    private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException {
    BufferedReader in = null;
    HashMap map = null;
    try {
    in = new BufferedReader(new FileReader(filename));
    String line;
    map = new HashMap();
    while ((line = in.readLine()) != null) {
    String[] fields = line.split("\\t", 2);
    if (fields.length != 2) continue; //just ignore "invalid" lines
    map.put(fields[0], fields[1]);
    } finally {
    if(in!=null) in.close(); //may throw IOException
    return(map); //returning a reference to local variable is safe in java (unlike C/C++)
    * Process the given file
    * @returns String contains the whole file.
    private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException {
    BufferedReader in = null;
    StringBuffer out = null;
    try {
    in = new BufferedReader(new FileReader(filename));
    out = new StringBuffer();
    String line = null;
    while( (line=in.readLine()) != null ) {
    out.append(SearchAndReplaceWordsInText(words, line)+"\n");
    } finally {
    if(in!=null) in.close(); //may throw IOException
    return out.toString();
    * Replaces all occurrences in text of each key in words with it's value.
    * @returns String
    private static String SearchAndReplaceWordsInText(Map words, String text) {
    Iterator it = words.keySet().iterator();
    while( it.hasNext() ) {
    String key = (String)it.next();
    text = text.replaceAll("\\b"+key+"\\b", (String)words.get(key));
    return text;
    * @returns: s with the first letter capitalized
    String capitalize(String s)
    return s.substring(0,0).toUpperCase() + s.substring(1);
    }

    without what arguments?Without any arguments. If there are no arguments, there are no arguments of any kind. If you have a zoo with no animals in it, it's not meaningful to ask whether the animals which are not there are zebras or elephants.
    does it prompt me to give it a text file name?Apparently.
    when i run it this is all i get:
    usage: Translate wordmapfile textfile
    Press any key to continue...Right. And "wordmapfile" is almost certainly supposed to be a file that holds the word map, and "textfile" is almost certainly the file of text that it's going to translate.

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • Windows Vista home addition want let Icloud execute. I went into the DEP program but I can not find the Apple exe file to add as ok. What is the file name?

    Windows Vista home additon want let Iclud execute. I went into the DEP program but I can not find the Apple exe file to add as ok. What is the file name?

    Hey,
    if you know the name(s) of the root folder(s) you want to access (eg. by making a note on the Windows side) then you can make them appear by just doing Shift-Command-G in Finder ("Go to Folder…"), and entering the full path to the required folders.  You can then navigate all the contents as normal.
    HTH,
    S.

  • How can I use a setup.exe file on my mac

    I am attempting to download a demo software on my mac. It uses a setup.exe and I am unable to make it execute. I do have microsoft office on my mac.

    You need to be running Windows to use that software:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    1. Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    6. Last is Q.  Q is a freeware emulator that is compatible with Intel Macs.  It is much slower than the virtualization software, Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How do I batch convert separate avi files in Premiere Elements 11 to separate mp4 files

    How do I batch convert separate avi files to separate mp4 files

    For batch conversions, I use DigitalMedia Converter by Deskshare. My version is an older one (2.7), and there is a newer version, in two flavors, "regular" and "pro." I do not recall what limit on number of files is, but have had about 10 in the conversion queue. The newer version, and especially the Pro version, has probably expanded the number of files in the queue, but I could not quickly find what that max number is. While not opensource freeware, my copy was only about US$40. I was so impressed, that I bought two licenses - one for each of my editing computers. I have been meaning to upgrade to the new Pro version, but as old 2.7 works for what I need to do, just have not gotten around to it.
    Now, Premiere Pro can do batch conversions too, through the AME (Adobe Media Encoder), but that would be a much, much more expensive solution.
    I am certain that there are other conversion programs (some might also be free), that can do batch conversions, and with the H.264 CODEC for your MP4 output.
    One caveat: if your AVI files are SD (Standard Def), you will NOT be pleased if you convert to MP4 in HD (High Def), as there will be up-rezzing, and the results will not be pretty. If you need to up-rez to HD, when using SD material, you might want to look into something like Red Giant's Magic Bullet Instant HD. Many users have been impressed by its up-rezzing capabilities, though some have not.
    Also, I think that Corel's video editor has an up-rezzing capability, but have never used it, so cannot comment directly - might be great, or not so great.
    Good luck,
    Hunt

  • SD card folders converted to .exe files in Mac Pro but accessible in Windows

    Hi, To copy some photos, when I inserted my SD card in my Mac pro, the 3 folders in them were converted to .exe files. When I double clicked on one of these "folders", it opened as a text editor app. When I tried the same in windows, all folders and photos were accessible, ie 3 folders with all the photos inside them. When I tried using a different USB stick in the Mac, some folders were converted to .exe files, some were ok and all the files were accessible. This hasn't happened before, ie - I've always been able to access the folders in any USB / SD card in my Mac.
    Any suggestions on how can I access them in Mac? Thx!

    Hrmmm. Rats!
    I was hoping to have that PCI bridge an option. I'd found a digital music site that said the card worked, but then I couldn't find any clear replies to what systems took (a G5 or Mac Pro) the setup. Given my budget, well.. the cost of these things, I'm not budging until I know for sure. Also, I have an Audiophile2496 PCI card that I was hoping to use on that bridge as well. Bummer.
    That Ratoc unit is actually cheaper than the bridge and will surely be fine!
    (I had found a similar listed thing on the Vuescan site, but it was USB.. and more expensive)
    This is *much* better! Thanks.
    Deb.
    Message was edited by: Deborah Terreson  - Camino doesn't play well on this new layout..

  • Convert into .exe file

    Want to know whether JDeveloper 10.1.3 provided any tools to convert into .exe file? If yes, how? Thanks You.

    No it doesn't.
    Search google and you'll find this for example:
    http://www.excelsior-usa.com/articles/java-to-exe.html
    Note that JDeveloper does support the creation of Java Web Start packaging.

  • Through Java code I want to execute a exe file which is in aJar file

    I am having some classes and an exe file in a directory. I have made them in to a Jar file. In a class file which is in that jar file i want to execute a Exe file which is also resides in that jar file. Is it possible to exexute that EXE file?
    For Example....
    1. Im having a directory named CLIENT.
    2. In that directory I have 10 clss files and an EXE file.
    3. These class files and EXE files are ziped in to a Jar file.
    4. I have to give the Jar file to my client.
    5. He can put that Jar file where ever he installed my product may be C driver or D drive like that
    Now the problem is...
    I want to execute the Exe File from one of the class where both the exe file and class file resides in the Jar file
    This is my requirment
    Can anyone Help to me to solve this problem?
    Thanks in Advancd
    Ibram Shah.A.M
    ([email protected])

    The answer is to extract the EXE into a temp directory, execute it, and delete it when you're done. For example:
    //This is the path *inside* the JAR file!
    InputStream in = getClass().getResourceAsStream("/resources/myprog.exe");
    OutputStream out = new FileOutputStream("myprog.exe");
    File file = new File("myprog.exe");
    int data;
    while((data = in.read()) >= 0) out.write(data);
    in.close();
    out.close();
    //Execute the EXE here using java.lang.Runtime.exec()
    if(file.exists()) file.delete();
    ...

  • Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or InDesign or Muse or ???

  • How could a button open a EXE file in any position?

    How could a button open a EXE file in free position?
    I am very confused, I am searching the issue for two days, I just could use fscommand function open a EXE file in a fixed opsition, where must be in the same root with the .swf(change into .exe form at the same time). but how I open the target in a position where I want? Is that possible in Flash?
    help!, thanks a lot~

    well you can publish the the other FLA, which would give you
    an HTML file, upload that and the SWF then link to the SWFs' HTML
    page.

Maybe you are looking for

  • HT5552 How can I use an iTunes gift card to buy tv shows on my iPod touch?

    Or do I need to buy the tv shows on a computer, with an iTunes gift card? Is it possible to buy the shows on my iPod touch? Thank you.

  • Need help on: Automation of Daily Data Load

    Hi all, We need to start our Daily Data load from DAC by Manually. So right now my client has asked us to do Automation of Daily Data Load. Starting the Daily Data Load Manually(DAC) Process: First we have to check whether the ASCP Plans updated or n

  • Power Consumption for iMac 20" INTEL DUO CORE

    I need to know which is the power consumption for the 20" 2.16 GHz INTEL CORE DUO. I want to buy a UPS for this machine and I could not figure out in any place within the manual where to get that information. It is something that have to be very easy

  • Can I use thunderbolt Ethernet and VGA?

    Is it possible to simultaneously connect a thunderbort ethernet and VGA adapter?  I'm fairly certain there is no hub available for Thunderbolt, but I'm not sure if there is perhaps an Ethernet or VGA dongle with a second port on it to daisy chain. I

  • Changes in G.L

    Hi, Requester has changed something in FS00 for Accounts xxxxx now  how to find out what changes he has done? I will assign points it is very very urgent Thanks Pola