Hopefully you found this; the Sun website for downloads is http://java.sun.com/j2se/1.4.1/download.html. For VMS/UNIX, try http://h18012.www1.hp.com/java/download/index.html
Here's a program to do this:
public class firstprog { public static void main(String[] args) { System.out.println("hello, world"); } }
There are loads of ways to do this, but chances are there will be a sort function already in the library somewhere. Here's an example of one way to accomplish the task:
public class sorter { public static void main(String[] args) { java.util.Arrays.sort(args); for (int i=0; i<args.length; i++) { System.out.println(args[i]); } } }
Once you have your "sorter.class", you also need a "manifest.mf" file that contains something like this:
Manifest-Version: 1.0 Main-Class: sorterThen create the JAR file using:
% jar cfm sorter.jar manifest.mf sorter.class