What is the purpose of .exe files?Is this possible to create .exe files in java?Please explain.
Printable View
What is the purpose of .exe files?Is this possible to create .exe files in java?Please explain.
.jar files are somewhat kind of executable files in java
this url might help u a little bit>>
Convert Java to EXE - Why, When, When Not and How --url
Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment) --url
Exe files are executables recognised by Microsoft windows OS' They ae desgined as stand alone programs that do not require compilers or interpreturs to run.
Compiling Java into Exe's can be done, but it is not reccomened. Java is designed as a Cross-platform programming language. By compiling into an exe you have limited to windows...big mistake, also exe cannot be used on websites :) in the way java can.
Chris
I have list of folders.Can i store it in a jar file?If it is,how?
if you are using netbeans it will provide you some brief step-by-step information on how to execute
some java desktop applications ,(i.e .jar files)
Is it possible to write automatic executable programs in java?For example,if i didn't make any changes to the folders from list of folders for particular period of time, it have to ask some messages like,want to delete or something?It have to ask immediately after login to the system.Is it possible in java?
Yes.
// Json
How?Please guide me.
In Eclipse, I know there is this function that lets you export executable Jar files. These work basically like .exe files except they're cross-platform, and i think they're accessible to web-apps, too.
You click menu -> export, then choose Java -> Runnable JAR file
To get a file/folder's date, use lastModified. You can get a list of sub files/folders from list.
Is there any procedure is available to write commands in .exe files?
Download a C/C++ compiler.
// Json
Why we need c/c++ compiler???
C and C++ is a language that is compiled down into machine code, which in the case of windows is an EXE file. So if you wish to write EXE file directly you will need to learn C or C++ or some other variant like C# i guess but that relies on the .NET framework, and so is not as standalone, although it is not standard for Windows box's to run the .NET framework.
If you wish to get started with C or C++ then I can guide you, firstly get yourself to google and download CodeBlocks, this is your IDE with compiler. Then, go to C programming.com - Your Resource for C and C++ Programming & cplusplus.com - The C++ Resources Network these both have alot of material avaliable to you. Pointers are a difficult concept within C and C++ this page Contributor's Corner was written by a very good and experienced programmer. That site I value highly, the material on it is excellent! You should follow its advise as much as you can.
Anything else you need let me know.
And best of luck, they are not easy languages! And choose either C or C++ before you begin, don't get tricked into thinking they are the same thing.
Alternatively, learn Assembly ;)
Chris
Thanks Chris.Thank u for your guidance.I am going to start learning c programming.
Good luck with that, I can still help with C programming if you ever need it. But don't forget about Java :D
Regards,
Chris
oh my.... tyring to learn how to make an. exe file means that you have to learn C language and all its descendant languages....
:eek:
well its good that java has .jar files....... \m/
No you can learn C or C++ they are different languages, you don't need to know them all. Just one!
Chris
Lol, learn assembly...
C and C++ might be two completely different languages, but their syntax's and structures are very similar. The key difference (at least several years back) was that C was more procedural based and C++ was more object-oriented, but you could still code in both styles with either language.