An Issue


The Key Store code just presented works in Windows but has some Java version /OS issues that prevent it's working on other platforms. The version below seems to work across platforms.

  1. build_store16.java
     
  2. Akeystore16.java
     
  3. useKey16.java
     

  4.  

An Element of the fix "UnsupportedEncodingException"


The New Code

        try{theBytes = s.getBytes( "ISO-8859-1");}
           catch(Exception e){System.out.println("can't do that");}

And
       try{ return new String(theNewBytes, "ISO-8859-1"); }
         catch(Exception e){System.out.println("can't do that either");} 

The Old Code
        byte[] theBytes = s.getBytes();

And
        return new String(theNewBytes);    


java build_store16



java build_store








On My Windows System

On hoare.cs.umsl.edu