Results 1 to 10 of 10
- 04-11-2011, 06:50 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 53
- Rep Power
- 0
Questions about jar files / netbeans
Hey i just started using netbeans today and im having a few questions wondering if anyone could answer them.
#1 : I know netbeans produces jar files when you run the project but will these jar files run standalone without the need to include a number of netbeans dependency libraries such as the custom gui.
Currently when i try to run the jar files produced in the build folder they wont run at all so i was wondering whether its because im missing a library that netbeans contains.
#2 : It says netbeans was built entirely in java however it has an executable file to run on all platforms. I was wondering if this was done with one of those jar to exe converters or if there is a slicker way that was used by netbeans?
#3 : If you build your application ontop of the netbeans platform do you know if there is any specific licenses your bound by that would prevent commercial distribution of your application?
Any answers would be great :)
- 04-12-2011, 08:24 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
1. You will need the jar files for whatever dependencies you have in your system. So if you use some apache stuff you will need the relevant apache jars. As far as I am aware the Netbeans GUI stuff is straight forward Swing, so you shouldn't require any additional stuff for it.
2. I thought the netbeans exe was platform dependent, but the Java backing it wasn't.
3. Why (outside of a dev plugin for the IDE) would you want to build an app on top of Netbeans?
- 04-12-2011, 09:46 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Here is my comment,
1. NetBeans build the JAR package for your project, once you build the project with only the relevant libraries which needs your to run your application. Inside the project folder you can see a folder name dist. Within that there may be a folder named libs where all the necessary libraries contain.
2. Yes, NetBeans is platform dependent. You have to choose the suitable package based on your OS.
3. There are no such limitations bind with NetBeans developments. But you cannot be a reseller on NetBeans. ;) If you wish you could sell your projects with license if you wish.
- 04-12-2011, 10:02 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Dhaka,Bangladesh
- Posts
- 178
- Rep Power
- 0
May be you got your answer by this time....
Hey i just started using netbeans today and im having a few questions wondering if anyone could answer them.
#1 : I know netbeans produces jar files when you run the project but will these jar files run standalone without the need to include a number of netbeans dependency libraries such as the custom gui.
Currently when i try to run the jar files produced in the build folder they wont run at all so i was wondering whether its because im missing a library that netbeans contains.
#2 : It says netbeans was built entirely in java however it has an executable file to run on all platforms. I was wondering if this was done with one of those jar to exe converters or if there is a slicker way that was used by netbeans?
#3 : If you build your application ontop of the netbeans platform do you know if there is any specific licenses your bound by that would prevent commercial distribution of your application?
Any answers would be great
When you build your project in netbean,there will be created a jar file on dist folder.Then you have to add all of your additional libraries/files to the jar.
EXE files are not platforms independent like as JAR. So, EXE shouldnt create.
To add libraries on JAR, use update method.
Java Code:jar cf jar-file input-file(s)
Don't Forget to try yourself before asking others help.....
Press REP, if you find their advices/solutions effective.
- 04-12-2011, 10:08 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-12-2011, 10:20 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
You also don't add jar files into jars anyway since you will not be able to use them.
- 04-12-2011, 03:38 PM #7
Member
- Join Date
- Feb 2011
- Posts
- 53
- Rep Power
- 0
super helpful, thanks for all your replies guys.
- 04-28-2011, 10:41 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
can you please mark the thread solved, since you found the solution here.
- 04-28-2011, 12:07 PM #9
Member
- Join Date
- Feb 2011
- Posts
- 53
- Rep Power
- 0
uhm not to seem like a forum noob :p but how do i mark it as read, i cant seem to find the tab or button lol. I looked in my profile and everything but cant find it, sorry.
- 04-28-2011, 12:21 PM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Seems you've found it right. Keep it up mate. :)
Similar Threads
-
Porting a Netbeans project with .form files to Eclipse
By nds in forum EclipseReplies: 0Last Post: 12-28-2010, 09:05 AM -
Netbeans deletes class files on RUN but not on Clean And Build
By firblazer in forum NetBeansReplies: 0Last Post: 12-08-2010, 07:40 AM -
Couple more questions on JAR Files :S
By Lil_Aziz1 in forum New To JavaReplies: 13Last Post: 06-05-2010, 08:44 AM -
Import files from NetBeans
By Juuno in forum EclipseReplies: 2Last Post: 04-08-2009, 05:20 AM -
how to make installation files using netbeans 6.5
By santhosh_el in forum AWT / SwingReplies: 1Last Post: 03-25-2009, 11:26 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks