Expecting you know what compiling is in Java.

Creating the .class documents in Eclipse is an option which you could use when selecting export.

STEPS:

  1. Click the Projects that you want to compile, and subsequently on export
    java compile eclipse
  2. Next, click JAR filejava compile eclipse
  3. Then, select the Projects/Source Folders/Packages/Classes you want to select. And press Finishjava compile eclipse
  4. To check if everything went correctly you should in most cases download an application which could open the .jar file (like Dr. Unarchiver)java compile eclipse
  5. You see the C.java file which was created in Eclipse and the converted byte and bytecode (C.class) file in the package P.
    java compile eclipse