source: examples/example_scripts/java/tbasic.java @ eb6693c

mei_rt2mei_rt2_fix_1
Last change on this file since eb6693c was e3c7769, checked in by Mei <mei@…>, 12 years ago

1) wrap up java interface with swig/jni/abac linkup
2) java regression tests
3) update doc related to new java implmentation

  • Property mode set to 100644
File size: 467 bytes
Line 
1/*****
2     tbasic.java
3***/
4
5import java.io.*;
6import java.util.*;
7
8import net.deterlab.abac.*;
9
10public class tbasic {
11
12    static {
13        System.loadLibrary("jABAC");
14    }
15
16    public static void main(String[] args) throws IOException {
17        System.out.println("called main from tbasic.java");
18
19Context ctxt=new Context(); 
20/*        ctxt.dump_yap_db(); */ 
21
22ctxt.free_context_now();
23        System.out.println("done called main from tbasic.java");
24    }
25}
26
Note: See TracBrowser for help on using the repository browser.