Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2008
    Posts
    7
    Rep Power
    0

    Default [SOLVED] Java compiling concepts

    Hi everyone, I'm new to the forums but not to Java.

    I learnt Java several years ago, but haven't really used it since (I've been using mainly C++) and it appears that I have forgotten some underlying concepts.

    I'm developing an application in JDeveloper (it's almost complete) and I'm wondering how to "compile" the application into either an exe or into a form I can put into a website.

    There's a good chance that was a really stupid question, so your patience is appreciated...thanks.

  2. #2
    thusa is offline Member
    Join Date
    Jul 2008
    Posts
    19
    Rep Power
    0

    Default

    If you are using an IDE like JDeveloper, just look for a menu saying "build" or "compile". It will be easy.

    Also you can compile your java classes using "javac" command.

    If looking for deploying it as a web application you need to create a .war file.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    I think he is talking about packaging a Java application. If you want to distribute as a single installation package, read more about jar files. Actually using most of Java IDEs you can easily build a jar file.

  4. #4
    thusa is offline Member
    Join Date
    Jul 2008
    Posts
    19
    Rep Power
    0

    Default

    Yes, even though he says "compile", he must be meaning packaging since he has talked about an .exe file.

    Then better read about jar command and .jar files in java.

  5. #5
    Join Date
    Aug 2008
    Posts
    7
    Rep Power
    0

    Default

    Yes, ultimately I'd like to package it into an exe file. I'll read about that. Thanks guys.

  6. #6
    thusa is offline Member
    Join Date
    Jul 2008
    Posts
    19
    Rep Power
    0

    Default

    Always a pressure to help someone.

  7. #7
    Join Date
    Aug 2008
    Posts
    8
    Rep Power
    0

    Default

    Recently I've run into the same problem.

    I'd like to advice some solution:

    1.Just compile your project in .jar , then wraps it in Open Source Java Wrapper . Then It'll run as an Exe . Download the wrapper at Sourceforge.net . Sorry I forgot the apps name, just search using key words: Java Wrapper

    2.Using Exe-Jar converter. Maybe you wish to try a commercials solutions like Exe4J from EJ Technology. I've tried this one, and it's really saves you a lot.It worths the money. It even can convert Jar directly into service apps.

    3.For packaging, you may try Install4J from EJ Tech. It can automatically build installation files (plus JRE's embedded) from your projects.

    But I can't gurantee for 100% the stability of your exe-converted-.jar , since my last converted .jar that run as win-service just suddenly hang-up

    I think java is more stable running natively as .jar

    NB:
    I'm not related with the company... Just a happy customer. (I think they should pay me for promoting their software) hehe.. :D

    Hope this info helps

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    There are lots of application available to use for deploying a jar package into an exe. Launch4J is one of a great application I've use.

  9. #9
    Join Date
    Aug 2008
    Posts
    7
    Rep Power
    0

    Default

    Thanks everyone, problem solved.

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. getting problem in compiling java program?
    By sathish04021984 in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •