I believe you misunderstood your teacher. There is no java without javac, unless you use some kind of special compiler like gcj, which I suspect is not what your teacher wants. I believe that your teacher actually wants you to use the command line tools and a simple editor. The teacher is saying: I do not want you to use templates or auto suggestion to complete the assignment and you need to open a terminal and type in the commands to compile (javac) and run (java) your program yourself.
Cay Horstman, co-author of Core JAva has a good tutorial on this in windows. http://www.horstmann.com/bigj/help/compiler/tutorial.html
The process works like this:
Java comes with a bunch of different tools and, depending on your Operating System, those tools will be installed in a directory that you can then run them from. For the purposes of this exercise, you can get by with three programs, notepad.exe, javac.exe, and java.exe. When these are installed via the Oracle installer, you might need to make sure that all of them accessible via the Windows path.
Step 1:
Find where you want to store your program. When I work in Windows, I use a directory called c:\dev because it is easier to type.
Step 2:
Create the file and save it to c:\dev
Name it MyClass1.java
Step 3:
Compile the file into Java Bytecode
javac MyClass1
This will create a file called MyClass1.class
which, depending on the actual java code inside the file, can be run with the java command (Step 4) or embedded in a web page (Step 5)
Step 4:
Run the program
java MyClass1
Step 5: If the class extend JApplet then you must embed a reference to the class file in a web page and then load the page in a browser. The official tutorial on this is here:http://docs.oracle.com/javase/tutorial/uiswing/components/applet.html