Programs and Packages
Here you have a description how to program a little program.
But if you want to program a set of little programs you won't like to make a load of jar files.
The Solution: a package!
Example:
You have 5 programs called Program1 to Program5.
Program1 to 3 are in the package myprogs.util and 4 and 5 are in myprogs.fun
So you make a file called programs.txt where you type the name of the command to which the program should be loaded followed by an "=" and then the main class of your program;
prog1=myprogs.util.Program1 prog2=myprogs.util.Program2 prog3=myprogs.util.Program3 prog4=myprogs.fun.Program4 prog5=myprogs.fun.Program5
The jar file will be like this:
/myprogs/util/Program1.class /myprogs/util/Program2.class /myprogs/util/Program3.class /myprogs/fun/Program4.class /myprogs/fun/Program5.class /programs.txt
Comments