Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 18 of 18

Thread: exe files

  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question exe files

    What is the purpose of .exe files?Is this possible to create .exe files in java?Please explain.


  2. #2
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: exe files

    .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
    Last edited by chronoz13; August 24th, 2009 at 01:02 AM.

  3. #3
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: exe files

    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

  4. #4
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: exe files

    I have list of folders.Can i store it in a jar file?If it is,how?

  5. #5
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: exe files

    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)

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: exe 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?

  7. #7
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: exe files

    Yes.

    // Json

  8. #8
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: exe files

    How?Please guide me.

  9. #9
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: exe files

    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.
    Last edited by helloworld922; August 25th, 2009 at 09:32 AM.

  10. #10
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: exe files

    Is there any procedure is available to write commands in .exe files?

  11. #11
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: exe files

    Download a C/C++ compiler.

    // Json

  12. #12
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: exe files

    Why we need c/c++ compiler???

  13. #13
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: exe files

    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

  14. #14
    Member
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Re: exe files

    Thanks Chris.Thank u for your guidance.I am going to start learning c programming.

  15. #15
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: exe files

    Good luck with that, I can still help with C programming if you ever need it. But don't forget about Java

    Regards,
    Chris

  16. #16
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: exe files

    oh my.... tyring to learn how to make an. exe file means that you have to learn C language and all its descendant languages....



    well its good that java has .jar files.......

  17. #17
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: exe files

    No you can learn C or C++ they are different languages, you don't need to know them all. Just one!

    Chris

  18. #18
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: exe files

    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.

Similar Threads

  1. Java program which can list all files in a given directory
    By JavaPF in forum Java Programming Tutorials
    Replies: 8
    Last Post: July 9th, 2013, 03:38 AM
  2. Reading IEEE float values from files.
    By username9000 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: June 30th, 2009, 12:56 PM
  3. getting files in the linux server
    By Truffy in forum Java Networking
    Replies: 36
    Last Post: June 22nd, 2009, 06:32 PM
  4. [SOLVED] Using 3rd Party JAR Files
    By oss_2008 in forum Java Theory & Questions
    Replies: 12
    Last Post: June 12th, 2009, 10:27 AM
  5. FileNotFound error while working with XML files in windows
    By ochieng in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 14th, 2008, 07:56 AM