Building jar: C:\myjava\netbeans55\get_started\dist\get_started.jar
To run this application from the command line without Ant, try:
java -jar "C:\myjava\netbeans55\get_started\dist\get_started.jar" jar:
 

/*
* Main.java
* * Created on March 15, 2007, 5:16 PM
* * To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package get_started;
import java.io.*;
import java.util.*;
//javac test_protected_field.java
class team_raider {
public int x, y;
protected int pro_count = 0;
static protected int statpro_count = 0;
protected void move(int dx, int dy)
{
x = dx; y = dy; pro_count++; statpro_count++;
System.out.println("move: " + " x = " + x +"y = "+ y + " pro_count = "+ pro_count + " statpro_count = " +statpro_count);
}
}
class process_protected extends team_raider
{
public void process(int dx, int dy)
{
// note all protected field can be used with subclass
x = dx; y = dy; pro_count++; statpro_count++;
System.out.println("process: " + " x = " + x +" y = "+ y + " pro_count = "+ pro_count + " statpro_count = " +statpro_count);

move(dx,dy);
}
}
class test_protected_field
{

public static void main(String args[])throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str ="";
System.out.println("Player id : ");
str = br.readLine();
int dx = Integer.parseInt(str);
System.out.println("Player Jersey : ");
str = br.readLine();
int dy = Integer.parseInt(str);
process_protected tp = new process_protected();
tp.process(dx, dy);

}

}