Demo Program JAFApp.java in jaf-1_1_1.zip

Q

How to run the demo program, JAFApp.java, provided in the jaf-1_1_1.zip package?

✍: FYIcenter.com

A

The jaf-1_1_1.zip package comes with a nice demo program called JAFApp.java. You can compile and run it as described below:

1. Make sure you installed jaf-1_1_1.zip under the \local folder.

2. Run commands below:

\fyicenter>copy \local\jaf-1.1.1\demo\JAFApp.java . 
\fyicenter>copy \local\jaf-1.1.1\demo\CompViewer.java .

\fyicenter>java -version
java version "1.7.0_45"

\fyicenter>javac -classpath .;\local\jaf-1.1.1\activation.jar  
   JAFApp.java

\fyicenter>java -classpath .;\local\jaf-1.1.1\activation.jar  
   JAFApp

3. Select JAFApp.java with you see the "JAF Testing Application" window shows up.

4. Click on the "Launch" button on the top right corner. You will see a JAF Component shows up to display the content of the Java file.

Back to FAQ for JAF (JavaBeans Activation Framework).

2016-06-21, 876👍, 0💬