Results 1 to 18 of 18

Thread: anyone know it

  1. #1
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Default anyone know it

    i finish project in netbeans..
    how can i run without enter into netbeans.
    run into browser..

  2. #2
    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

    Is that your application is a desktop application or applet mainly?

    Using NetBeans you can create a jar file of you application, and it's possible to use in different ways based on ways you create it.

  3. #3
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation but

    how can i create a jar file using netbeans..
    actually my project developed by struts..
    how can i run my project in exe format..once the exe file can be clicked the project might be run..how it is possible?

    because in this struts concept u can deploy once in a server using lan connectioin we can run anywhere...
    so i use one server machine..in client machine how can i create exe file of my project...please help me..

  4. #4
    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

    Right click on the project, on the pop-up menu you can see a menu item "Build" click on it. On console you can see the successful/failure message. Then go to the project folder, and search for a folder name dist. Open it you can see a jar file, of your project.

    Why you want to build an exe? It's specific for Windows, jar can use on any OS.

  5. #5
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation sure

    at build time the cursor says build failed..but i clean the project it says successful.and i deploy its says successful.
    what is the way i can build project successful.
    how can i run the jar file in the system with out the requirement of netbeans..
    please reply me

  6. #6
    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

    1. Are you sure that your code can run on NetBeans?

    2. What's to complete build failed message you comes with?

    As I said several times, to run you no need to use the NetBeans, it's only required to build the jar file.

  7. #7
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation sucess

    now build successful..
    i get war file in my project dist folder.
    how can i open with..
    in other system i paste this war file only...

  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

    It's jar file, not war file ;)

    What are the things you can see inside that dist folder? Only the jar file? To run your jar file on another system you've to bring the compete dist folder if you have any addition files. There may be another folder inside the dist, named lib, that's if you using any additional libraries in your application.

  9. #9
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Smile rly pleasle

    now build successful..
    i get war file in my project dist folder.
    how can i open with the war file...
    in other system i paste this war file only...and run it..its enough
    pleaseeeeeeeee

  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

    Default

    To run a jar file you had to have install JVM in any system. Some of the UNIX OS already have JVM but not all, and also in Windows by default there is no any JVM. So you've to install it first.

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

  12. #12
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Smile only

    in dist folder only the jar file is present...
    now what can i do now?

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

  14. #14
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Smile thanks

    thanks for all.
    i do what ever u told..
    thanks one and all

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

  16. #16
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation but

    when i clean and build project in netbeans it shows creating jar..but actually it shows in build folder filename.war file...
    how can i convert into jar file..
    please help me

  17. #17
    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

    It cannot happen. What's the war file? Actually there should be a dist folder in your project folder, if the build process is success.

  18. #18
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation ok

    the bulid process successful..in output window shows creating jar
    into project\dist\filname.war file created.
    if i have any settings changed mam...
    please

Posting Permissions

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