Results 1 to 18 of 18
Thread: anyone know it
- 03-03-2010, 11:40 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
- 03-03-2010, 01:47 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-04-2010, 03:54 AM #3
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
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..
- 03-04-2010, 04:03 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-04-2010, 04:06 AM #5
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
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
- 03-04-2010, 04:10 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-04-2010, 04:32 AM #7
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
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...
- 03-04-2010, 04:39 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-04-2010, 04:40 AM #9
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
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
- 03-04-2010, 04:43 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-04-2010, 04:44 AM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Read more about JAR files in Suns' official website.
Running JAR-Packaged Software (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)
- 03-04-2010, 04:47 AM #12
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
only
in dist folder only the jar file is present...
now what can i do now?
- 03-04-2010, 04:51 AM #13
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Just run it, as explain in that article I've send to you in my previous post.
- 03-04-2010, 06:34 AM #14
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
thanks
thanks for all.
i do what ever u told..
thanks one and all
- 03-04-2010, 01:42 PM #15
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 03-05-2010, 04:04 AM #16
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0
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
- 03-05-2010, 04:32 AM #17
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 03-05-2010, 04:36 AM #18
Member
- Join Date
- Feb 2010
- Posts
- 23
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks