Results 1 to 10 of 10
  1. #1
    trishtren is offline Member
    Join Date
    Feb 2011
    Posts
    53
    Rep Power
    0

    Smile 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 :)

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default

    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?

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

    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.

  4. #4
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default

    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.

  5. #5
    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 UJJAL DHAR View Post
    Then you have to add all of your additional libraries/files to the jar.
    Of course not. Lib folder contains the all. Unless you explicitly use additional libraries NetBeans well care of it.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default

    You also don't add jar files into jars anyway since you will not be able to use them.

  7. #7
    trishtren is offline Member
    Join Date
    Feb 2011
    Posts
    53
    Rep Power
    0

    Default

    super helpful, thanks for all your replies guys.

  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
    20

  9. #9
    trishtren is offline Member
    Join Date
    Feb 2011
    Posts
    53
    Rep Power
    0

    Default

    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.

  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
    20

Similar Threads

  1. Replies: 0
    Last Post: 12-28-2010, 09:05 AM
  2. Replies: 0
    Last Post: 12-08-2010, 07:40 AM
  3. Couple more questions on JAR Files :S
    By Lil_Aziz1 in forum New To Java
    Replies: 13
    Last Post: 06-05-2010, 08:44 AM
  4. Import files from NetBeans
    By Juuno in forum Eclipse
    Replies: 2
    Last Post: 04-08-2009, 05:20 AM
  5. how to make installation files using netbeans 6.5
    By santhosh_el in forum AWT / Swing
    Replies: 1
    Last Post: 03-25-2009, 11:26 AM

Posting Permissions

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