Join Todd Perkins for an in-depth discussion in this video Bundle and use resources in a runnable JAR, part of Learning Java Applications.
- [Voiceover] Let's say you've built an app…that uses some sort of resources,…text resources, image resources, et cetera.…And you want to export that app as a runnable JAR file.…Well let's see what options you have.…Running the app from within Eclipse,…I'm loading a text file called data.txt,…and I'm using the same code that we've seen multiple times…loading a file, so I'm not going to…go over that in detail now.…When the application finally loads up,…it puts this text inside of the text area.…If you're wondering what component I'm using there,…it's the text panel component that you can find…under components, JTextPane, right there.…
So click on it, and then you can click and drag…to draw out the text area.…So let's go back to the source view,…and data.txt is just a text file with anything…in it that you want.…I'm just using it as an example.…So let's say we wanna export this…as a runnable JAR file.…So I'll go to file, export, choose runnable JAR.…I'll call this resources.jar,…layout is my launch configuration,…
- 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.