From the course: Java 8+ Essential Training: Objects and APIs
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Package classes in JAR files - Java Tutorial
From the course: Java 8+ Essential Training: Objects and APIs
Package classes in JAR files
- [Narrator] A JAR file is a Java archive, a file in Zip format that contains one or more Java classes pre-compiled into BI code. The JAR file also includes something called an application manifest that indicates how the application is supposed to be run. You can take a JAR file that's pre-compiled, and share it with your users. And as long as they have the JAVA runtime installed, they should be able to run your application. And, as long as you don't have native code, that is any code built with C++ or another native language, your JAR files should be cross platform. You should be able to run it on Windows, on MAC, on Linux or on any other operating system with the JAVA run time. You create these files with a tool that's included with the Java development kit simply called JAR, but IntelliJ Idea makes it very easy to create the JAR file without having to work from the command line. IntelliJ Idea calls the JAR file an artifact and here's how you create it. From the menu, I'll select…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.