This discussion is archived
1 Reply Latest reply: Dec 24, 2007 4:09 AM by 843804 RSS

Upgrade From the Microsoft VM to Java Sun JRE

843804 Newbie
Currently Being Moderated
Hello,
I am trying to upgrade my applet to java sun 1.5.

I am using this tutorials:
http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/

the problem is,
when I run the applet local, I am not calling to the JAR file. instead I am using the class files. (only when I release an update I create a JAR file).

so why am I getting this error?
I understand that this error occur when the jar file is unsigned.
java.lang.ExceptionInInitializerError
     at il.co.d.coreapplet.FormEditor.FormQuestionnaire.init(FormQuestionnaire.java:71)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
     at java.lang.System.getProperty(Unknown Source)
     at il.co.d.coreapplet.Constants.<clinit>(Constants.java:72)
     ... 3 more
java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
     at java.lang.System.getProperties(Unknown Source)
     at il.co.d.coreapplet.Manager.init(Manager.java:103)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Thanks

Edited by: MadUser on Dec 16, 2007 5:56 AM
  • 1. Re: Upgrade From the Microsoft VM to Java Sun JRE
    843804 Newbie
    Currently Being Moderated
    Well I found the problem
    I was using <applet> tag in the html instead of <object>.

    but now I get another problem.
    I had some issues with the 1.5 jre so I downgraded to 1.4.2_16.
    I get 2 wired errors now.
    this is one:
    java.lang.NoClassDefFoundError: il/co/d/coreapplet/Fonts/FontReader
    
         at il.co.d.coreapplet.ConfigManager.<init>(ConfigManager.java:33)
    
         at il.co.d.coreapplet.Manager.init(Manager.java:113)
    
         at sun.applet.AppletPanel.run(Unknown Source)
    
         at java.lang.Thread.run(Unknown Source)
    There is no problem with the FontReader class. the path and java home are correct.
    I dont know what does he want from me.

    the other error is: Server returned HTTP response code: 403 for URL

    I didn't get this error on microsoft VM and not on JVM 1.5

    when I press 'S' at the java console, I can still see some jre1.5 properties. maybe it related somehow....

    Edited by: MadUser on Dec 24, 2007 4:07 AM