See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » Use NetBeans IDE 6.7 to Combine JAR Files Into a Single JAR File
0
Vote Vote

Use NetBeans IDE 6.7 to Combine JAR Files Into a Single JAR File

Views 0 Views    Comments 0 Comments    Share Share    Posted 01-09-2009  
The Java Warehouse is the repository for Java and JavaFX applications submitted by developers for distribution through the Java Store to hundreds of millions of desktops worldwide. The Java Warehouse Developer Center Release Notes make clear that there is currently no way to upload applications composed of several Java Archive (JAR) files into the Java Warehouse. However, there is a workaround: Just concatenate each of the user and library classes into a single JAR file. This is very easy to do for both Java and JavaFX projects using NetBeans IDE 6.7.1.

To demonstrate how to do this, let`s use one of the sample Java projects that is included in the NetBeans IDE 6.7.1 distribution: the Mars Rover Viewer. Open the NetBeans IDE, select File > New Project, then scroll down to the Samples folder and choose Java from the Categories pane. From there, select Mars Rover Viewer in the Projects pane and click Next, as shown in Figure 1. Next, choose a suitable location for the project and click Finish.

We`ve chosen this project because it makes use of a popular compile-time library that is not included with the standard Java Development Kit (JDK): the Swing Application Framework. To verify that this library is being used, right-click on the project in the upper left pane and choose Properties. From there, select Libraries on the left pane to verify that the Swing Application Framework is indeed listed, as shown in Figure 2. Then click OK to close the Project Properties dialog box.

Source:
http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

What's the News?

Post a link to something interesting from another site, or submit your own original writing for the Java community to read.

Most Popular News

Most Recent User Submitted News