[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

07/14/2005 at 05:12AM PDT, ID: 21491288
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

Automatic JAR Bundling?

Asked by allquixotic in Java Programming Language, New to Java Programming

Tags: eclipse, ant, jar

Hey guys,

I'm working with a Java Applet which has a TON of dependencies in the form of open or closed-source .jars. I thought the point of the .jar file (according to Sun) is to limit the number of required http connections to receive the applet to exactly one?

Well, now I'm almost as bad as a simpler program that distributes itself as .class and resource files! It'd take about 20 http connections to receive the applet's dependencies; but the answer to this solution will allow me to distribute it as one file! The difference in download time from 20 individual http connections, versus a single connection to download all the material, is about twice as slow (because each jar is very small, less than a second DL, if you've got broadband).

I also plan to distribute my program as a standalone Java Application for the desktop, and I want to minimize the number of files that can be corrupted / moved by the user.

 A different EE solution suggested that I "unjar" all of the dependency JARs, and include them in my own. However, when I tried doing this, I got all sorts of errors, and "Organize Imports" didn't find any of the classes I included in my base project folder, even though I included them in their correct package directories :-( Using the Eclipse IDE, is there any sort of Eclipse or Ant plugin that I can load which will do this automatically at build time? It would also greatly decrease the complexity of my class browsing tree if I am able to do this only at JAR build-time; while I'm using the IDE I would see my dependencies as singular .jar files, not 65+ package directories.

So, what I have already tried (detailed below) is not valid as an answer:
1. Extract all files from all dependency JARs, preserving the folder structure inside of the JAR.
2. In Eclipse, right-click on the base Project (not a package) and do Import... and import all the dependent folders, .class files, and resources into the base output folder.
3. Build Clean the project, Organize Imports again, Save All, etc.

If you can tell me what I did incorrectly in those three steps, or provide a link to a plugin that will tackle this problem for me at build time, you deserve 500 points! Also - if your offered solution has poor documentation, I would appreciate a quick how-to on usage (I'd give bonus points for that if EE allowed me!)

Thanks,
Sean
[+][-]07/14/05 05:14 AM, ID: 14439825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/14/05 05:14 AM, ID: 14439828

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/14/05 05:15 AM, ID: 14439830

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/14/05 05:15 AM, ID: 14439834

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/14/05 05:16 AM, ID: 14439843

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/14/05 05:39 AM, ID: 14440021

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/14/05 05:54 AM, ID: 14440150

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/14/05 11:31 AM, ID: 14443725

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, New to Java Programming
Tags: eclipse, ant, jar
Sign Up Now!
Solution Provided By: teamlti
Participating Experts: 3
Solution Grade: B
 
 
[+][-]07/28/05 07:11 AM, ID: 14545829

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/28/05 10:59 AM, ID: 14548350

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74