Results 1 to 13 of 13
- 04-29-2009, 12:10 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 21
- Rep Power
- 0
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
- 04-29-2009, 12:12 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you tried with launch4j? And also if you search the forum, you can find a lot.
- 04-29-2009, 12:18 PM #3
Member
- Join Date
- Nov 2008
- Posts
- 21
- Rep Power
- 0
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....
- 04-30-2009, 04:42 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
There you have to added them as resources, I mean except class files folder.
- 04-30-2009, 01:53 PM #5
Member
- Join Date
- Nov 2008
- Posts
- 21
- Rep Power
- 0
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.
- 05-01-2009, 08:12 PM #6
What makes this a Swing/AWT question? Request that this thread be moved to an appropriate forum.
Thanks, db
- 05-01-2009, 08:25 PM #7
When I use images, I have found that it is the easiest to put them in a jar and get them with this:
Try using Nullsoft's NSIS and HM NIS Edit... Check out Here...Java Code:public static Image getImage(String name) { return new Image(ClassLoader.getSystemResource(name)); }Who Cares... As Long As It Works...
- 05-04-2009, 02:34 PM #8
Member
- Join Date
- Nov 2008
- Posts
- 21
- Rep Power
- 0
can u specify which is the correct forum for this question..........
- 05-05-2009, 05:09 PM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-16-2009, 12:20 PM #10
Member
- Join Date
- Nov 2009
- Posts
- 1
- Rep Power
- 0
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-19-2009, 04:43 PM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
[/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.
- 11-19-2009, 06:45 PM #12
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
Are you new to java?
- 11-20-2009, 03:04 AM #13
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
convert application to applet in netbeans
By dbashby in forum New To JavaReplies: 7Last Post: 04-18-2009, 03:49 AM -
Convert .java to .exe
By susan in forum New To JavaReplies: 6Last Post: 02-11-2009, 06:47 AM -
Convert java to .exe
By heartysnowy in forum New To JavaReplies: 13Last Post: 11-21-2008, 08:16 AM -
Convert the application from 9i to 10g
By rahul999 in forum JDBCReplies: 5Last Post: 09-03-2008, 03:55 PM -
How to convert batch application to server app?
By johann_p in forum New To JavaReplies: 0Last Post: 03-28-2008, 09:39 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks