source: branches/blt4/lang/java/Utils.java @ 1744

Last change on this file since 1744 was 1744, checked in by gah, 14 years ago

update with java and install rappture

File size: 849 bytes
Line 
1/*
2 * ======================================================================
3 *  AUTHOR:  Ben Rafferty, Purdue University
4 *  Copyright (c) 2010  Purdue Research Foundation
5 *
6 *  See the file "license.terms" for information on usage and
7 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
8 * ======================================================================
9 */
10
11/*
12 * This file defines a java class that implemements the rappture utils module.
13 * The class methods call the corresponding native code through c++ glue code
14 * located in jRpUtils.cc.
15 */
16
17package rappture;
18
19public class Utils{
20  static{
21    System.loadLibrary("JRappture");
22  }
23
24  public static void progress(int percent, String text){
25    jRpUtilsProgress(percent, text);
26  }
27
28  private static native void jRpUtilsProgress(int percent, String text);
29
30}
31
Note: See TracBrowser for help on using the repository browser.