Results 1 to 13 of 13
  1. #1
    masa is offline Member
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    0

    Default convert java application into an exe

    Hi all
    We have developed a java application using swings. the application is running well and now we want to make an exe file for this application. I have tried some tools like JSmooth,JLauncher but I am unable to get the desired result. Actually in my application there are some folders such as
    rootdirectory/images - contains images
    rootdirectory/properties - contains properties files
    rootdirectory/html - contains html files
    rootdirectory/xml - contains xml file
    rootdirectory/lib - contains some libraries for themes,jar files etc

    here the rootdirectory is the application directory.


    the tool which I used is not pointing to these directories and I am unable to get the images and other files required for the application. I need to know is there any tool or product which takes care of all the directories in the application path.

    Thanks in advance

  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
    20

  3. #3
    masa is offline Member
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    0

    Default

    I tried but the tool is not considering other folders in the application folder. its only considering the class directory. and images are not displaying too....

  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
    20

  5. #5
    masa is offline Member
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    0

    Default

    can you please elaborate your answer. how shall i do it. i used launch4j,jsmooth,exe4j tools but no images or property files are loaded.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,252
    Rep Power
    19

    Default

    What makes this a Swing/AWT question? Request that this thread be moved to an appropriate forum.

    Thanks, db

  7. #7
    markw8500's Avatar
    markw8500 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Pennsylvania, USA
    Posts
    136
    Rep Power
    0

    Default

    When I use images, I have found that it is the easiest to put them in a jar and get them with this:

    Java Code:
     
    
    public static Image getImage(String name) {
            return new Image(ClassLoader.getSystemResource(name));
       }
    Try using Nullsoft's NSIS and HM NIS Edit... Check out Here...
    Who Cares... As Long As It Works...

  8. #8
    masa is offline Member
    Join Date
    Nov 2008
    Posts
    21
    Rep Power
    0

    Default

    can u specify which is the correct forum for this question..........

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

    Default

    Quote Originally Posted by masa View Post
    can u specify which is the correct forum for this question..........
    Don't worry about that. I'll move this thread to the correct forum.

  10. #10
    neeraja is offline Member
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Default how to generate NSIS script for swing application

    i did small changes in java apatar swing application . the application is running well and now we want to make an exe file for this application. I have tried some tools like JSmooth,JLauncher but I am unable to get the desired result. Actually in my application there are some folders such as
    rootdirectory/images - contains images
    rootdirectory/properties - contains properties files
    rootdirectory/html - contains html files
    rootdirectory/xml - contains xml file
    rootdirectory/lib - contains some libraries for themes,jar files etc

    i have created exe using jar2exe tool but is it working with in the project environment.how to pack above mentioned files

    i tried with NSIS but how to generate NSIS script :)



    Thanks in advance[/QUOTE]

  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
    20

    Default

    Quote Originally Posted by neeraja View Post
    i did small changes in java apatar swing application . the application is running well and now we want to make an exe file for this application. I have tried some tools like JSmooth,JLauncher but I am unable to get the desired result. Actually in my application there are some folders such as
    rootdirectory/images - contains images
    rootdirectory/properties - contains properties files
    rootdirectory/html - contains html files
    rootdirectory/xml - contains xml file
    rootdirectory/lib - contains some libraries for themes,jar files etc

    i have created exe using jar2exe tool but is it working with in the project environment.how to pack above mentioned files

    i tried with NSIS but how to generate NSIS script :)



    Thanks in advance
    [/QUOTE]

    As we discuss in most of the such relate threads, creation of executables, limited your application to Windows. Why don't you distribute your application as a JAR package?

    Anyway, if you are going to use ant third party tools to create executables there should be a way to added resources. Event it's fine, as there documentation explain, if you cannot see those additional resources then something may be wrong with the code. launch4j works fine for me several times.

  12. #12
    myskynim is offline Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    0

    Default

    Are you new to java?

  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
    20

Similar Threads

  1. convert application to applet in netbeans
    By dbashby in forum New To Java
    Replies: 7
    Last Post: 04-18-2009, 03:49 AM
  2. Convert .java to .exe
    By susan in forum New To Java
    Replies: 6
    Last Post: 02-11-2009, 06:47 AM
  3. Convert java to .exe
    By heartysnowy in forum New To Java
    Replies: 13
    Last Post: 11-21-2008, 08:16 AM
  4. Convert the application from 9i to 10g
    By rahul999 in forum JDBC
    Replies: 5
    Last Post: 09-03-2008, 03:55 PM
  5. How to convert batch application to server app?
    By johann_p in forum New To Java
    Replies: 0
    Last Post: 03-28-2008, 09:39 PM

Posting Permissions

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