Accesing COM port from an applet

Hello:
I am trying to develop an application that retrieves data from a VR glove and then use it to simulate the movement of it in an applet using VRML, anyway, as you can imagine, the applet is giving me problems when I try to access the serial port, it throws this particular exception :
java.lang.ExceptionInInitializerError: com/ms/security/SecurityExceptionEx
     at HandAdapter.<init>
     at HandManager.init
     at com/ms/applet/AppletPanel.securedCall0
     at com/ms/applet/AppletPanel.securedCall
     at com/ms/applet/AppletPanel.processSentEvent
     at com/ms/applet/AppletPanel.processSentEvent
     at com/ms/applet/AppletPanel.run
     at java/lang/Thread.run
I saw a solution to this problem using a netscape library, namely netscape.security.PrivilegeManager which fixes the problem, however, I haven�t found its counterpart for Internet Explorer.
I hope you guys know of a solution to this issue given that programmers are used to fix this kind of troubles all of the time when developing in applet technology. Thanks in advance.

By default applets do not have access to the system... you can set your vm to, allow applets to have access completly to the system, not very secure. Also any one who is visiting your site will have to have this set in there VM... Unless it's for your own personal purposes...
Edit the java.policy so it contains only the following:
grant
permission java.security.AllPermission;

Similar Messages

  • Exception while accessing com port from servlet

    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown
    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)
    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    Hi there. I am also facing the problem accessing com port via servlet. if u have the solution, kindly forward to me at [email protected]
    many thanks

  • Security Exception while accessing com port from servlet

    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown
    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)
    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    Well, have you tried the obvious to add the following permission to your web server's policy file?
    grant "file:<wherever my servlet resides>\myservlet.jar" {
    permission java.io.FilePermission "c:\j2sdk1.4.1\jre\lib\javax.comm.properties", "write,delete";
    }

  • Exception while accessing a com port from servlet

    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown
    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)
    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    Solved!!. Just make sure u r placing neccessary files (comm.jar, win32com.dll and javax.comm.properties)onto the right JVM folders. Since JVM may be installed in many different location in your PC, U might want to do some search around looking for java.exe elsewhere in the system. Good luck!

  • COM port from VISA alias

    I have a test fixture I am designing in LabVIEW that is composed of many independent instruments. For simplicity sake I gave all of these instruments a VISA alias (for instance Programmer rather than COM3) so I wouldn't have to guess at which COM port the instrument was attached to.
    Now, in LabVIEW, one of my instruments does not have a driver but does have a DLL shared library that I am trying to create wrappers for. One of the inputs is the serial port in a numeric format (0 for COM1, 1 for COM2, etc). If I didn't have the alias I would just do something like this...
    But....because I have these aliases I cannot make it so simple. Is there a way to get the serial (COM) port number (I can decrement it) from the VISA alias?
    Edit: seems the code didn't make it in on the first pass
    Solved!
    Go to Solution.

    Jeff·Þ·Bohrer wrote:
    obviously you're not using Quick Draw correct that drop.
    they are on the pallets under measurements and they show up at the lower left hand sideI believe they install with DAC MX or device drivers
    and of course that's a snippet so you could have just drop it will block diagram right click instead find an outlet from the alt correction find on pallets from the help
    side note: Google speak doesn't recognize everything correctly
    Ah.. I see them since I have never used any sort of DAQ devices or quick-drop (never could figure that out) I guess I never saw them before.

  • Accesing an EJB from an Applet

    Hello,
    I've published my first EJB to Oracle 8i, and when I use a
    standalone java application as a client I have no problems.
    But when I try to access with an Applet, the Java console shows:
    javax.naming.NotContextException:
    retvalentin09.cedetel.tel.uva.es:2481:ORCL/test/MyEJBRemote
    The code I use to connect to the EJB is the same as in the
    standalone application:
    Hashtable env = new Hashtable();
    System.out.println("Inicializando entorno...");
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, "valentin");
    env.put(Context.SECURITY_CREDENTIALS, "valentin");
    env.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    System.out.println("Inicializado");
    try{
    Context ic = new InitialContext(env);
    System.out.println("Contexto inicial creado");
    MyEJBHome home = (MyEJBHome)
    ic.lookup("sess_iiop://retvalentin09.cedetel.tel.uva.es:2481:ORCL
    /test/MyEJBRemote");
    System.out.println("Obtenido home Interface");
    try{
    try{
    MyEJBRemote holaBean = home.create(); // create a
    bean instance
    System.out.println("Obtenida referencia a EJB");
    System.out.println("Resultado: "+holaBean.DimeHola());
    } catch (java.rmi.RemoteException
    RE){System.out.println("Excepcion remota: "+RE);}
    }catch (javax.ejb.CreateException
    CE){System.out.println("Excepcion de creacion: "+CE);}
    }catch (javax.naming.NamingException
    nE){System.out.println("Excepcion de nombrado: "+nE);}
    System.out.println("Finalizado");
    What is going wrong? I use Java Plugin 1.2.2 in the
    navigator, perhaps that is the problem.
    I've tried to compile the applet in JDeveloper 2.0 with JDK
    1.1.7, but the Netscape Communicator throws Security Exceptions
    (I think the JVM of the navigator is 1.1.5), and it happens the
    same with Internet Explorer.
    I've tried to compile the applet in JDevelper 2.0 whit JDK 1.2,
    and in both Communicator and Explorer the Java Console shows this
    messages:
    Java(TM) Plug-in: Version 1.2.2.pu
    Using JRE version 1.2.2
    User home directory = C:\WINNT\Profiles\Administrador
    Proxy Configuration: Manual Configuration
    Proxy: http=proxy.uva.es:80
    Proxy Overrides:
    JAR cache disabled.
    Inicializando entorno...
    Inicializado
    Contexto inicial creado
    Excepcion de nombrado: javax.naming.NotContextException:
    retvalentin09.cedetel.tel.uva.es:2481:ORCL/test/MyEJBRemote
    Finalizado
    I would appreciate if somebody could help me, as it is very
    urgent.
    Thanks in advance
    Valentin
    null

    Hi
    Oracle8i comes with set of samples. One of sample is accessing an
    EJB from applet. check out demo.tar/demo.zip file
    $ORACLE_HOME/javavm/demo directory.
    You will find it useful.
    regards
    raghu
    Valentin Alonso (guest) wrote:
    : Hello,
    : I've published my first EJB to Oracle 8i, and when I use a
    : standalone java application as a client I have no problems.
    : But when I try to access with an Applet, the Java console
    shows:
    : javax.naming.NotContextException:
    : retvalentin09.cedetel.tel.uva.es:2481:ORCL/test/MyEJBRemote
    : The code I use to connect to the EJB is the same as in the
    : standalone application:
    : Hashtable env = new Hashtable();
    : System.out.println("Inicializando entorno...");
    : env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    : env.put(Context.SECURITY_PRINCIPAL, "valentin");
    : env.put(Context.SECURITY_CREDENTIALS, "valentin");
    : env.put(Context.SECURITY_AUTHENTICATION,
    : ServiceCtx.NON_SSL_LOGIN);
    : System.out.println("Inicializado");
    : try{
    : Context ic = new InitialContext(env);
    : System.out.println("Contexto inicial creado");
    : MyEJBHome home = (MyEJBHome)
    ic.lookup("sess_iiop://retvalentin09.cedetel.tel.uva.es:2481:ORCL
    : /test/MyEJBRemote");
    : System.out.println("Obtenido home Interface");
    : try{
    : try{
    : MyEJBRemote holaBean = home.create(); // create a
    : bean instance
    : System.out.println("Obtenida referencia a EJB");
    : System.out.println("Resultado:
    "+holaBean.DimeHola());
    : } catch (java.rmi.RemoteException
    : RE){System.out.println("Excepcion remota: "+RE);}
    : }catch (javax.ejb.CreateException
    : CE){System.out.println("Excepcion de creacion: "+CE);}
    : }catch (javax.naming.NamingException
    : nE){System.out.println("Excepcion de nombrado: "+nE);}
    : System.out.println("Finalizado");
    : What is going wrong? I use Java Plugin 1.2.2 in the
    : navigator, perhaps that is the problem.
    : I've tried to compile the applet in JDeveloper 2.0 with JDK
    : 1.1.7, but the Netscape Communicator throws Security Exceptions
    : (I think the JVM of the navigator is 1.1.5), and it happens the
    : same with Internet Explorer.
    : I've tried to compile the applet in JDevelper 2.0 whit JDK 1.2,
    : and in both Communicator and Explorer the Java Console shows
    this
    : messages:
    : Java(TM) Plug-in: Version 1.2.2.pu
    : Using JRE version 1.2.2
    : User home directory = C:\WINNT\Profiles\Administrador
    : Proxy Configuration: Manual Configuration
    : Proxy: http=proxy.uva.es:80
    : Proxy Overrides:
    : JAR cache disabled.
    : Inicializando entorno...
    : Inicializado
    : Contexto inicial creado
    : Excepcion de nombrado: javax.naming.NotContextException:
    : retvalentin09.cedetel.tel.uva.es:2481:ORCL/test/MyEJBRemote
    : Finalizado
    : I would appreciate if somebody could help me, as it is very
    : urgent.
    : Thanks in advance
    : Valentin
    null

  • Calling COM object from an Applet

    Hi,
    Can an applet communicate with Microsoft COM object?
    Thanx

    Check out some software called JIntegra (commercial). Also, I think there used to be some sun stuff... but it got dropped... and then got picked up again... but I don't know what the status is on it.

  • HyperTerminal sees a COM port but VISA does not

    It should not be possible that HyperTerminal sees a COM port but VISA does not. Does anyone know why or have any ideas?
    Here's some more info: I wrote a LabView (LV) program and deployed it (via the Application Builder) to some of our production department's PCs (some Windows XP and some Windows 7). We use it to set up products we design and manufacture through our device's USB serial port. The USB port is actually a virtual COM port (VCP) - a USB to Serial converter or "bridge". We have a custom driver for our device and since each device's USB bridge chip is programmed with a different serial number, every time we connect a new device to the PC the installer runs and assigns a new COM port number. This is so our customers can use multiple devices on a PC. Fine. On one of our production PC's we were close to  COM900 ports (HyperTerminal sees only up to COM256) when suddenly Win7 would not allow any more. We were able to uninstall orphaned (non-present) COM ports from DeviceManager ("DM") by starting it from a command console (DOS window) with a special command-line switch, "set devmgr_show_nonpresent_devices=1" then "start devmgmt.msc" (I have this in a batch file). In DM View menu you can "Show hidden devices" and uninstall them as if they were connected. I've also tried uninstalling them the normal way when the device was actually connected. Either way, sometimes, not always, depending on the COM port number, after reusing that port number by installing a new device which picks up that old, freed-up number, LV VISA doesn't see it. In other words, when "Refresh" is clicked in the COM port VISA list box, any new devices installed should be and normally are seen. (Refresh is not needed if the application is started after the device's driver is installed. It is only need if the LV application is open with the new device is added.) However, HyperTerminal does see it and lists it in the Properties screen, the "Connect using..." list box. And the port works with HyperTerminal. (Of course we've tried rebooting after uninstalling and/or reinstalling the device, with the same results.)
    When I've spoken to the NI Applications Engineers in the past about serial port issues (not about this problem) they have confirmed that if HyperTerminal can see the port then NI VISA should also see it. This is crazy. I am posting this in hope that someone can shed some light on this problem.
    Thank you. -Ed

    Good catch. Yes, we're using the Silicon Labs CP2102 and have created a "custom driver" installation package. Our new PCBs have a factory-programmed chip, so the PC reuses that COM port (COM3 on that PC). The problem is when we we re-program the CP2102 (setIDs exe) with our PID, and device strings (including the S/N), the PC runs our installer and assigns the next COM port number. I was hoping that maybe it would go up to 64K or something! Anyway, it surpassed COM256 but we ran into this problem when almost up to COM900.)
    There is a registry entry for each SN device, which shows the assigned port. If we delete the key with regedit, the COM port database (don't know the file name) still has the port number. That's where Device Manager comes in. It seems to allow us to manually delete the ports, but it would take quite a while to delete 900. (I was trying to make a batch file for DevCon, but couldn't get it to see the HW ID of the devices in need of deletion.) So we tried manually deleting a few. After doing that Device Manager shows that Windows (and HyperTerminal) can reuse the port number when a new device (new SN) is installed, but, as you know from this post, VISA cannot see unless I manually add it in MAX.
    I can't see how it has anything to do with the Silicon Labs driver. I might have to delete ALL of MY devices, then uninstall the driver files, reboot, then reinstall, as you suggested with the SiLabs driver. However, I don't see how VISA will now see these changes. VISA must have it's own database. That's what I thought deleting the ports in MAX would clear out, like a fresh install, but apparently not.
    I've been through Silicon Labs' tech support on other issues and they've been able to help on some. I could run this by them.
    BTW, have you noticed that Silicon Labs' chip and driver, while faster than NI's own "bridge" or serial-USB converter (I returned it because at $100 it's performance was worse than a $20 converter you can buy in Staples), is substantially slower than a real serial port? For example, our device can transmit 250 readings per second (a 12 byte string). A real serial port used with my LabView program can keep up, i.e.., graph & tabulate at that rate, but with a VCP we only get about 70 RPS. Same code. Can't figure this one out. They say the've tested the driver to 900 KB claimed. We're using 115KB here. Anyway, the VCP driver makes it look like a COM port which LV thinks it is. Why is it slower than a real port when the USB should be able to work almost 10 times faster than I'm using it (up to 1024 bytes per mSec per the full-speed USB spec, which SiLabs claims they verified)?
    Anyway, I appreciate your help. Thanks! -Ed

  • How can i read an COM port ???

    Hi,
    somebody knows how can i read an COM port from Forms 4.5 ?
    Thanks in advance.
    Patricio

    Hi Patricio
    have U got any solutions?? Im also trying to send message to display panel from forms 5.
    If You got any please let me know itll help me a lot
    Thanx
    Suraj

  • Automatically detect com port

    Hello
    I would like to create a User Event that defines which method data is provided to the VI (either Serial port or Telnet). If it is Serial port then I would like the VI to automatically find the correct data port that is providing valid instrument data and then stream the data to the screen. If it is a Telnet connection then the IP addresses are pre-determined and the data will also stream to the screen.
    As you can see in the attached VI, I am chasing my tail. I can successfully configure my Serial ports to my instrument thanks to some previous help but when I try to build an automatic COM port detection loop, I make a mess of it and my clean-working VI get all gunked-up.
    Will someone please put me back on track? What are the key elements that I am missing in this logic?
    Thank you so much.
    ~Derailed
    p.s LabView 2009 on MacOSX
    p.p.s. I just found this in the forum help topics and will explore it, but I think I need additional logical sequences to accomplish my goal.
    http://forums.ni.com/t5/LabVIEW/ASRL-versus-COM-display/m-p/88100#M54017
    Attachments:
    NIMS4.vi ‏27 KB

    So I simplified. Attached is a VI using VISA Find Resource to pipe a list to a While Loop that searches the com ports for valid packets.
    When running with highlighted execution ON, I can see that the loop sees the correct com port and the logic is good but the VISA Read reads no data. I removed the Flush Buffer vi and increased the bytes to VISA Read but still have the same result - no data to screen.
    I also tried to lengthen the amount of time the Mac might need to read the com port from 50ms to 100ms but still nothing. Any ideas?
    Thanks,
    ~Almost back on one rail
    Attachments:
    ComPortDetect.vi ‏19 KB

  • Com port

    Hi,
    somebody knows how can i read an COM port from Forms 4.5 ?
    Thanks in advance.
    Patricio

    with user exit or external procedures
    regards

  • Can I just have one Bluetooth COM port?

    Hi,
    I have just installed the Bluetooth stack and there are now lots of BT COM ports listed. They are over-riding COM ports I already had defined previously for other non-Bluetooth devices.
    Can I just add BT COM ports as and when needed?
    Regards,
    Jonny

    Before I installed the Toshiba Bluetooth stack (on Windows 2000), I already had other non-Bluetooth devices set up from COM1 to COM6.
    After I installed The Toshiba Bluetooth Stack, it created BT COM ports from COM1 to COM40.
    The COM ports it created from COM1 to COM6 are over-riding my non-Bluetooth COM ports, so that I can no longer use them.
    I had to uninstall the Toshiba Bluetooth stack before I could use them again.
    Why does the Toshiba Bluetooth Stack create all these COM ports? I don't want it to create any until I tell it which device(s) to connect to.
    Please can you help. Thanks.
    Regards,
    Jonny

  • Accessing RS232 Port (Comm Port) from Applet

    I have an interesting "problem". I would like to create an applet that allows me to read the Comm port of the client machine but obviously I get a security exception when I try to do this. Firstly is this possible (I know it can be done from an application)? If so, how would I go about doing it?
    Thanks,
    Rishi

    you need to install the jre, and place the win32.dll at JavaSoft\JRE\1.3.1_06\bin, that properties file place at JavaSoft\JRE\1.3.1_06\lib, comm.jar at JavaSoft\JRE\1.3.1_06\lib\ext\
    and in ur code try to use it to open ur com port
    public String test() {
              String drivername = "com.sun.comm.Win32Driver";
              try
                   CommDriver driver = (CommDriver) Class.forName(drivername).newInstance(); driver.initialize();
              catch (Throwable th)
                   {* Discard it */}
              drivername = "javax.comm.*";
              try
                   CommDriver driver = (CommDriver) Class.forName(drivername).newInstance(); driver.initialize();
              catch (Throwable th)
                   {* Discard it */}
    portList = CommPortIdentifier.getPortIdentifiers();
    while (portList.hasMoreElements()) {
    portId = (CommPortIdentifier) portList.nextElement();
    if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    if (portId.getName().equals("COM2")) {
    //if (portId.getName().equals("/dev/term/a")) {
    try {
    serialPort = (SerialPort)
    portId.open("SimpleWriteApp", 2000);
    } catch (PortInUseException e) {}
    try {
    outputStream = serialPort.getOutputStream();
    } catch (IOException e) {}
    try {
    serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {}
                             int i=0;
                             while(true)
         try {
                                       messageString="hi";
                                       System.out.println(i++);
         outputStream.write(messageString.getBytes());
         } catch (IOException e)
                                       System.out.println(e);
                                       messageString=String.valueOf(e);
              return messageString;
    and yet u need to signed the applet
    1.     Compile the applet
    2.     Create a JAR file
    3.     Generate Keys
    4.     Sign the JAR file
    5.     Export the Public Key Certificate
    6.     Import the Certificate as a Trusted Certificate
    7.     Create the policy file
    8.     Run the applet
    Susan
    Susan bundles the applet executable in a JAR file, signs the JAR file, and exports the public key certificate.
    1.     Compile the Applet
    In her working directory, Susan uses the javac command to compile the SignedAppletDemo.java class. The output from the javac command is the SignedAppletDemo.class.
    javac SignedAppletDemo.java
    2.     Make a JAR File
    Susan then makes the compiled SignedAppletDemo.class file into a JAR file. The -cvf option to the jar command creates a new archive (c), using verbose mode (v), and specifies the archive file name (f). The archive file name is SignedApplet.jar.
    jar cvf SignedApplet.jar SignedAppletDemo.class
    3.     Generate Keys
    Susan creates a keystore database named susanstore that has an entry for a newly generated public and private key pair with the public key in a certificate. A JAR file is signed with the private key of the creator of the JAR file and the signature is verified by the recipient of the JAR file with the public key in the pair. The certificate is a statement from the owner of the private key that the public key in the pair has a particular value so the person using the public key can be assured the public key is authentic. Public and private keys must already exist in the keystore database before jarsigner can be used to sign or verify the signature on a JAR file.
    In her working directory, Susan creates a keystore database and generates the keys:
    keytool -genkey -alias signFiles -keystore susanstore -keypass kpi135 -dname "cn=jones" -storepass ab987c
    This keytool -genkey command invocation generates a key pair that is identified by the alias signFiles. Subsequent keytool command invocations use this alias and the key password (-keypass kpi135) to access the private key in the generated pair.
    The generated key pair is stored in a keystore database called susanstore (-keystore susanstore) in the current directory, and accessed with the susanstore password (-storepass ab987c).
    The -dname "cn=jones" option specifies an X.500 Distinguished Name with a commonName (cn) value. X.500 Distinguished Names identify entities for X.509 certificates.
    You can view all keytool options and parameters by typing:
    keytool -help
    4.     Sign the JAR File
    JAR Signer is a command line tool for signing and verifying the signature on JAR files. In her working directory, Susan uses jarsigner to make a signed copy of the SignedApplet.jar file.
    jarsigner -keystore susanstore -storepass ab987c -keypass kpi135 -signedjar SSignedApplet.jar SignedApplet.jar signFiles
    The -storepass ab987c and -keystore susanstore options specify the keystore database and password where the private key for signing the JAR file is stored. The -keypass kpi135 option is the password to the private key, SSignedApplet.jar is the name of the signed JAR file, and signFiles is the alias to the private key. jarsigner extracts the certificate from the keystore whose entry is signFiles and attaches it to the generated signature of the signed JAR file.
    5.     Export the Public Key Certificate
    The public key certificate is sent with the JAR file to the whoever is going to use the applet. That person uses the certificate to authenticate the signature on the JAR file. To send a certificate, you have to first export it.
    The -storepass ab987c and -keystore susanstore options specify the keystore database and password where the private key for signing the JAR file is stored. The -keypass kpi135 option is the password to the private key, SSignedApplet.jar is the name of the signed JAR file, and signFiles is the alias to the private key. jarsigner extracts the certificate from the keystore whose entry is signFiles and attaches it to the generated signature of the signed JAR file.
    5: Export the Public Key Certificate
    The public key certificate is sent with the JAR file to the whoever is going to use the applet. That person uses the certificate to authenticate the signature on the JAR file. To send a certificate, you have to first export it.
    In her working directory, Susan uses keytool to copy the certificate from susanstore to a file named SusanJones.cer as follows:
    keytool -export -keystore susanstore -storepass ab987c -alias signFiles -file SusanJones.cer
    Ray
    Ray receives the JAR file from Susan, imports the certificate, creates a policy file granting the applet access, and runs the applet.
    6.     Import Certificate as a Trusted Certificate
    Ray has received SSignedApplet.jar and SusanJones.cer from Susan. He puts them in his home directory. Ray must now create a keystore database (raystore) and import the certificate into it. Ray uses keytool in his home directory /home/ray to import the certificate:
    keytool -import -alias susan -file SusanJones.cer -keystore raystore -storepass abcdefgh
    7.     Create the Policy File
    The policy file grants the SSignedApplet.jar file signed by the alias susan permission to create newfile (and no other file) in the user's home directory.
    Ray creates the policy file in his home directory using either policytool or an ASCII editor.
    keystore "/home/ray/raystore";
    // A sample policy file that lets a JavaTM program
    // create newfile in user's home directory
    // Satya N Dodda
    grant SignedBy "susan"
         permission java.security.AllPermission;
    8.     Run the Applet in Applet Viewer
    Applet Viewer connects to the HTML documents and resources specified in the call to appletviewer, and displays the applet in its own window. To run the example, Ray copies the signed JAR file and HTML file to /home/aURL/public_html and invokes Applet viewer from his home directory as follows:
    Html code :
    </body>
    </html>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="600" height="400" align="middle"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,1,2">
    <PARAM NAME="code" VALUE="SignedAppletDemo.class">
    <PARAM NAME="archive" VALUE="SSignedApplet.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    </OBJECT>
    </body>
    </html>
    appletviewer -J-Djava.security.policy=Write.jp
    http://aURL.com/SignedApplet.html
    Note: Type everything on one line and put a space after Write.jp
    The -J-Djava.security.policy=Write.jp option tells Applet Viewer to run the applet referenced in the SignedApplet.html file with the Write.jp policy file.
    Note: The Policy file can be stored on a server and specified in the appletviewer invocation as a URL.
    9.     Run the Applet in Browser
    Download JRE 1.3 from Javasoft
    good luck! [email protected]
    i already give u many tips, i use 2 weeks to try this to success, hopw that u understand that, a result of success is not important, the process of how to get things done is most usefull!

  • Why is my com port missing from my list of VISA devices

    Hello all,
    I have an Agilent E5810 ethernet to GPIB gateway. I installed Agilent IO library and chose to make Agilent my primary VISA because otherwise the devices on the gateway didn't show up in my VISA device list. Now all of my GPIB devices show up (local and via gateway) but my com port is missing. The com port is actually a USB to serial adapter. It shows up in device manager as CP2101 uart interface COM6. I reloaded NI-VISA but COM6 still oesn't show up. I reloaded Agilent IO and unchecked "make Agelent primary VISA" but that didn't fix it. It is also missing from MAX. I added COM6 ASRL6 but VISA doesn't see it
    I think the root of my problem is getting Agilent VISA and NI VISA to work together but why won't my com port show up?
    Thanks alot

    Hello,
    Can you please follow the steps outlined in the following forum post and reinstall NI-VISA and Agilent VISA?
    Problem with NI VISA and Agilent VISA
    If the problem still exists, please call 1-866-275-6964 and reference your call to your service request number (1194753).
    Thank you,
    Simran K
    National Instruments
    Applications Engineer

  • Reading from COM port, in forms 6i.

    Hi All,
    Can anybody help me how to read COM port, capture from comport in forms 6i, we have weigh bridge system and they have supplies MS access bases application, i would like to use forms based own application instead that.
    please anybody help me..
    thanks in advance

    [http://www.java2s.com/Code/Java/Development-Class/COM-Port.htm]

Maybe you are looking for

  • How to call a report without BI Publisher-authentication

    Could we call a report without BI Publisher-authentication ? Our infrastructure needs some reports that can be call with no authentication. Is there a configuration to do this? Any help will be really appreciated. Thanks

  • Core Duo overheating

    I have had a Core Duo mini for about 5 months. Two weeks ago I installed 2 gb of RAM and everything seemed fine. However, two days ago I noticed the computer was spontaneously rebooting. I checked the CPU temperature and both processors were running

  • How do i install cs5 upgrade version from cs2?

    hi unsure whether this new win8 machine is 32 bit or 64 bit not sure if my upgrade from cs2 to cs5 purchase is 32 bit or 64 bit

  • User budget in process controlled workflow

    Hi, Is it possible to use the 'user budget' option with the new process controlled WF ? If it is possible what are the necessary customization that need to be maintained ? Thanks

  • AAM has stopped working (Win 7 (64bit) preventing installation of PSE 13 trial

    I have been trying to install the trial version of PSE13 without success. The download appears ok and I can get up to "Sign In Required". If I proceed, Window 7 (64bit) indicates that AAM has stopped working and will close the program. No error messa