Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 22nd, 2010  |  syntax: Java  |  size: 0.53 KB  |  hits: 85  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package de.fu.alp5.foreign.distributed;
  2.  
  3. import java.io.File;
  4. import java.io.IOException;
  5. import java.rmi.AlreadyBoundException;
  6. import java.rmi.NotBoundException;
  7.  
  8. public class MainWorker {
  9.  
  10.         public static void main(String[] args) throws IOException,
  11.                         InterruptedException, AlreadyBoundException, NotBoundException {
  12.  
  13.                 if (args.length != 1) {
  14.                         System.out
  15.                                         .println("Usage: java -jar ForeignWorker.jar <text file>");
  16.                         System.exit(-1);
  17.                 }
  18.  
  19.                 new TextAnalyzerWorkerImpl(args[0], "woerter.txt", "words.txt");
  20.  
  21.         }
  22. }