How can I make exe file in java?
86290
Use on of the following.\n1. Symantec Java Cafe\n2. Microsoft J++\n3. Microsoft J#
793351
if you have lost your source files, then they are gone forever. a decompiler will NOT reproduce the source files from an .EXE. the most you will get is the assembly language representation of the code, which is pretty much useless unless its a small .EXE and you know assembly very well.
421569
Its very simple. \n\nRight My computer on the desktop -> Properties.\n\nClick the ADVANCED tab.\n\nAt the bottom of the window select ENVIRONMENT VARIABLES.\n\nNow a new window will open. You will get the box as \n\n " User Variables for....."\n\nin that press NEW.\n\nA new small box will open ,in that\n\n  Variable Name  = Path\n  \n  Variable Value = c:&#92;Yahoo Answers&#92;*\n\n In the variable path right down the path leading to the bin folder in the main Java folder.\n\nexample c: &#92; programfiles &#92; jdk &#92; bin ( This is an example you figure out on your system).\n\nThats it .\n\nThen whenever you type javac in CMD it will work.\n\n---------------------\n\n\nThe 2nd method is whenever you open CMD\n\n\nSet Path = c: &#92; programfiles &#92; jdk&#92;bin\n\nYou can even make this line as a batch file.\n\nI would recommend Method 1 as its a permanent method.\n\nThats it.
248729
uses ShellApi;\n...\nShellExecute(Handle, 'open', 'c:&#92;Windows&#92;notepad.exe', nil, nil, SW_SHOWNORMAL) ;
306815
download (JRE)java run time enviorment form java.com \nor sun.com  it should fix it
413343
You may use the function : \n1) system() \n2) spawnl() or it varients\n3) execl() or its varients \n\nfor the path argument simply pass the path of the .exe file that you with to run in double quotes and use double backslash instead of the single backslash. \n\nBefore you run the program, \nyou have to make sure that the path variable has been set to the directory where your progam resides. \n\nwrite a while loop with an switch-case and escape condition. Within each case call the appropriate program (run the .exe file) using spawnl or execl. These functions run the programs as child processes. But remember, if you do not set the path variable, nothing will work properly.  Good luck!
303749
you cant. however you can convert them to .jar files that you can run by double clicking if you have Java runtimes installed on your computer\n\nheres how:\nhttp://java.sun.com/docs/books/tutorial/deployment/jar/\n\nor here:\nhttp://java.ittoolbox.com/documents/tutorials/jar-tutorial-628
628672
i dont think you can...........you want it on the video?\n\ner on the exe?\nif on the exe create the exe with winrar..put in all credits and stuff and will show it as it unpacks
813258
If you are using Windows XP you will not find an autoexec.bat file.\n\nHowever, the autoexec.bat file can be found in your C drive.  The way to edit it, is to select it with your mouse, and then right click on the file.  This should open up a menu that say 'Open', etc.  You will need to find the entry that says 'Edit' and select this.\n\nThe file should open up in notepad, and you can add the needed lines into this file.  Then save it and you should be ok.\n\n[Update]\nIf you were unsure of the lines to place in the autoexec.bat file, the line is\nPATH C:&#92;WINDOWS;C:&#92;WINDOWS&#92;COMMAND;"C:&#92;PROGRAM FILES&#92;JAVA&#92;JDK1.5.0_<version>&#92;BIN" \n\nYou can find the line at this web page\nhttp://java.sun.com/j2se/1.5.0/install-windows.html
47733
Exe file is an executable file ehich can be executed on Microsoft OS.\n\nJar is very simmilar to Zip files.\n\nThe word Jar itself represent a container. Jar file is container of Java Class files. It has not only java class files but also other resources related to the project. Jar file can be executed only if Java is available with you.
397653
Compiling a VB project to an .exe file destroys any link to the original source.  It might be theoretically possible to dis-assemble the exe, but the original source is gone.
498345
Go to http://java.sun.com\nJAVA Developer's Source
474548
All you should need to do is enter the full path to the exe just like you would do if you wanted to execute the program from the command line.\n\nc:&#92;yourFolder&#92;yourFile.exe
621268
The first answer is correct, you don't need to install a full version of windows to use an exe file. There are emulators out there for that purpose.
107183
I think this is best answered by an example (I don't know how to keep formatting in Yahoo! Answers, so the formatting of the code is lost)\n\nfile TestFile.java\n===================\n\nimport java.io.*;\n\npublic class TestFile {\n\n   public static void main(String[] args) {\n      String inFilename = args[0];\n      String outFilename = args[1];\n      try {\n         BufferedReader in = \n            new BufferedReader(new FileReader(inFilename));\n         FileWriter out = new FileWriter(outFilename);\n         \n         String line = in.readLine();\n         while(line != null) {\n            out.write(line + "&#92;n");\n            line = in.readLine();\n         }\n         \n         out.close();\n         in.close();\n      } \n      catch(IOException ioe) {\n         ioe.printStackTrace();\n      }\n   }\n}\n\nThis simply takes two String arguments.  The first is used as a source file, the second is used as a destination file.  Everthing in the source file is copied into the destination file.  Anything that existed in the destination file is overwritten.\n\nThe Buffered reader makes it really easy to read from text files.  As you can see opening a file is as easy as creating a new instance of a FileReader or FileWriter.  Take a look at the Javadocs for these classes for more information.\n\nSince Java is a cross-platform language, you should add extra code for handling a file regardless of the operating system, but this should get you started.
920170
Ok, I'll answer this once and not anymore, first off all I highly recommend you don't ask that question on thee boards.\n\nModify the exe or generate a key.
15588
This may sound like a foolish question, but: are you sure you're entering a program executable file?  Just be sure you're using the right filename.\n\nAlso, depending on the program, you may need to type the entire file path to it.