Java 1.1.5 applets don't run in Netscape 6.1/6.2

I try to access a website with java-applets.
With Netscape 4.7x it's no problem. Java-Console says "Java 1.1.5". No java-plugin's installed.
With IE 5.x and 6 no problem.
Java Virtual Machine Build 3234 is installad
Systems NT4.0 and Win2000
With Netscape 6.1 and 6.2 those applets don't run (there is only a grey-area open where the applet should build up the content). I've seen there are couple of java-plugin's loaded in the Netscape 6 (NPOJI600.dll, NPJava130_01.dll, NPJava130_01a.dll, NPJava130_01b.dll and NPJava130_01c). As an idea I temporarly deleted them in the hope it would use JVM, as I suppose happens in Netscape 4.7x, were no java-plugin's are installed. But unfortunately it doesn't work either. It looks like Netscape 6.x can not refer to those java-components that the Netscape 4.7x uses.
Can I get somewhere the missing old plugin (1.1.5) or is there another way to make it work?
My search in java.sun.com told me that there seems to be no java 1.1.5 at all, so how can
Netscape talk about 1.1.5?
Thanks for any help....
Peter
PS) I have no experience in Java at all.

Hello,
If you look at the release notes of Netscape they mention that Netscape 6.x will not run Java codes unless there 1.3.0_01 and above
Sometime you wonder where they get these ideas, that means that if you have an old applet it won't run with the new browser. I guess they never heard about backward compatibility
Yanick

Similar Messages

  • Applets don't  run

    i write a program with applets but i coundn't run it. it gives an error " Exception in thread "main" java.lang.NoClassDefFoundError: welcomeApplet2 " why? i also write its html page

    i write a program with applets but i coundn't run it.
    it gives an error " Exception in thread "main"
    java.lang.NoClassDefFoundError: welcomeApplet2 " why?
    i also write its html pageThat sounds like you have some errors in your html page. What does it look like? (Do only post the applet part)
    Kaj

  • Swing based applets don't run in browser !!!

    whenever i run a swing based applet from the browser (IE 5), the applet is not displayed in it - status bar shows that the class file was not found
    so please tell me the solution
    thanx in advance!

    You just have to download Sun JVM to run swing JApplet in your browser(IE).
    get it at the following address:
    Just follow the link, and download dialog will be appeared just save the file to you hard drive, and install the software.
    The file name will be : "j2re-1_4_1_02-windows-i586-i.exe"
    http://java.sun.com/webapps/download/AutoDL?BundleId=7544
    after successfull installation you'll find the new plugin
    "java2 v1.4.1_02 for<applets>"
    in Tools>InternetOptions>Advance
    you have to check it(if unchecked) to enable the JApplet to be loaded in your browser.
    Another new option you'll find in your Tools menu "Sun Java Console". From it you can find what exceptions are thrown while the applet is loaded

  • URGENT: Beginner - Signed Applet won't run within Netscape

    Hi all,
    sorry for asking a question you've probably answered before, but I didn't find appropriate material
    while searching this forum.
    Im using Netscape 4.77 on Windows. My approach is to create a signed applet out of one class file, that actually reads and writes files and requires one System Property to be known.
    Therefore i downloaded the Netscape Signing Tool, created a test certificate and installed it in the Communicators certificate database. Then I signed my class file as I was told on Netscapes websites. Everything worked fine and the applet displayed in the browser. Unfortunately the method bound to a button, that does the critical work, doesn't have any effect at all.
    Can you please tell me where I can turn on the equivalent to Microsofts Java Console for IE in Netscape ? I don't even get error messages.
    Next I read some stuff about the Netscape Capability classes and used them as shown in my Applet. I set the classpath correct and everything compiled fine. But still the critical applet method doesn't do a thing at all. What went wrong ?
    Did i put the netscape code at the wrong place (i.e. inside the actionPerformed() method) ?
    Or would you suggest another way to get rid of the security restrictions which is quite more popular these days. All the docs didn't help me out so far.
    Please help me.
    Any help is highly appreciated.
    cu
    oliver

    If you want your Java Applet to use the most current
    functionality then you should deploy your Applet
    with the Java Plugin that will work in Netscape or
    Windows IE.
    Once the Java Plugin is install launch the Java Plugin Control Panel and check the Java console option. This will launch the Java console everytime the Java Plugin is invoked. Reference the following url on how to use
    the Java Plugin:
    http://java.sun.com:80/products/plugin/1.3/docs/index.docs.html
    Even though JDK1.4 is not officially shipping the
    Java Plugin 1.4 documents on Security are fairly
    good. Check out :
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/contents.html
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/rsa_how.html
    regards,
    atsSun
    Sun Microsystems

  • Firefox ( =1.0.5) + Java Plugin (1.4.2_08) can't run applets

    Hi
    I'm using gentoo linux and i've been using firefox with the sun java plugin for some time without any problems. however, in the last few weeks there suddenly appeared the following problem with the java plugin:
    Whenever I try to open a page with an applet, there is the java logo, and after some time, there's a red "X" in the place of the applet. When I subsequently open the java console, I always get the same error message (Encyclo.class contains the applet):
    java.lang.ClassNotFoundException: Encyclo.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1879)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
         at sun.applet.AppletPanel.run(AppletPanel.java:299)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.net.ConnectException: Invalid argument
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:137)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(HttpClient.java:106)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.plugin.net.protocol.http.HttpClient.<init>(HttpClient.java:41)
         at sun.plugin.net.protocol.http.HttpClient.New(HttpClient.java:62)
         at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(HttpURLConnection.java:101)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:158)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:393)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:263)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
         ... 9 more
    I have no Idea what could be wrong. Please help.

    One of my colleagues found a workaround.
    This problem is maybe related to selinux.
    If you disable selinux, applets will work well.
    [ To disable selinux find the line beginning with "SELINUX="
    in your /etc/sysconfig/selinux file and change it to "SELINUX=disabled".
    And then you perhaps have to reboot. ]
    HTH:
    B�lint

  • Please help -- Why the applet doesn't run with jre1.4.1_01?

    Hi,
    I have an applet embedded in a remote-server page. It can be loading from the server and running in the local computer with Jre1.3.1. After I uninstalled jre1.3.1 and installed JRE1.4.1_01. My applet doesn't run. Here is the message from Java Consol:
    java.lang.NullPointerException
    at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source)
    at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source)
    at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source)
    at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.cache.Cache.privileged(Unknown Source)
    at sun.plugin.cache.CachedFileLoader.download(Unknown Source)
    at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
    at sun.plugin.cache.FileCache.get(Unknown Source)
    at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
    at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1197)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:247)
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:250)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
    at sun.applet.AppletPanel.run(AppletPanel.java:292)
    at java.lang.Thread.run(Thread.java:536)
    I copy the my html file which has this applet built-in to my local computer. The webpage can be openned and the applet running fine even with jre1.4.1. Why it didn't run with Jre1.4.1 and it did run with jre 1.3.1 when loading remotely? Could someone tell me what the above messages mean? Is this a bug from Jre1.4.1_01?
    I have running server at 206.29.25.29. and select "read sensor". Jre1.4.1_01 will not let the applet run, but jre1.3.1 does.
    Is there any body know about this issue?
    Thanks,
    Kunlun

    In fact, I have run many tests and the only failures are when the plugin is 1.4.2 and the app server is on Unix:
    Build      Deploy      Build JDK     PlugIn JDK     App Server JDK     Result
    Win     Win     1.4.2_02     1.4.2          1.4.2          Success
    Win     Win     1.4.2          1.4.2          1.4.2          Success
    Win     Win     1.4.1_02     1.4.2          1.4.2          Success
    Win     Win     1.4.2          1.4.0          1.4.2          Success
    Win     Win     1.4.2          1.4.1          1.4.2          Success
    Win     Win     1.4.2          1.4.2          1.4.2          Success
    Unix     Win     1.4.2          1.4.2          1.4.2          Success
    Unix     Win     1.4.2          1.4.2          1.4.1_02     Success
    Unix     Win     1.4.2          1.4.2          1.4.0          Success
    Unix     Unix     1.4.2          1.4.0          1.4.0          Success
    Unix     Unix     1.4.2          1.4.1          1.4.0          Success
    Unix     Unix     1.4.2          1.4.2          1.4.0          Failure
    Win     Unix     1.4.2          1.4.0          1.4.0          Success
    Win     Unix     1.4.2          1.4.1          1.4.0          Success
    Win     Unix     1.4.2          1.4.2          1.4.0          Failure

  • Applets which don't run

    Hello,
    I have any applets which run with Appletviewer or the development tool "Forte for Java" but they don't run on the web browser whereas I have others applets (with almost the same code) which run in the both cases.
    In fact, on the web browser, you can see the static components (buttons, choices...) but these ones have no effects.
    And, the access to the database seems not to run.
    I think it's an problem which doesn't come from the code but I don't know what.
    Can you help me ?
    Thank you.

    Browsers have in-built support for JDK 1.1 If you are using packages not suported by JDK1.1 for example Swing, the applets won't work without downloading a plugin. The first thing you should do is check if you are using packages not suported by the JDK1.1 Also check if your browser does use a plugin.
    You can download the plugin from this site:
    http://java.sun.com/getjava/download.html
    When you are downloading the plugin you can specify that it is used by your browser by default. This means that you do not have to modify your HTML file.
    The following is relevant if you intend to put your applet up on the web:
    The user may not have their browser set up to automatically use a plugin. This means that you may need to convert your HTML file so that the plugin is used to run the applet and it works corrrectly for different browsers. Also if the user does not have the correct plugin your web page prompts them to download it.
    This site explains how the HTML code is modified:
    http://java.sun.com/products/plugin/1.2/docs/tags.html
    There is a way to do this conversion process automatically - by using the HTMLConverter in the bin directory of your JDK. The following site gives directions on how to use it:
    http://java.sun.com/products/plugin/1.3/docs/htmlconv_01.html
    If you are putting the applet up on the web maybe you should consider rewriting it so that it only uses packages supported by the JDK1.1 That way the user will automatically be able to view the applet without downloading any plugin and you will not need to convert the HTML file.
    I hope this helps,
    RC

  • In Firefox 3.6.3 for Mac OSX JAVA-applets don't appear

    In Firefox 3.6.3 for Mac OSX JAVA-applets don't appear, although JAVA is installed. How to solve this problem?
    http://www.kleinhaneveld.nl/genealogie/index.html (under Dynamic Family Tree)
    == This happened ==
    Every time Firefox opened
    == after upgrading to FF 3.6

    You need to use the command line switch -safe-mode in the Terminal to start Firefox 3.6 versions in Safe Mode.
    *https://support.mozilla.org/kb/Safe+Mode
    *http://kb.mozillazine.org/Safe_Mode
    The last Firefox version that runs on Mac OS X 10.4 is Firefox 3.6.28.
    For an unofficial Firefox 17.0.5 ESR compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
    *http://www.floodgap.com/software/tenfourfox/
    *http://www.macupdate.com/app/mac/37761/tenfourfox
    *http://code.google.com/p/tenfourfox//wiki/ReleaseNotes1705
    *http://code.google.com/p/tenfourfox//wiki/PluginsNoLongerSupported
    *http://code.google.com/p/tenfourfox//wiki/QuickTimeEnabler
    *http://code.google.com/p/tenfourfox//wiki/AAATheFAQ

  • Java Applets do not run when UAC is enabled on Windows 7

    HI,
    I'm deploying Java 6.0_26-b03+ on Windows 7 and experiencing following problem:
    Java applets do not run as standard domain users in Internet Explorer 9 on Windows 7 when UAC is enabled (i.E. http://www.java.com/de/download/installed.jsp). When logged on as Administrator or start IE9 as Administrator java applets do run.
    If I diable UAC an log on as normal user then applets do run. Applets then still run if UAC is re-enabled again. It seems that UAC needs to be disabled for the Java Plug-In to register something in user context (assumption). If this registration happended Java applets do run also for standard Windows 7 users if UAC is enabled.
    Since we're planning a corporate Windows 7 rollout (>800PCs) we cannot do this manually on every computer. Ther must be any solution for this problem.
    Does anybody have the same problem and has already found a solution?
    This is the content of the error log file generated when a standard domain user tries to run http://www.java.com/de/download/installed.jsp
    +#+
    +# A fatal error has been detected by the Java Runtime Environment:+
    +#+
    +# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x776677b2, pid=1320, tid=2380+
    +#+
    +# JRE version: 6.0_26-b03+
    +# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )+
    +# Problematic frame:+
    +# C [ntdll.dll+0x477b2]+
    +#+
    +# If you would like to submit a bug report, please visit:+
    +# http://java.sun.com/webapps/bugreport/crash.jsp+
    +# The crash happened outside the Java Virtual Machine in native code.+
    +# See problematic frame for where to report the bug.+
    +#+
    ---------------  T H R E A D  ---------------
    +Current thread (0x01da8c00):  JavaThread "main" [_thread_in_native, id=2380, stack(0x02420000,0x02620000)]+
    siginfo: ExceptionCode=0xc0000005, writing address 0x00000024
    Registers:
    EAX=0x00000024, EBX=0x33827b58, ECX=0x7c38b4e8, EDX=0x7efeff3d
    ESP=0x02616090, EBP=0x026160a4, ESI=0x00000024, EDI=0x00000020
    EIP=0x776677b2, EFLAGS=0x00250212
    Top of Stack: (sp=0x02616090)
    +0x02616090: 02616236 00000000 7c34214f 01da6bc8+
    +0x026160a0: 026160e4 026160ec 7c34f639 00000020+
    +0x026160b0: 7c36b73f 00000000 6d1db83c 02616236+
    +0x026160c0: 00000000 33827b58 7c38b548 026160b8+
    +0x026160d0: 0000000d 026160bc 02615b4c 026165e0+
    +0x026160e0: 7c34240d 7c382198 ffffffff 02616454+
    +0x026160f0: 6d1d3b45 6d1db83c 00000000 02616210+
    +0x02616100: 6d1db84c 01da8c00 33827b58 00000000+
    Instructions: (pc=0x776677b2)
    +0x77667792: 33 c0 5e 5d c2 04 00 90 90 90 90 90 90 90 8b ff+
    +0x776677a2: 55 8b ec 83 ec 0c 56 57 8b 7d 08 8d 77 04 8b c6+
    +0x776677b2: f0 0f ba 30 00 0f 83 eb e2 00 00 64 a1 18 00 00+
    +0x776677c2: 00 8b 48 24 89 4f 0c c7 47 08 01 00 00 00 5f 33+
    Register to memory mapping:
    EAX=0x00000024 is an unknown value
    EBX=0x33827b58 is an oop
    +{method}+
    +- klass: {other class}+
    ECX=0x7c38b4e8 is an unknown value
    EDX=0x7efeff3d is an unknown value
    ESP=0x02616090 is pointing into the stack for thread: 0x01da8c00
    EBP=0x026160a4 is pointing into the stack for thread: 0x01da8c00
    ESI=0x00000024 is an unknown value
    EDI=0x00000020 is an unknown value
    Stack: [0x02420000,0x02620000],  sp=0x02616090,  free space=2008k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    +C  [ntdll.dll+0x477b2] RtlEnterCriticalSection+0x12+
    +C  [MSVCR71.dll+0xf639] _crtGetLocaleInfoW+0x2b1+
    +C  [deploy.dll+0x3b45] Java_com_sun_deploy_config_WinConfig_installShortcut+0x235+
    j  com.sun.deploy.config.Config.versionUpdateCheck()V392+
    j  com.sun.deploy.config.Config.initialize()Z256+
    j  com.sun.deploy.config.Config.<clinit>()V1933+
    v  ~StubRoutines::call_stub
    +V  [jvm.dll+0xfae4b]+
    +V  [jvm.dll+0x18c531]+
    +V  [jvm.dll+0xfaecd]+
    +V  [jvm.dll+0x7deb7]+
    +V  [jvm.dll+0x7ed1e]+
    +V  [jvm.dll+0x7f009]+
    +V  [jvm.dll+0x7f126]+
    +V  [jvm.dll+0x4d719]+
    +V  [jvm.dll+0x4de7f]+
    +V  [jvm.dll+0x4e050]+
    +V  [jvm.dll+0x4ac51]+
    j  sun.plugin2.main.server.JVMManager.processJREInfo()V32+
    j  sun.plugin2.main.server.JVMManager.<init>()V86+
    j  sun.plugin2.main.server.JVMManager.<clinit>()V72+
    v  ~StubRoutines::call_stub
    +V  [jvm.dll+0xfae4b]+
    +V  [jvm.dll+0x18c531]+
    +V  [jvm.dll+0xfaecd]+
    +V  [jvm.dll+0x7deb7]+
    +V  [jvm.dll+0x7ed1e]+
    +V  [jvm.dll+0x7f009]+
    +V  [jvm.dll+0x7f126]+
    +V  [jvm.dll+0x4d719]+
    +V  [jvm.dll+0x4de7f]+
    +V  [jvm.dll+0x4e050]+
    +V  [jvm.dll+0x4ac51]+
    j  sun.plugin2.main.server.IExplorerPlugin.<clinit>()V41+
    v  ~StubRoutines::call_stub
    +V  [jvm.dll+0xfae4b]+
    +V  [jvm.dll+0x18c531]+
    +V  [jvm.dll+0xfaecd]+
    +V  [jvm.dll+0x7deb7]+
    +V  [jvm.dll+0x7ed1e]+
    +V  [jvm.dll+0x7f009]+
    +V  [jvm.dll+0x7f126]+
    +V  [jvm.dll+0xb2ae9]+
    +V  [jvm.dll+0x94be8]+
    +C  [jp2iexp.dll+0x25b6] Java_sun_plugin2_main_server_WindowsHelper_uninstallHook+0xeaa+
    +C  [jp2iexp.dll+0x3b6b] Java_sun_plugin2_main_server_IExplorerPlugin_fillInExceptionInfo0+0x7ee+
    +C  [jp2iexp.dll+0xd2a4] DllGetClassObject+0x57c6+
    +C  [MSHTML.dll+0x156e41] RunHTMLApplication+0x1a9a+
    +C  [MSHTML.dll+0x156c95] RunHTMLApplication+0x18ee+
    +C  [MSHTML.dll+0x156cc3] RunHTMLApplication+0x191c+
    +C  [MSHTML.dll+0x156948] RunHTMLApplication+0x15a1+
    +C  [MSHTML.dll+0x15675f] RunHTMLApplication+0x13b8+
    +C  [MSHTML.dll+0x1563bf] RunHTMLApplication+0x1018+
    +C  [MSHTML.dll+0x15602e] RunHTMLApplication+0xc87+
    +C  [MSHTML.dll+0x99a35] MatchExactGetIDsOfNames+0x5eed7+
    +C  [MSHTML.dll+0x262624] CTravelLog_CreateInstance+0x1edcf+
    +C  [MSHTML.dll+0x29dc6f] DllGetClassObject+0x23eb1+
    +C  [MSHTML.dll+0x267e1c] CTravelLog_CreateInstance+0x245c7+
    +C  [MSHTML.dll+0x267d48] CTravelLog_CreateInstance+0x244f3+
    +C  [MSHTML.dll+0x267cad] CTravelLog_CreateInstance+0x24458+
    +C  [MSHTML.dll+0x267c0d] CTravelLog_CreateInstance+0x243b8+
    +C  [MSHTML.dll+0x24b83d] CTravelLog_CreateInstance+0x7fe8+
    +C  [MSHTML.dll+0x3ea169] DllGetClassObject+0x1703ab+
    +C  [MSHTML.dll+0x4095e0] DllGetClassObject+0x18f822+
    +C  [USER32.dll+0x1c4e7] gapfnScSendMessage+0x1cf+
    +C  [USER32.dll+0x1c5e7] gapfnScSendMessage+0x2cf+
    +C  [USER32.dll+0x1cc19] gapfnScSendMessage+0x901+
    +C  [USER32.dll+0x1cc70] DispatchMessageW+0xf+
    +C  [IEFRAME.dll+0xf1b83] Ordinal234+0x6520+
    +C  [IEFRAME.dll+0x111ac6] Ordinal224+0x17ff9+
    +C  [iertutil.dll+0x140150] Ordinal59+0x8b+
    +C  [IEFRAME.dll+0xffe03] Ordinal224+0x6336+
    +C  [kernel32.dll+0x53c45] BaseThreadInitThunk+0x12+
    +C  [ntdll.dll+0x637f5] RtlInitializeExceptionChain+0xef+
    +C  [ntdll.dll+0x637c8] RtlInitializeExceptionChain+0xc2+
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.sun.deploy.config.WinConfig.getBrowserPath()Ljava/lang/String;0+
    j  com.sun.deploy.config.Config.versionUpdateCheck()V392+
    j  com.sun.deploy.config.Config.initialize()Z256+
    j  com.sun.deploy.config.Config.<clinit>()V1933+
    v  ~StubRoutines::call_stub
    j  sun.plugin2.main.server.JVMManager.processJREInfo()V32+
    j  sun.plugin2.main.server.JVMManager.<init>()V86+
    j  sun.plugin2.main.server.JVMManager.<clinit>()V72+
    v  ~StubRoutines::call_stub
    j  sun.plugin2.main.server.IExplorerPlugin.<clinit>()V41+
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
    +0x03226400 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=1796, stack(0x0a8c0000,0x0a9c0000)]+
    +0x031e2c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2144, stack(0x0a7b0000,0x0a8b0000)]+
    +0x031d3800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=2036, stack(0x050d0000,0x051d0000)]+
    +0x031d2800 JavaThread "Attach Listener" daemon [_thread_blocked, id=1268, stack(0x0a5b0000,0x0a6b0000)]+
    +0x031d0800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1120, stack(0x0a4b0000,0x0a5b0000)]+
    +0x031ca000 JavaThread "Finalizer" daemon [_thread_blocked, id=1140, stack(0x09fc0000,0x0a0c0000)]+
    +0x031c8c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2500, stack(0x0a380000,0x0a480000)]+
    +=>0x01da8c00 JavaThread "main" [_thread_in_native, id=2380, stack(0x02420000,0x02620000)]+
    Other Threads:
    +0x0318c800 VMThread [stack: 0x0a1c0000,0x0a2c0000] [id=2672]+
    +0x031f2000 WatcherThread [stack: 0x0a9c0000,0x0aac0000] [id=2712]+
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 4928K, used 281K [0x317e0000, 0x31d30000, 0x32280000)
    eden space 4416K,   6% used [0x317e0000, 0x31826480, 0x31c30000)
    from space 512K,   0% used [0x31c30000, 0x31c30000, 0x31cb0000)
    to   space 512K,   0% used [0x31cb0000, 0x31cb0000, 0x31d30000)
    tenured generation   total 10944K, used 0K [0x32280000, 0x32d30000, 0x337e0000)
    the space 10944K,   0% used [0x32280000, 0x32280000, 0x32280200, 0x32d30000)
    compacting perm gen  total 12288K, used 371K [0x337e0000, 0x343e0000, 0x377e0000)
    the space 12288K,   3% used [0x337e0000, 0x3383cc08, 0x3383ce00, 0x343e0000)
    ro space 10240K,  51% used [0x377e0000, 0x37d0dff8, 0x37d0e000, 0x381e0000)
    rw space 12288K,  55% used [0x381e0000, 0x3887c208, 0x3887c400, 0x38de0000)
    Code Cache  [0x0c910000, 0x0c980000, 0x0e910000)
    total_blobs=147 nmethods=5 adapters=79 free_code_cache=33098880 largest_free_block=0
    Dynamic libraries:
    +0x00a40000 - 0x00af8000      C:\Program Files\Internet Explorer\iexplore.exe+
    +0x77620000 - 0x7775c000      C:\Windows\SYSTEM32\ntdll.dll+
    +0x75f50000 - 0x76024000      C:\Windows\system32\kernel32.dll+
    +0x75a70000 - 0x75aba000      C:\Windows\system32\KERNELBASE.dll+
    +0x777a0000 - 0x77840000      C:\Windows\system32\ADVAPI32.dll+
    +0x75d60000 - 0x75e0c000      C:\Windows\system32\msvcrt.dll+
    +0x75ac0000 - 0x75ad9000      C:\Windows\SYSTEM32\sechost.dll+
    +0x764a0000 - 0x76541000      C:\Windows\system32\RPCRT4.dll+
    +0x77250000 - 0x77319000      C:\Windows\system32\USER32.dll+
    +0x76450000 - 0x7649e000      C:\Windows\system32\GDI32.dll+
    +0x77840000 - 0x7784a000      C:\Windows\system32\LPK.dll+
    +0x76550000 - 0x765ed000      C:\Windows\system32\USP10.dll+
    +0x75ee0000 - 0x75f37000      C:\Windows\system32\SHLWAPI.dll+
    +0x765f0000 - 0x7723a000      C:\Windows\system32\SHELL32.dll+
    +0x774c0000 - 0x7761c000      C:\Windows\system32\ole32.dll+
    +0x75c20000 - 0x75d30000      C:\Windows\system32\urlmon.dll+
    +0x76080000 - 0x7610f000      C:\Windows\system32\OLEAUT32.dll+
    +0x76110000 - 0x762c6000      C:\Windows\system32\iertutil.dll+
    +0x762d0000 - 0x763ea000      C:\Windows\system32\WININET.dll+
    +0x75f40000 - 0x75f43000      C:\Windows\system32\Normaliz.dll+
    +0x75d40000 - 0x75d5f000      C:\Windows\system32\IMM32.DLL+
    +0x75e10000 - 0x75edc000      C:\Windows\system32\MSCTF.dll+
    +0x66850000 - 0x67195000      C:\Windows\system32\IEFRAME.dll+
    +0x77240000 - 0x77245000      C:\Windows\system32\PSAPI.DLL+
    +0x73850000 - 0x7388c000      C:\Windows\system32\OLEACC.dll+
    +0x743d0000 - 0x7456e000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll+
    +0x75b70000 - 0x75beb000      C:\Windows\system32\comdlg32.dll+
    +0x73600000 - 0x73631000      C:\Program Files\Internet Explorer\IEShims.dll+
    +0x75740000 - 0x7574c000      C:\Windows\system32\CRYPTBASE.dll+
    +0x75590000 - 0x75598000      C:\Windows\system32\Secur32.dll+
    +0x756d0000 - 0x756eb000      C:\Windows\system32\SSPICLI.DLL+
    +0x757c0000 - 0x757cb000      C:\Windows\system32\profapi.dll+
    +0x77760000 - 0x77795000      C:\Windows\system32\WS2_32.dll+
    +0x75d30000 - 0x75d36000      C:\Windows\system32\NSI.dll+
    +0x750a0000 - 0x750e4000      C:\Windows\system32\dnsapi.DLL+
    +0x72fa0000 - 0x72fbc000      C:\Windows\system32\iphlpapi.DLL+
    +0x72f90000 - 0x72f97000      C:\Windows\system32\WINNSI.DLL+
    +0x757b0000 - 0x757be000      C:\Windows\system32\RpcRtRemote.dll+
    +0x63ef0000 - 0x64aa8000      C:\Windows\system32\MSHTML.dll+
    +0x74cb0000 - 0x74cb9000      C:\Windows\system32\VERSION.dll+
    +0x6f5f0000 - 0x6f6aa000      C:\Windows\system32\d2d1.dll+
    +0x6c8a0000 - 0x6c9aa000      C:\Windows\system32\DWrite.dll+
    +0x6d3c0000 - 0x6d443000      C:\Windows\system32\dxgi.dll+
    +0x739d0000 - 0x739e3000      C:\Windows\system32\dwmapi.dll+
    +0x75300000 - 0x75316000      C:\Windows\system32\CRYPTSP.dll+
    +0x758d0000 - 0x758fd000      C:\Windows\system32\WINTRUST.dll+
    +0x75950000 - 0x75a6d000      C:\Windows\system32\CRYPT32.dll+
    +0x75830000 - 0x7583c000      C:\Windows\system32\MSASN1.dll+
    +0x74b70000 - 0x74b91000      C:\Windows\system32\ntmarta.dll+
    +0x76030000 - 0x76075000      C:\Windows\system32\WLDAP32.dll+
    +0x75000000 - 0x7503b000      C:\Windows\system32\rsaenh.dll+
    +0x75ae0000 - 0x75b63000      C:\Windows\system32\CLBCatQ.DLL+
    +0x69240000 - 0x69272000      C:\Program Files\Internet Explorer\ieproxy.dll+
    +0x756f0000 - 0x7573c000      C:\Windows\system32\apphelp.dll+
    +0x74130000 - 0x74263000      C:\Windows\System32\msxml3.dll+
    +0x75750000 - 0x757af000      C:\Windows\system32\SXS.DLL+
    +0x73d90000 - 0x73d9b000      C:\Windows\system32\msimtf.dll+
    +0x6d390000 - 0x6d3bb000      C:\Windows\system32\msls31.dll+
    +0x77320000 - 0x774bd000      C:\Windows\system32\setupapi.dll+
    +0x75920000 - 0x75947000      C:\Windows\system32\CFGMGR32.dll+
    +0x75900000 - 0x75912000      C:\Windows\system32\DEVOBJ.dll+
    +0x73570000 - 0x7359c000      C:\Windows\system32\d3d10_1.dll+
    +0x734b0000 - 0x734ea000      C:\Windows\system32\d3d10_1core.dll+
    +0x6c770000 - 0x6c89c000      C:\Windows\system32\D3D10Warp.dll+
    +0x69760000 - 0x6978e000      C:\Windows\system32\MLANG.dll+
    +0x74970000 - 0x74a65000      C:\Windows\system32\PROPSYS.dll+
    +0x6ab00000 - 0x6ac02000      C:\Windows\system32\d3d10.dll+
    +0x73520000 - 0x73553000      C:\Windows\system32\d3d10core.dll+
    +0x73d40000 - 0x73d80000      C:\Windows\system32\UxTheme.dll+
    +0x73180000 - 0x731d2000      C:\Windows\system32\RASAPI32.dll+
    +0x73160000 - 0x73175000      C:\Windows\system32\rasman.dll+
    +0x73150000 - 0x7315d000      C:\Windows\system32\rtutils.dll+
    +0x6f6b0000 - 0x6f6b6000      C:\Windows\system32\sensapi.dll+
    +0x75190000 - 0x751cc000      C:\Windows\system32\mswsock.dll+
    +0x74d40000 - 0x74d45000      C:\Windows\System32\wshtcpip.dll+
    +0x747f0000 - 0x74815000      C:\Windows\system32\peerdist.dll+
    +0x74e00000 - 0x74e17000      C:\Windows\system32\USERENV.dll+
    +0x753f0000 - 0x7540b000      C:\Windows\system32\AUTHZ.dll+
    +0x747e0000 - 0x747f0000      C:\Windows\system32\NLAapi.dll+
    +0x72330000 - 0x72336000      C:\Windows\system32\rasadhlp.dll+
    +0x75180000 - 0x75186000      C:\Windows\System32\wship6.dll+
    +0x72b90000 - 0x72bc8000      C:\Windows\System32\fwpuclnt.dll+
    +0x695a0000 - 0x6975b000      C:\Windows\System32\jscript9.dll+
    +0x72de0000 - 0x72e1a000      C:\Windows\System32\Dxtrans.dll+
    +0x74790000 - 0x747a4000      C:\Windows\System32\ATL.DLL+
    +0x74330000 - 0x7433a000      C:\Windows\system32\ddrawex.dll+
    +0x694b0000 - 0x69597000      C:\Windows\system32\DDRAW.dll+
    +0x742d0000 - 0x742d6000      C:\Windows\system32\DCIMAN32.dll+
    +0x6c710000 - 0x6c769000      C:\Windows\System32\Dxtmsft.dll+
    +0x73a00000 - 0x73afb000      C:\Windows\system32\windowscodecs.dll+
    +0x6cf70000 - 0x6cfa2000      C:\Windows\system32\WINMM.dll+
    +0x739a0000 - 0x739cf000      C:\Windows\system32\XmlLite.dll+
    +0x74310000 - 0x74317000      C:\Windows\system32\msiltcfg.dll+
    +0x6c410000 - 0x6c650000      C:\Windows\system32\msi.dll+
    +0x6ac70000 - 0x6acb7000      C:\Windows\system32\Adobe\Director\SwDir.dll+
    +0x6c6d0000 - 0x6c703000      C:\Windows\system32\windowscodecsext.dll+
    +0x69790000 - 0x69809000      C:\Windows\system32\mscms.dll+
    +0x6ac30000 - 0x6ac68000      C:\Windows\system32\icm32.dll+
    +0x69410000 - 0x694ad000      C:\Windows\system32\Adobe\Shockwave 11\Control.dll+
    +0x6e810000 - 0x6e861000      C:\Windows\system32\winspool.drv+
    +0x69390000 - 0x69402000      C:\Windows\system32\DSOUND.dll+
    +0x74ac0000 - 0x74ae5000      C:\Windows\system32\POWRPROF.dll+
    +0x74a70000 - 0x74aa9000      C:\Windows\System32\MMDevApi.dll+
    +0x73960000 - 0x73996000      C:\Windows\system32\AUDIOSES.DLL+
    +0x736e0000 - 0x736ec000      C:\Windows\system32\mssprxy.dll+
    +0x69320000 - 0x6938a000      C:\Windows\system32\vbscript.dll+
    +0x653b0000 - 0x659de000      C:\Windows\system32\Macromed\Flash\Flash10t.ocx+
    +0x74f70000 - 0x74f78000      C:\Windows\system32\credssp.dll+
    +0x74f20000 - 0x74f5a000      C:\Windows\system32\schannel.DLL+
    +0x67430000 - 0x674f8000      C:\Windows\system32\OPENGL32.DLL+
    +0x68ce0000 - 0x68d02000      C:\Windows\system32\GLU32.dll+
    +0x10000000 - 0x10dc0000      C:\Windows\system32\ig4icd32.dll+
    +0x68c70000 - 0x68cd4000      C:\Windows\system32\D3DIM.DLL+
    +0x67360000 - 0x6742c000      C:\Windows\system32\D3DIM700.DLL+
    +0x01d40000 - 0x01d5f000      C:\Program Files\Java\jre6\bin\jp2iexp.dll+
    +0x7c340000 - 0x7c396000      C:\Program Files\Java\jre6\bin\MSVCR71.dll+
    +0x72d30000 - 0x72d37000      C:\Windows\system32\wsock32.dll+
    +0x71b10000 - 0x71b20000      C:\Windows\system32\napinsp.dll+
    +0x71af0000 - 0x71b02000      C:\Windows\system32\pnrpnsp.dll+
    +0x720d0000 - 0x720d8000      C:\Windows\System32\winrnr.dll+
    +0x71ae0000 - 0x71aed000      C:\Windows\system32\wshbth.dll+
    +0x6f8f0000 - 0x6f974000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll+
    +0x6d7f0000 - 0x6da9f000      C:\PROGRA~1\Java\jre6\bin\client\jvm.dll+
    +0x6d7a0000 - 0x6d7ac000      C:\PROGRA~1\Java\jre6\bin\verify.dll+
    +0x6d320000 - 0x6d33f000      C:\PROGRA~1\Java\jre6\bin\java.dll+
    +0x6d7e0000 - 0x6d7ef000      C:\PROGRA~1\Java\jre6\bin\zip.dll+
    +0x01dc0000 - 0x01dc6000      C:\Program Files\Java\jre6\bin\jp2native.dll+
    +0x6d1d0000 - 0x6d1e3000      C:\Program Files\Java\jre6\bin\deploy.dll+
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\jre6\lib\deploy.jar;C:\PROGRA~1\Java\jre6\lib\javaws.jar;C:\PROGRA~1\Java\jre6\lib\plugin.jar -Xmx32m -Djava.awt.headless=true -Dkernel.background.download=false -Dkernel.download.dialog=false -XX:MaxDirectMemorySize=64m
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=C:\Program Files\Internet Explorer;;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32\Empirum
    USERNAME=%username%
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows 7 Build 7601 Service Pack 1
    CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
    Memory: 4k page, physical 3063864k(2285416k free), swap 6125972k(5328168k free)
    vm_info: Java HotSpot(TM) Client VM (20.1-b02) for windows-x86 JRE (1.6.0_26-b03), built on May  4 2011 00:50:59 by "java_re" with MS VC+ 7.1 (VS2003)+
    time: Thu Jun 30 17:20:35 2011
    elapsed time: 0 seconds

    user11262844 wrote:
    Since we're planning a corporate Windows 7 rollout (>800PCs) we cannot do this manually on every computer. Ther must be any solution for this problem.If you're doing a corporate rollout of that size then surely you're just making an image of the desired configuration and just duplicating it onto the 800 PCs? In which case you would just configure IE appropriately as part of the image.
    Or alternatively you are manually configuring each of the 800 PCs, in which case this would be just one more thing in the checklist.

  • Java applets won't run on Safari???

    I have reinstalled Java twice, and it still won't run any Java applets. It just sits there with the cup logo and the arrow on either side. It works fine on Firefox but not Safari. Help?

    Hello
    I'm piggy backing on this thread because I too have had problems with Java and Safari
    Java runs fine for me in Firefox, however.
    I went to a federal website
    https://blrscr3.egs-seg.gc.ca/gol-ged/gov/browserdetection/BrowserCheck.html
    that uses java and received this message
    " Java applet unable to load
    To use this service, you must either install a recent version of the Sun JVM or enable "Scripting of Java applets" if it has been disabled."
    so i looked for an update and have downloaded and installed release 6, (at least, it said that it was installed, but have never been able to figure out where)
    when I check Java preferences, the choices are J2SE 1.4.2 or J2SE 5, and when I've switched to 1.4.2 I still have no luck.
    When i run firefox, i get the java console opening, but it doesn't open with safari, and I can't find the option for this to turn on in safari
    i have restarted both safari and my computer and no luck. I have repaired permissions and no changes have taken place.
    Any more suggestions?
    (thank you, by the way)

  • Java Applet fails to run after JRE upgrade

    I had JRE 1.6 which was updated to 1.8.0_31. After this update my applet has stopped working and I am getting below error
    java.lang.ExceptionInInitializerError
      at com.sun.deploy.net.protocol.https.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassCastException: sun.security.ssl.X509TrustManagerImpl cannot be cast to com.sun.net.ssl.internal.ssl.X509ExtendedTrustManager
      at com.sun.deploy.security.X509ExtendedDeployTrustManager.<init>(Unknown Source)
      at com.sun.deploy.net.protocol.https.Handler$Initializer$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.deploy.net.protocol.https.Handler$Initializer.<clinit>(Unknown Source)
      ... 29 more
    Exception: java.lang.ExceptionInInitializerError
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initializer
      at com.sun.deploy.net.protocol.https.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initializer
    I am using Jboss server and the server.xml file has been updated to use the correct Keystore and certificate using SSL. Below is what I am Using:
    <Connector protocol="HTTP/1.1" SSLEnabled="true"
               port="8443" address="${jboss.bind.address}"
               scheme="https" secure="true" clientAuth="false"
               keystoreFile="${jboss.server.home.dir}/conf/XYZ.keystore"
               keystorePass="XXX" sslProtocol = "TLS" />
    I have added the https site which I am trying to access in the exception list of both the browser and JAVA control Panel. Cleared the cache of both and have also deleted the user certificate to ensure the latest certificate gets downloaded.
    Kindly help to know the resolution steps.

    I had JRE 1.6 which was updated to 1.8.0_31. After this update my applet has stopped working and I am getting below error
    java.lang.ExceptionInInitializerError
      at com.sun.deploy.net.protocol.https.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassCastException: sun.security.ssl.X509TrustManagerImpl cannot be cast to com.sun.net.ssl.internal.ssl.X509ExtendedTrustManager
      at com.sun.deploy.security.X509ExtendedDeployTrustManager.<init>(Unknown Source)
      at com.sun.deploy.net.protocol.https.Handler$Initializer$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.deploy.net.protocol.https.Handler$Initializer.<clinit>(Unknown Source)
      ... 29 more
    Exception: java.lang.ExceptionInInitializerError
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initializer
      at com.sun.deploy.net.protocol.https.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.<init>(Unknown Source)
      at sun.plugin.net.protocol.jar.Handler.openConnection(Unknown Source)
      at java.net.URL.openConnection(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at sun.misc.URLClassPath$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getLoader(Unknown Source)
      at sun.misc.URLClassPath.getResource(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initializer
    I am using Jboss server and the server.xml file has been updated to use the correct Keystore and certificate using SSL. Below is what I am Using:
    <Connector protocol="HTTP/1.1" SSLEnabled="true"
               port="8443" address="${jboss.bind.address}"
               scheme="https" secure="true" clientAuth="false"
               keystoreFile="${jboss.server.home.dir}/conf/XYZ.keystore"
               keystorePass="XXX" sslProtocol = "TLS" />
    I have added the https site which I am trying to access in the exception list of both the browser and JAVA control Panel. Cleared the cache of both and have also deleted the user certificate to ensure the latest certificate gets downloaded.
    Kindly help to know the resolution steps.

  • File Uploader Java Applet cannot be run

    I have a website that I need to upload PDFs to, but since ugrading to Lion, I cannot do it any more.  I have downloaded the separte Java app, but it still does not work.
    This is the error message I get:
    File Uploader Java Applet cannot be run. Make sure that Java is installed on your PC and Java applets are permitted in browser settings. Use this link to download and install appropriate version of Java:

    Thank you etresoft - that did not solve the problem.  However, I did fix it by changing something in Java Preferences (which is located in the Utilities Folder).
    I first deleted the cache files as you suggested in the Network tab.  Then I quit and restarted Firefox.  I still got the same error message when I tried to upload.
    Then, I went back into Java Preferences and checked the box, "Enable Appplet Plug-in and Webstart Applications" located in the General Tab.  I then quit and restarted Firefox.  Now I am able to upload documents as I could before Lion.
    Thank you!!

  • Problem converting a (working) Java program into an applet

    When I'm trying to access an Image through a call to :
    mediaTracker = new MediaTracker(this);
    backGroundImage = getImage(getDocumentBase(), "background.gif");
    mediaTracker.addImage(backGroundImage, 0);
    I'm getting a nullPointerException as a result of the call to getDocumentBase() :
    C:\Chantier\Java\BallsApplet
    AppletViewer testBallsApplet.htmljava.lang.NullPointerException
    at java.applet.Applet.getDocumentBase(Applet.java:125)
    at Balls.<init>(Balls.java:84)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
    at sun.applet.AppletPanel.run(AppletPanel.java:290)
    at java.lang.Thread.run(Thread.java:536)
    It seems very weird to me... :-/
    (all the .gif files are in the same directory than the .class files)
    The problem appears with AppletViewer trying to open an HTML file
    containing :
    <HTML>
    <APPLET CODE="Balls.class" WIDTH=300 HEIGHT=211>
    </APPLET>
    </HTML>
    (I tried unsuccessfully the CODEBASE and ARCHIVE attributes, with and without putting the .gif and .class into a .jar file)
    I can't find the solution by myself, so, I'd be very glad if someone could help
    me with this... Thank you very much in advance ! :-)
    You'll find below the source of a small game that I wrote and debugged (without
    problem) and that I'm now (unsuccessfully) trying to convert into an Applet :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.URL;
    public class Balls extends java.applet.Applet implements Runnable, KeyListener
    private Image offScreenImage;
    private Image backGroundImage;
    private Image[] gifImages = new Image[6];
    private Image PressStart ;
    private Sprite pressStartSprite = null ;
    private Image YouLose ;
    private Sprite YouLoseSprite = null ;
    private Image NextStage ;
    private Sprite NextStageSprite = null ;
    private Image GamePaused ;
    private Sprite GamePausedSprite = null ;
    //offscreen graphics context
    private Graphics offScreenGraphicsCtx;
    private Thread animationThread;
    private MediaTracker mediaTracker;
    private SpriteManager spriteManager;
    //Animation display rate, 12fps
    private int animationDelay = 83;
    private Random rand = new Random(System.currentTimeMillis());
    private int message = 0 ; // 0 = no message (normal playing phase)
    // 1 = press space to start
    // 2 = press space for next level
    // 3 = game PAUSED, press space to unpause
    // 4 = You LOSE
    public static void main(String[] args)
    try
    new Balls() ;
    catch (java.net.MalformedURLException e)
    System.out.println(e);
    }//end main
    public void start()
    //Create and start animation thread
    animationThread = new Thread(this);
    animationThread.start();
    public void init()
    try
    new Balls() ;
    catch (java.net.MalformedURLException e)
    System.out.println(e);
    public Balls() throws java.net.MalformedURLException
    {//constructor
    // Load and track the images
    mediaTracker = new MediaTracker(this);
    backGroundImage = getImage(getDocumentBase(), "background.gif");
    mediaTracker.addImage(backGroundImage, 0);
    PressStart = getImage(getDocumentBase(), "press_start.gif");
    mediaTracker.addImage(PressStart, 0);
    NextStage = getImage(getDocumentBase(), "stage_complete.gif");
    mediaTracker.addImage(NextStage, 0);
    GamePaused = getImage(getDocumentBase(), "game_paused.gif");
    mediaTracker.addImage(GamePaused, 0);
    YouLose = getImage(getDocumentBase(), "you_lose.gif");
    mediaTracker.addImage(YouLose, 0);
    //Get and track 6 images to use
    // for sprites
    gifImages[0] = getImage(getDocumentBase(), "blueball.gif");
    mediaTracker.addImage(gifImages[0], 0);
    gifImages[1] = getImage(getDocumentBase(), "redball.gif");
    mediaTracker.addImage(gifImages[1], 0);
    gifImages[2] = getImage(getDocumentBase(), "greenball.gif");
    mediaTracker.addImage(gifImages[2], 0);
    gifImages[3] = getImage(getDocumentBase(), "yellowball.gif");
    mediaTracker.addImage(gifImages[3], 0);
    gifImages[4] = getImage(getDocumentBase(), "purpleball.gif");
    mediaTracker.addImage(gifImages[4], 0);
    gifImages[5] = getImage(getDocumentBase(), "orangeball.gif");
    mediaTracker.addImage(gifImages[5], 0);
    //Block and wait for all images to
    // be loaded
    try {
    mediaTracker.waitForID(0);
    }catch (InterruptedException e) {
    System.out.println(e);
    }//end catch
    //Base the Frame size on the size
    // of the background image.
    //These getter methods return -1 if
    // the size is not yet known.
    //Insets will be used later to
    // limit the graphics area to the
    // client area of the Frame.
    int width = backGroundImage.getWidth(this);
    int height = backGroundImage.getHeight(this);
    //While not likely, it may be
    // possible that the size isn't
    // known yet. Do the following
    // just in case.
    //Wait until size is known
    while(width == -1 || height == -1)
    System.out.println("Waiting for image");
    width = backGroundImage.getWidth(this);
    height = backGroundImage.getHeight(this);
    }//end while loop
    //Display the frame
    setSize(width,height);
    setVisible(true);
    //setTitle("Balls");
    //Anonymous inner class window
    // listener to terminate the
    // program.
    this.addWindowListener
    (new WindowAdapter()
    {public void windowClosing(WindowEvent e){System.exit(0);}});
    // Add a key listener for keyboard management
    this.addKeyListener(this);
    }//end constructor
    public void run()
    Point center_place = new Point(
    backGroundImage.getWidth(this)/2-PressStart.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-PressStart.getHeight(this)/2) ;
    pressStartSprite = new Sprite(this, PressStart, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-NextStage.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-NextStage.getHeight(this)/2) ;
    NextStageSprite = new Sprite(this, NextStage, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-GamePaused.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-GamePaused.getHeight(this)/2) ;
    GamePausedSprite = new Sprite(this, GamePaused, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-YouLose.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-YouLose.getHeight(this)/2) ;
    YouLoseSprite = new Sprite(this, YouLose, center_place, new Point(0, 0),true);
    BackgroundImage bgimage = new BackgroundImage(this, backGroundImage) ;
    for (;;) // infinite loop
    long time = System.currentTimeMillis();
    message = 1 ; // "press start to begin"
    while (message != 0)
    repaint() ;
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    boolean you_lose = false ;
    for (int max_speed = 7 ; !you_lose && max_speed < 15 ; max_speed++)
    for (int difficulty = 2 ; !you_lose && difficulty < 14 ; difficulty++)
    boolean unfinished_stage = true ;
    spriteManager = new SpriteManager(bgimage);
    spriteManager.setParameters(difficulty, max_speed) ;
    //Create 15 sprites from 6 gif
    // files.
    for (int cnt = 0; cnt < 15; cnt++)
    if (cnt == 0)
    Point position = new Point(
    backGroundImage.getWidth(this)/2-gifImages[0].getWidth(this)/2,
    backGroundImage.getHeight(this)/2-gifImages[0].getHeight(this)/2) ;
    spriteManager.addSprite(makeSprite(position, 0, false));
    else
    Point position = spriteManager.
    getEmptyPosition(new Dimension(gifImages[0].getWidth(this),
    gifImages[0].getHeight(this)));
    if (cnt < difficulty)
    spriteManager.addSprite(makeSprite(position, 1, true));
    else
    spriteManager.addSprite(makeSprite(position, 2, true));
    }//end for loop
    time = System.currentTimeMillis();
    while (!spriteManager.getFinishedStage() && !spriteManager.getGameOver())
    // Loop, sleep, and update sprite
    // positions once each 83
    // milliseconds
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    }//end while loop
    if (spriteManager.getGameOver())
    message = 4 ;
    while (message != 0)
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    you_lose = true ;
    if (spriteManager.getFinishedStage())
    message = 2 ;
    while (message != 0)
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    } // end for difficulty loop
    } // end for max_speed
    } // end infinite loop
    }//end run method
    private Sprite makeSprite(Point position, int imageIndex, boolean wind)
    return new Sprite(
    this,
    gifImages[imageIndex],
    position,
    new Point(rand.nextInt() % 5,
    rand.nextInt() % 5),
    wind);
    }//end makeSprite()
    //Overridden graphics update method
    // on the Frame
    public void update(Graphics g)
    //Create the offscreen graphics
    // context
    if (offScreenGraphicsCtx == null)
    offScreenImage = createImage(getSize().width,
    getSize().height);
    offScreenGraphicsCtx = offScreenImage.getGraphics();
    }//end if
    if (message == 0)
    // Draw the sprites offscreen
    spriteManager.drawScene(offScreenGraphicsCtx);
    else if (message == 1)
    pressStartSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 2)
    NextStageSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 3)
    GamePausedSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 4)
    YouLoseSprite.drawSpriteImage(offScreenGraphicsCtx);
    // Draw the scene onto the screen
    if(offScreenImage != null)
    g.drawImage(offScreenImage, 0, 0, this);
    }//end if
    }//end overridden update method
    //Overridden paint method on the
    // Frame
    public void paint(Graphics g)
    //Nothing required here. All
    // drawing is done in the update
    // method above.
    }//end overridden paint method
    // Methods to handle Keyboard event
    public void keyPressed(KeyEvent evt)
    int key = evt.getKeyCode(); // Keyboard code for the pressed key.
    if (key == KeyEvent.VK_SPACE)
    if (message != 0)
    message = 0 ;
    else
    message = 3 ;
    if (key == KeyEvent.VK_LEFT)
    if (spriteManager != null)
    spriteManager.goLeft() ;
    else if (key == KeyEvent.VK_RIGHT)
    if (spriteManager != null)
    spriteManager.goRight() ;
    else if (key == KeyEvent.VK_UP)
    if (spriteManager != null)
    spriteManager.goUp() ;
    else if (key == KeyEvent.VK_DOWN)
    if (spriteManager != null)
    spriteManager.goDown() ;
    if (spriteManager != null)
    spriteManager.setMessage(message) ;
    public void keyReleased(KeyEvent evt)
    public void keyTyped(KeyEvent e)
    char key = e.getKeyChar() ;
    //~ if (key == 's')
    //~ stop = true ;
    //~ else if (key == 'c')
    //~ stop = false ;
    //~ spriteManager.setStop(stop) ;
    }//end class Balls
    //===================================//
    class BackgroundImage
    private Image image;
    private Component component;
    private Dimension size;
    public BackgroundImage(
    Component component,
    Image image)
    this.component = component;
    size = component.getSize();
    this.image = image;
    }//end construtor
    public Dimension getSize(){
    return size;
    }//end getSize()
    public Image getImage(){
    return image;
    }//end getImage()
    public void setImage(Image image){
    this.image = image;
    }//end setImage()
    public void drawBackgroundImage(Graphics g)
    g.drawImage(image, 0, 0, component);
    }//end drawBackgroundImage()
    }//end class BackgroundImage
    //===========================
    class SpriteManager extends Vector
    private BackgroundImage backgroundImage;
    private boolean finished_stage = false ;
    private boolean game_over = false ;
    private int difficulty ;
    private int max_speed ;
    public boolean getFinishedStage()
    finished_stage = true ;
    for (int cnt = difficulty ; cnt < size(); cnt++)
    Sprite sprite = (Sprite)elementAt(cnt);
    if (!sprite.getEaten())
    finished_stage = false ;
    return finished_stage ;
    public boolean getGameOver() {return game_over ;}
    public void setParameters(int diff, int speed)
    difficulty = diff ;
    max_speed = speed ;
    finished_stage = false ;
    game_over = false ;
    Sprite sprite;
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    sprite.setSpeed(max_speed) ;
    public SpriteManager(BackgroundImage backgroundImage)
    this.backgroundImage = backgroundImage ;
    }//end constructor
    public Point getEmptyPosition(Dimension spriteSize)
    Rectangle trialSpaceOccupied = new Rectangle(0, 0,
    spriteSize.width,
    spriteSize.height);
    Random rand = new Random(System.currentTimeMillis());
    boolean empty = false;
    int numTries = 0;
    // Search for an empty position
    while (!empty && numTries++ < 100)
    // Get a trial position
    trialSpaceOccupied.x =
    Math.abs(rand.nextInt() %
    backgroundImage.
    getSize().width);
    trialSpaceOccupied.y =
    Math.abs(rand.nextInt() %
    backgroundImage.
    getSize().height);
    // Iterate through existing
    // sprites, checking if position
    // is empty
    boolean collision = false;
    for(int cnt = 0;cnt < size(); cnt++)
    Rectangle testSpaceOccupied = ((Sprite)elementAt(cnt)).getSpaceOccupied();
    if (trialSpaceOccupied.intersects(testSpaceOccupied))
    collision = true;
    }//end if
    }//end for loop
    empty = !collision;
    }//end while loop
    return new Point(trialSpaceOccupied.x, trialSpaceOccupied.y);
    }//end getEmptyPosition()
    public void update()
    Sprite sprite;
    // treat special case of sprite #0 (the player)
    sprite = (Sprite)elementAt(0);
    sprite.updatePosition() ;
    int hitIndex = testForCollision(sprite);
    if (hitIndex != -1)
    if (hitIndex < difficulty)
    { // if player collides with an hunter (red ball), he loose
    sprite.setEaten() ;
    game_over = true ;
    else
    // if player collides with an hunted (green ball), he eats the green
    ((Sprite)elementAt(hitIndex)).setEaten() ;
    //Iterate through sprite list
    for (int cnt = 1;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    //Update a sprite's position
    sprite.updatePosition();
    //Test for collision. Positive
    // result indicates a collision
    hitIndex = testForCollision(sprite);
    if (hitIndex >= 0)
    //a collision has occurred
    bounceOffSprite(cnt,hitIndex);
    }//end if
    }//end for loop
    }//end update
    public void setMessage(int message)
    Sprite sprite;
    //Iterate through sprite list
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    //Update a sprite's stop status
    sprite.setMessage(message);
    }//end for loop
    }//end update
    public void goLeft()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goLeft() ;
    public void goRight()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goRight() ;
    public void goUp()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goUp() ;
    public void goDown()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goDown() ;
    private int testForCollision(Sprite testSprite)
    //Check for collision with other
    // sprites
    Sprite sprite;
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    if (sprite == testSprite)
    //don't check self
    continue;
    //Invoke testCollision method
    // of Sprite class to perform
    // the actual test.
    if (testSprite.testCollision(sprite))
    //Return index of colliding
    // sprite
    return cnt;
    }//end for loop
    return -1;//No collision detected
    }//end testForCollision()
    private void bounceOffSprite(int oneHitIndex, int otherHitIndex)
    //Swap motion vectors for
    // bounce algorithm
    Sprite oneSprite = (Sprite)elementAt(oneHitIndex);
    Sprite otherSprite = (Sprite)elementAt(otherHitIndex);
    Point swap = oneSprite.getMotionVector();
    oneSprite.setMotionVector(otherSprite.getMotionVector());
    otherSprite.setMotionVector(swap);
    }//end bounceOffSprite()
    public void drawScene(Graphics g)
    //Draw the background and erase
    // sprites from graphics area
    //Disable the following statement
    // for an interesting effect.
    backgroundImage.drawBackgroundImage(g);
    //Iterate through sprites, drawing
    // each sprite
    for (int cnt = 0;cnt < size(); cnt++)
    ((Sprite)elementAt(cnt)).drawSpriteImage(g);
    }//end drawScene()
    public void addSprite(Sprite sprite)
    addElement(sprite);
    }//end addSprite()
    }//end class SpriteManager
    //===================================//
    class Sprite
    private Component component;
    private Image image;
    private Rectangle spaceOccupied;
    private Point motionVector;
    private Rectangle bounds;
    private Random rand;
    private int message = 0 ; // number of message currently displayed (0 means "no message" = normal game)
    private int max_speed = 7 ;
    private boolean eaten = false ; // when a green sprite is eaten, it is no longer displayed on screen
    private boolean wind = true ;
    private boolean go_left = false ;
    private boolean go_right = false ;
    private boolean go_up = false ;
    private boolean go_down = false ;
    public Sprite(Component component,
    Image image,
    Point position,
    Point motionVector,
    boolean Wind
    //Seed a random number generator
    // for this sprite with the sprite
    // position.
    rand = new Random(position.x);
    this.component = component;
    this.image = image;
    setSpaceOccupied(new Rectangle(
    position.x,
    position.y,
    image.getWidth(component),
    image.getHeight(component)));
    this.motionVector = motionVector;
    this.wind = Wind ;
    //Compute edges of usable graphics
    // area in the Frame.
    int topBanner = ((Container)component).getInsets().top;
    int bottomBorder = ((Container)component).getInsets().bottom;
    int leftBorder = ((Container)component).getInsets().left;
    int rightBorder = ((Container)component).getInsets().right;
    bounds = new Rectangle( 0 + leftBorder, 0 + topBanner
    , component.getSize().width - (leftBorder + rightBorder)
    , component.getSize().height - (topBanner + bottomBorder));
    }//end constructor
    public void setMessage(int message_number)
    message = message_number ;
    public void setSpeed(int speed)
    max_speed = speed ;
    public void goLeft()
    go_left = true ;
    public void goRight()
    go_right = true ;
    public void goUp()
    go_up = true ;
    public void goDown()
    go_down = true ;
    public void setEaten()
    eaten = true ;
    setSpaceOccupied(new Rectangle(4000,4000,0,0)) ;
    public boolean getEaten()
    return eaten ;
    public Rectangle getSpaceOccupied()
    return spaceOccupied;
    }//end getSpaceOccupied()
    void setSpaceOccupied(Rectangle spaceOccupied)
    this.spaceOccupied = spaceOccupied;
    }//setSpaceOccupied()
    public void setSpaceOccupied(
    Point position){
    spaceOccupied.setLocation(
    position.x, position.y);
    }//setSpaceOccupied()
    public Point getMotionVector(){
    return motionVector;
    }//end getMotionVector()
    public void setMotionVector(
    Point motionVector){
    this.motionVector = motionVector;
    }//end setMotionVector()
    public void setBounds(Rectangle bounds)
    this.bounds = bounds;
    }//end setBounds()
    public void updatePosition()
    Point position = new Point(spaceOccupied.x, spaceOccupied.y);
    if (message != 0)
    return ;
    //Insert random behavior. During
    // each update, a sprite has about
    // one chance in 10 of making a
    // random change to its
    // motionVector. When a change
    // occurs, the motionVector
    // coordinate values are forced to
    // fall between -7 and 7. This
    // puts a cap on the maximum speed
    // for a sprite.
    if (!wind)
    if (go_left)
    motionVector.x -= 2 ;
    if (motionVector.x < -15)
    motionVector.x = -14 ;
    go_left = false ;
    if (go_right)
    motionVector.x += 2 ;
    if (motionVector.x > 15)
    motionVector.x = 14 ;
    go_right = false ;
    if (go_up)
    motionVector.y -= 2 ;
    if (motionVector.y < -15)
    motionVector.y = -14 ;
    go_up = false ;
    if (go_down)
    motionVector.y += 2 ;
    if (motionVector.y > 15)
    motionVector.y = 14 ;
    go_down = false ;
    else if(rand.nextInt() % 7 == 0)
    Point randomOffset =
    new Point(rand.nextInt() % 3,
    rand.nextInt() % 3);
    motionVector.x += randomOffset.x;
    if(motionVector.x >= max_speed)
    motionVector.x -= max_speed;
    if(motionVector.x <= -max_speed)
    motionVector.x += max_speed ;
    motionVector.y += randomOffset.y;
    if(motionVector.y >= max_speed)
    motionVector.y -= max_speed;
    if(motionVector.y <= -max_speed)
    motionVector.y += max_speed;
    }//end if
    //Move the sprite on the screen
    position.translate(motionVector.x, motionVector.y);
    //Bounce off the walls
    boolean bounceRequired = false;
    Point tempMotionVector = new Point(
    motionVector.x,
    motionVector.y);
    //Handle walls in x-dimension
    if (position.x < bounds.x)
    bounceRequired = true;
    position.x = bounds.x;
    //reverse direction in x
    tempMotionVector.x = -tempMotionVector.x;
    else if ((position.x + spaceOccupied.width) > (bounds.x + bounds.width))
    bounceRequired = true;
    position.x = bounds.x +
    bounds.width -
    spaceOccupied.width;
    //reverse direction in x
    tempMotionVector.x =
    -tempMotionVector.x;
    }//end else if
    //Handle walls in y-dimension
    if (position.y < bounds.y)
    bounceRequired = true;
    position.y = bounds.y;
    tempMotionVector.y = -tempMotionVector.y;
    else if ((position.y + spaceOccupied.height)
    > (bounds.y + bounds.height))
    bounceRequired = true;
    position.y = bounds.y +
    bounds.height -
    spaceOccupied.height;
    tempMotionVector.y =
    -tempMotionVector.y;
    }//end else if
    if(bounceRequired)
    //save new motionVector
    setMotionVector(
    tempMotionVector);
    //update spaceOccupied
    setSpaceOccupied(position);
    }//end updatePosition()
    public void drawSpriteImage(Graphics g)
    if (!eaten)
    g.drawImage(image,
    spaceOccupied.x,
    spaceOccupied.y,
    component);
    }//end drawSpriteImage()
    public boolean testCollision(Sprite testSprite)
    //Check for collision with
    // another sprite
    if (testSprite != this)
    return spaceOccupied.intersects(
    testSprite.getSpaceOccupied());
    }//end if
    return false;
    }//end testCollision
    }//end Sprite class
    //===================================//
    Thanks for your help...

    Sorry,
    Can you tell me how do you solve it because I have got the same problem.
    Can you indicate me the topic where did you find solution.
    Thank in advance.

  • How to tell embedded jinitator applet is still running when window closed

    Hello, we are trying to accomplish the same thing that is mentioned in this post from Metalink. I've searched for a solution and hope someone here can help. Instead of restating the issue I think David Wilson does a good job of explaining what is needed. Can anyone please suggest a possible solution?
    From: David Wilton 07-Oct-05 01:08
    Subject: How to tell embedded jinitator applet is still running when window closed
    How to tell embedded jinitator applet is still running when window closed
    Hi,
    We run an oracle 10g forms application through 9iAS over an intranet. All users are running windows 2000 professional.
    We run separate frame = true but I would like to switch to separate frame = false
    With separate frame = true if the user clicks the outer windows "X" close button (forms mdi window) the user is prompted to save changes before the application ends.
    BUT
    when using separate frame = false
    If the user clicks the upper window "X" button (no longer form mdi window but regular browser window) the window and application is abruptly closed.
    I'm interested in using a onbeforeunload function to confirm if the user wants to close the window. This would be placed in the basejini.htm file. This could always ask if the user wants to exit or not. If they click OK then the window closes but if they click "Cancel" you are returned to the forms application exactly where you left. something like event.returnvalue="do you really want to exit?";
    However if the user exited using the normal exit form method then the applet is already closed before the onbeforeunoad event fires and there is nothing to go back to and I want the window to close automatically. This is accomplished using close.html file in post forms trigger.
    So what I want and what I think many may also want is the check if the embedded applet is still running and if so prompt the user to return to the application or continue to close. Of course If the applet is no longer running then just close because there is no reason confirm closing anymore.
    Does anyone have a html/JavaScript solution that can be placed in the jinitiator.htm file? or similar?
    Thank you
    David
    [email protected]
    From: Andrew Lenton 07-Oct-05 08:58
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    I don't know if this is exactly what you are after but you can add the following to the top of your basejini.htm file and it should prompt the user before exiting the IE window.
    <BODY %HTMLbodyAttrs%>
    %HTMLbeforeForm%
    <SCRIPT>
    <!--
    window.onbeforeunload = unloadApplet;
    function unloadApplet(){
    message = "Warning! Please exit the Java Applet prior to
    exiting the browser"
    return message;
    //-->
    </SCRIPT>
    From: Oracle, mohammed pasha 07-Oct-05 09:55
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    David,
    Well I could not understand your complete requirement.
    Refer to Note.201481.1 How to Close the Browser Window When Closing Forms And How to Simulate SeparateFrame By Javascript
    Note.115905.1 How to Close Browser Window When Closing Webforms Applet
    Kind Regards,
    Anwar
    From: David Wilton 07-Oct-05 14:37
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Thank you for your reply and yes you did not understand my question fully.
    Sorry if this is a long reply
    I am able to close the browser window using information in notes 115905.1 and 201481.1, this is not the issue. We implemented this several years ago. It is workable for both separate frame = true or false.
    It is most important to not allow the user to end their forms application by closing the windows browser, they must close using normal form exit commands.
    What I want is to have separate frame = false, the big drawback to this option is the user can exit the application and bypass all forms code by pressing the windows "X" close button. This is why we need the code as just provided by Andrew Lenton above in this thread.
    BUT Andrew's code will always prompt the user before closing the window and I do not want that. I want the user to be prompted only under scenario 2 listed below.
    Here's the 2 case scenario for exiting the application.
    1. If the user closes properly and uses exit form which fires all normal form triggers including post_form with it's call to close.html file.
    All uncommitted changes are saved or rollback and the users session is ended normally both on the database and in the application server.
    All browser windows will close, great all is good. And without Andrew's code the window will close but with Andrew's code the user will be prompted to close or not, if they select Cancel the window will remain but the applet has already ended so why prompt? ...This is what I want to avoid.
    2. In the forms app. if the user clicks the windows "X" close button with uncommitted changes. The browser just closes the changes are rollback without prompting the user to save. The users sessions are now lost and still running in the database and application server until they are timed out.
    If I use Andrew's code then the user will be prompted to continue to close or go back, if they click Cancel to go back then focus returns to the forms application and the user can continue to work. If the user clicks OK then the window closes and unfortunately their sessions are still lost until timed out.
    So what I desire is to add to Andrew's code to check if the embedded applet is still running and prompt the user to close or not accordingly.
    Something like:
    Basejini.htm like
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    function maximizeWindow()
    window.moveTo(0,0);
    window.resizeTo(screen.availWidth,screen.availHeight);
    function confirm(){
    If(document.embeddedapplet.closed())
    Win.opener = self;
    win.close();
    Else if
    event.returnValue = "Closing Forms Application. OK to continue?";
    </SCRIPT>
    <BODY %HTMLbodyAttrs%, onload="maximizeWindow()", onbeforeunload="confirm()">
    %HTMLbeforeForm%
    I hope this explains my requirements.
    David
    From: Oracle, Evelene Raechel 10-Oct-05 06:45
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Hi,
    Note.199928.1 How to Alert User on Closing Client's Browser Window in Webforms
    Regards,
    Rachel
    From: David Wilton 11-Oct-05 17:40
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    I'm sorry this is not helpful at all.
    Note 199928.1 is only an alert which does not stop the closing of the window and still displays as an alert if the user does close properly using exit form ... so why would you want to display the alert then?
    This is exaclty what I do not want and why I want to determine if the applet is still running before displaying any kind of message.
    David
    From: Oracle, Evelene Raechel 17-Oct-05 12:23
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Closing thread.
    Thanks,

    Hello,
    I had the same issue last year - wanting to provide a warning on closing the browser, but only if the Forms session is still running. The approach I took is described below, see also the thread where I originally posted this at Closing brower window
    Hi there,I've had a similar requirement - or rather, the two conflicting requirements: to warn when the browser is being closed, but for the app to be able to close the browser without a warning being fired.
    To always provide a warning when someone (the user or the Forms app) tries to go to a different page (e.g. your close.htm), use Javascript like:
    function confirmExit(){
    if(appletRunning==true) {
    msg="Closing this window or navigating to another page will end your SomeGreatApp session.";
    window.event.returnValue=msg;
    And make a call to confirmExit() in the onBeforeUnload event of your main page.
    You'll notice I first check an 'appletRunning' variable before displaying the warning. This Javascript variable is set to true by my app when it starts up, using an embedded Javabean that calls out to Javascript. Once that variable is set to true, then the warning will be displayed if the user tries to shut the browser by clicking on the 'x' button, or to go to a different URL.
    When my app is shutting down, it uses the same Javabean to set appletRunning back to false. It then navigates to a close.htm - which will be done without a warning being displayed.
    See Re: How can a Javabean call Javascript function of the basejpi.html?? for example code on how to call Javascript from a bean embedded in your Forms app.
    Hope these ideas help you out, it's worked for me (so far, anyway!!)
    James

  • Applet doesnt run in netscape

    I have made an applet that runs under the applet viewer.
    In netscape the button, labels, and textfields show,
    but the button doesn't produce the remainder of the run,
    as evidenced by no painting, like it does in the other situations.
    It also runs as an application on a frame.
    Where do I look for problems?
    These are all of my imports:
    import java.awt.TextArea;
    import java.awt.TextField;
    import java.awt.Label;
    import java.awt.Frame;
    import java.applet.Applet;
    import java.awt.Toolkit;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.Button;
    import java.awt.FlowLayout;
    import java.awt.Font;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.Graphics;
    dewayne

    My Applet is really kind of neat and on one applet panel,
    and I want to share it on the browser in the classroom.
    My Applets used to work with Netscape on my computer.
    Thinking that I probably lost a plugin,
    I read as much as I could about plugins.
    But I am really lost.
    It seems unfortunate that one
    has to know so much about things
    peripherally to what one is trying to do.
    It makes programming much harder
    than it used to be a few years ago.
    Can someone help me with some suggestions?
    Or does the lack of responses mean that others don't know?
    Or are they snubbing me? I give up.
    dewayne

Maybe you are looking for