Skip to main content

How to create your Java Executable...

What is a package?
A package is a collection of related classes... (physically in your hard-disk is a directory/folder) all files under the package will be compressed together in a jar file...(a java archive like zip)
Your java application may contain one or more packages to logically group functionality.

When you deploy your application you create one jar file per project.
In this jar file you must specify which is the java class file that contains the main class (the starter class) of your project.

Follow the instructions on the screen-cam to create your java "executable".



Comments

Popular posts from this blog

How to create JRadioButtons, JComboBoxes and JtextAreas

Today I feel much better... These past few days I have been exploring the distance teaching/learning possibilities... Virtual Class did not work, through our computer lab firewall (unfortunately) but today I created two screen recording with sound to try and show you how you can use other swing components like: Radio Button, Printable text Areas and comboboxes. Try to watch the 2 parts of my video (its less than 15 mins) Part 1 Part 2 If you have any questions please comment...

GUI Components

This presentation describes JAVA swing GUI components and Layout Managers Powerpoint presentation in movie mode....

Introduction to JAVA - Review Questions

Very Basic Questions: 1) JAVA uses classes and objects .   Define classes and objects? What is their relationship? 2) Which of the following are Java reserved words?       run,  import,  default,  implement, main, int, Char, exit, extends, catch, if, for, when, do-while, While Basic Questions: Which statements are true? The default constructor initialises method variables. The default constructor has the same access as its class. The default constructor invokes the no-arg constructor of the superclass. If a class lacks a no-arg constructor, the compiler always creates a default constructor. The compiler creates a default constructor only when there are no other constructors for the class. Programming Problems: 1) Create a method called hasDoubleLetters() that returns true if a given word has at least 2 same letters  and false if not. Try to answer them and I will give you feedback! ... more to follow if ...