How to import java class used Jython in Python?

datulaida ali datulaida.ali at
Mon Jul 16 09:20:13 CEST 2007

Hi all...
How to import Semantic class used Jython in Python?
here my java code..

import java.text.BreakIterator ;

class Semantic {

   // native C++ method
   //public native void printMessage( String message );
     public native String printMessage( String message );
   // load library JNIPrintMessage into JVM
   static {
      System.loadLibrary( "JNIPrintMessage" );

      public static void main(String [] args) {

       String l = "i go to school";


      public static String pilih_ayat(String n){

            JNIPrintWrapper wrapper = new JNIPrintWrapper();

               String ayat_siap =  wrapper.printMessage(n);
            System.out.println("output >>" + ayat_siap);
            return n;
        }//end pilih ayat

      public Semantic(){
          System.out.println ("Berjaya");
}//end class

output >> (S(NLP i) (VP go(PP to(NLP school))))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list