Join Todd Perkins for an in-depth discussion in this video Use a JAR file in another project, part of Learning Java Applications (2016).
- [Voiceover] Not only can you export a runnable JAR file,…but you an also export a JAR file…that just contains your classes.…So for example, if you build a whole library…of classes and you want to share those classes…with another developer, it's easy to do.…Let's look at how that works.…In my workspace I have two projects,…Project1 and Project2.…Project1 has two class files.…One is PersonManager, that has nothing in it…except for the main function, and the other one…is Person.Java, my class file.…
It has a Person class with a first name and last name…and it has a method to print them out.…Project2, inside the default package,…has Project2Main that just has a main function, that's it.…So let's say we want to use or reference the Person…from inside of Project2Main.…So if I type Person right now and I try…to create a Person, I'm going to get an error.…So even though I'm in the same workspace,…I can't reference a Person.…So let's delete that line of code…and then export our Person class as a JAR file…that we can import into other projects.…
- Installing Java and Eclipse
- Understanding basic Java syntax
- Handling Java errors
- Creating a UI with Swing
- Creating tables and connecting to data sources for tables
- Publishing a JAR file
- Installing NetBeans
- Creating JSP pages
- Setting up and connecting to databases
- Creating Java-based Android Studio projects
Skill Level Beginner
1. Install Java and an IDE
2. Java Basics Review
3. Create a User Interface with Swing
4. Tables and Data Sources
5. Application Distribution and Deployment
Publish a runnable JAR file2m 32s
6. Server-Side Java: JSP and Databases
7. Android Development
Next steps1m 16s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.