Running the example

The samples are installed in subdirectories named sample1, sample2, sample3, and so on, located in the directory /jviews-framework89/codefragments/getstart. For details, see <installdir> /jviews-framework89/codefragments/getstart/index.html.
To run an example file such as Sample1.java (located at codefragments/getstart/sample1/src/Sample1.java):
  1. Go to the sample1 directory in the above path.
  2. Create a classes subdirectory:
    mkdir classes
  3. Set the CLASSPATH variable to include the classes directory, the Rogue Wave® JViews library: jviews-framework-all and the license file directory. On a Windows® machine this will be:
    set CLASSPATH=classes;<installdir>/jviews-frameworknn/lib/jviews-framework-
    all.jar;<installdir>/jlm 
    
    where nn is the version; for example, 88
  4. Compile the Sample1.java file:
    javac -d classes src/Sample1.java
  5. Run the application:
    java Sample1
Alternatively, you can compile and start the sample with the scripts available in
/jviews-frameworknn/codefragments/getstart/sample1.