Applet Xmx

have a problem with plug-in applet, I need to set the parameter -Xmx512x (Control panel -> java -> java runtime parameter) and when I run the applet with IE I got the error message "Java Runtime Environment cannot be loaded".
Without the parameter it work.
I tried with Xms and Xms withoud succes
I set this parameter because the applet always get in OutOfMemory.
Thanks all.

Try writing -Xmx512m (no x at the end). It works on my machine.

Similar Messages

  • -Xmx greater than 180M does not start jvm on a 2gb machine, why?

    Hi, we have developed a product demo shown as an applet that uses the java plug-in to startup.
    The demo requires high amount of memory so we modified the java plug-in -xms and -xmx values in the control panel so more memory is available to the applet. What we can not see is why using values higher than -Xmx187M the applet does not start launching an error message either in Explorer of Firefox telling it has been unable to load the jvm. Using the value of -Xmx180M the applet starts but the out of memory message is displayed very soon as the demo requires at least 700M.
    We are using:
    � JRE1.6_u02
    � IE7. FireFox 2.0.0.7
    � Computer: 2GB Ram, CoreDuo2.
    Does any of you why this limitation in the maximum java heap size?
    Thanks for your time and help.
    Best Regards.

    I don't understand the logic for when it will error out on the -Xmx setting.One obvious idea leaps to my mind - because windows doesn't do it.
    And googling would seem to support that. Search for "currently implemented up to" in the following.
    [http://support.microsoft.com/kb/294418]

  • Can I set JVM memory size when running applets?

    Hi,
    I have downloaded an applet that renders panoramic images and
    I have a problem with Java memory. I remember that default maximum
    size that applet can use is 70MB, and the problem is 70MB is
    not enough when rendering big images. It is OK when I add
    "-Xmx -Xms" parameters in the Java Control but I cannot tell
    everyone who wants to see my images to go control panel, add
    parameters etc..
    So my question is...
    Is it possible add "-Xmx -Xms" parameters inside the applet file
    so that these parameters run automatically when executing applet?
    Thanks in advance for your reply!
    Hyung

    Hi,
    I have downloaded an applet that renders panoramic
    images and
    I have a problem with Java memory. I remember that
    default maximum
    size that applet can use is 70MB, and the problem is
    70MB is
    not enough when rendering big images. It is OK when I
    add
    "-Xmx -Xms" parameters in the Java Control but I
    cannot tell
    everyone who wants to see my images to go control
    panel, add
    parameters etc..
    So my question is...
    Is it possible add "-Xmx -Xms" parameters inside the
    applet file
    so that these parameters run automatically when
    executing applet?
    Thanks in advance for your reply!
    HyungA potential workaround I would try is is use ByteBuffers
    (T)

  • Urgent: How to run Multiple Applets from a URL

    Hi,
    I am developing an applet that needs memory more than 64MB and I have used -Xmx to set it to 128 MB.
    On my web page, I have 3 applications that use the same JAR file of the applet, but the problem is all applets are opened/loaded in same heap space by JVM. So, when I load first applet, it uses 80 MB and when I start 2nd applet, after using 40 MB, it throws OutOfMemory exception.
    Is there a way to start each applet with fresh 128 MB heap space rather than all applets sharing 128 MB heap space?
    Thanks,
    Ajit

    That's some hefty requirements for an applet. I believe that the only way to do the Xmx thing on the client side is to have them manually add it in the JVM arguments section of the Java Plugin Control Panel.
    The browser/plugin is going to use the same JVM to run all 3 applets in a page. I've never seen a way to tell it to do otherwise. The only separation is the applet contexts, but that is more of a security manager grouping thing.
    Maybe you should look into how you can better manage your data so you don't need so much memory.

  • Applet crash on windows

    Hi
    I'm working on windows XP SP2 on jre 1.5 update 11. When i launch outlook 2003 then i launch my applet, My Internet Explorer crash and making a hs_err_pidxxxx.log file on the desktop. When i launch my applet first then outlook 2003 there are no problems.
    I found some solutions about this problem but nothing working.
    I try to uninstall all JVM and disable all runtime (exclude runtime i using).
    I try to work with display 16bits instead 32bits.
    I try to pass a lower -Xmx and -Xms parameters.
    I try last JRE 1.6.0_3, and IE7.
    But nothing of the solutions above works.
    Please Help Me.
    Here you find detail of the generate err file.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (0xe06d7363), pid=2628, tid=3024
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)
    # Problematic frame:
    # C [kernel32.dll+0x12a5b]
    --------------- T H R E A D ---------------
    Current thread (0x02385e40): JavaThread "main" [_thread_in_native, id=3024]
    siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x0349f714 0x6d41d8c8
    Registers:
    EAX=0x0349f674, EBX=0x26b564d8, ECX=0x00000000, EDX=0x0349f6b8
    ESP=0x0349f670, EBP=0x0349f6c4, ESI=0x0349f704, EDI=0x0349f704
    EIP=0x7c812a5b, EFLAGS=0x00000206
    Top of Stack: (sp=0x0349f670)
    0x0349f670: 77be14bc e06d7363 00000001 00000000
    0x0349f680: 7c812a5b 00000003 19930520 0349f714
    0x0349f690: 6d41d8c8 00000001 0349f6e8 774da275
    0x0349f6a0: 00000001 0349f6b0 0349f6c8 0349f6e4
    0x0349f6b0: 00000000 80004002 df0b3d60 101b548f
    0x0349f6c0: 0008658e 0349f704 77bf272c e06d7363
    0x0349f6d0: 00000001 00000003 0349f6f8 00000000
    0x0349f6e0: 0292d144 e06d7363 00000001 00000000
    Instructions: (pc=0x7c812a5b)
    0x7c812a4b: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 08 15 80 7c
    0x7c812a5b: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
    Stack: [0x033a0000,0x034a0000), sp=0x0349f670, free space=1021k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [kernel32.dll+0x12a5b]
    C [msvcrt.dll+0x1272c]
    C [jpiexp32.dll+0xa7f3]
    C [jpiexp32.dll+0xa7cb]
    C [jpiexp32.dll+0x15c3]
    C [jpiexp32.dll+0x1233]
    C [jpiexp32.dll+0x99bd]
    j sun.plugin.services.WIExplorerBrowserService.installBrowserEventListener()Z+0
    j sun.plugin.viewer.LifeCycleManager.installBrowserEventListener()V+27
    j sun.plugin.viewer.LifeCycleManager.checkLifeCycle(Lsun/plugin/AppletViewer;)V+7
    j sun.plugin.viewer.IExplorerPluginObject.initPlugin()V+36
    j sun.plugin.viewer.IExplorerPluginObject.mayInit()V+29
    j sun.plugin.viewer.IExplorerPluginObject.frameReady()V+6
    j sun.plugin.viewer.frame.IExplorerEmbeddedFrame.setFrameSize(II)V+83
    v ~StubRoutines::call_stub
    V [jvm.dll+0x871a8]
    V [jvm.dll+0xdf462]
    V [jvm.dll+0x87079]
    V [jvm.dll+0x8c4c0]
    C [jpiexp32.dll+0x4395]
    C [jpiexp32.dll+0x5598]
    C [jpiexp32.dll+0x249c]
    C [jpiexp32.dll+0x3816]
    C [jpiexp32.dll+0x2609]
    C [mshtml.dll+0x2db9bc]
    C [mshtml.dll+0x1e27b1]
    C [mshtml.dll+0xefbfb]
    C [mshtml.dll+0xefb86]
    C [mshtml.dll+0xefaf3]
    C [mshtml.dll+0xb79ea]
    C [mshtml.dll+0xb1492]
    C [USER32.dll+0x8724]
    C [USER32.dll+0x8806]
    C [USER32.dll+0x89bd]
    C [USER32.dll+0x8a00]
    C [IEFRAME.dll+0x9e65b]
    C [kernel32.dll+0xb683]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.plugin.services.WIExplorerBrowserService.installBrowserEventListener()Z+0
    j sun.plugin.viewer.LifeCycleManager.installBrowserEventListener()V+27
    j sun.plugin.viewer.LifeCycleManager.checkLifeCycle(Lsun/plugin/AppletViewer;)V+7
    j sun.plugin.viewer.IExplorerPluginObject.initPlugin()V+36
    j sun.plugin.viewer.IExplorerPluginObject.mayInit()V+29
    j sun.plugin.viewer.IExplorerPluginObject.frameReady()V+6
    j sun.plugin.viewer.frame.IExplorerEmbeddedFrame.setFrameSize(II)V+83
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0713bbb0 JavaThread "Thread-4" [_thread_in_Java, id=1924]
    0x0fd24d38 JavaThread "Thread-3" [_thread_blocked, id=612]
    0x0fd24288 JavaThread "thread applet-oracle.forms.webutil.common.RegisterWebUtil" [_thread_blocked, id=4084]
    0x0fd21eb0 JavaThread "TimerQueue" daemon [_thread_blocked, id=4080]
    0x07127d28 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1020]
    0x070ceae0 JavaThread "ConsoleWriterThread" daemon [_thread_blocked, id=3276]
    0x070c5d58 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=852]
    0x070b0d10 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3188]
    0x070ac4c0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3264]
    0x070ac2a8 JavaThread "AWT-Shutdown" [_thread_blocked, id=2884]
    0x070ab8a0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3180]
    0x024116c8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3260]
    0x008cc970 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3192]
    0x0240f8f8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1728]
    0x0235a6b8 JavaThread "Finalizer" daemon [_thread_blocked, id=432]
    0x0240b9e8 JavaThread "Reference Handler" daemon [_thread_blocked, id=424]
    =>0x02385e40 JavaThread "main" [_thread_in_native, id=3024]
    Other Threads:
    0x0233dab0 VMThread [id=1444]
    0x023260a8 WatcherThread [id=1348]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 240K [0x20a70000, 0x20b10000, 0x211d0000)
    eden space 512K, 34% used [0x20a70000, 0x20a9c390, 0x20af0000)
    from space 64K, 100% used [0x20af0000, 0x20b00000, 0x20b00000)
    to space 64K, 0% used [0x20b00000, 0x20b00000, 0x20b10000)
    tenured generation total 1408K, used 1275K [0x211d0000, 0x21330000, 0x26a70000)
    the space 1408K, 90% used [0x211d0000, 0x2130ede0, 0x2130ee00, 0x21330000)
    compacting perm gen total 8192K, used 1809K [0x26a70000, 0x27270000, 0x2aa70000)
    the space 8192K, 22% used [0x26a70000, 0x26c347c0, 0x26c34800, 0x27270000)
    ro space 8192K, 63% used [0x2aa70000, 0x2af7f230, 0x2af7f400, 0x2b270000)
    rw space 12288K, 46% used [0x2b270000, 0x2b811670, 0x2b811800, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0049b000      C:\Program Files\Internet Explorer\iexplore.exe
    0x7c910000 - 0x7c9c7000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c905000      C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e4c000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e50000 - 0x77ee1000      C:\WINDOWS\system32\RPCRT4.dll
    0x77ef0000 - 0x77f37000      C:\WINDOWS\system32\GDI32.dll
    0x7e390000 - 0x7e421000      C:\WINDOWS\system32\USER32.dll
    0x77be0000 - 0x77c38000      C:\WINDOWS\system32\msvcrt.dll
    0x77f40000 - 0x77fb6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9d0000 - 0x7d1f4000      C:\WINDOWS\system32\SHELL32.dll
    0x774a0000 - 0x775dd000      C:\WINDOWS\system32\ole32.dll
    0x44160000 - 0x44284000      C:\WINDOWS\system32\urlmon.dll
    0x770e0000 - 0x7716b000      C:\WINDOWS\system32\OLEAUT32.dll
    0x43e00000 - 0x43e45000      C:\WINDOWS\system32\iertutil.dll
    0x77bd0000 - 0x77bd8000      C:\WINDOWS\system32\VERSION.dll
    0x76320000 - 0x7633d000      C:\WINDOWS\system32\IMM32.DLL
    0x77390000 - 0x77493000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x58b50000 - 0x58bea000      C:\WINDOWS\system32\comctl32.dll
    0x44360000 - 0x4492b000      C:\WINDOWS\system32\IEFRAME.dll
    0x76ba0000 - 0x76bab000      C:\WINDOWS\system32\PSAPI.DLL
    0x5b090000 - 0x5b0c8000      C:\WINDOWS\system32\UxTheme.dll
    0x74690000 - 0x746db000      C:\WINDOWS\system32\MSCTF.dll
    0x20000000 - 0x202da000      C:\WINDOWS\system32\xpsp2res.dll
    0x75140000 - 0x7516e000      C:\WINDOWS\system32\msctfime.ime
    0x5dff0000 - 0x5e01f000      C:\WINDOWS\system32\IEUI.dll
    0x76310000 - 0x76315000      C:\WINDOWS\system32\MSIMG32.dll
    0x4eb80000 - 0x4ed23000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
    0x47060000 - 0x47081000      C:\WINDOWS\system32\xmllite.dll
    0x77b50000 - 0x77b72000      C:\WINDOWS\system32\apphelp.dll
    0x76f80000 - 0x76fff000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77000000 - 0x770d4000      C:\WINDOWS\system32\COMRes.dll
    0x74660000 - 0x7468a000      C:\WINDOWS\system32\msimtf.dll
    0x77fc0000 - 0x77fd1000      C:\WINDOWS\system32\Secur32.dll
    0x765b0000 - 0x76606000      C:\WINDOWS\System32\cscui.dll
    0x76590000 - 0x765ad000      C:\WINDOWS\System32\CSCDLL.dll
    0x778e0000 - 0x779d8000      C:\WINDOWS\system32\SETUPAPI.dll
    0x325c0000 - 0x325d2000      C:\Program Files\Microsoft Office\OFFICE11\msohev.dll
    0x61930000 - 0x6197a000      C:\Program Files\Internet Explorer\ieproxy.dll
    0x7d200000 - 0x7d4be000      C:\WINDOWS\system32\msi.dll
    0x77210000 - 0x772c1000      C:\WINDOWS\system32\SXS.DLL
    0x44080000 - 0x4414f000      C:\WINDOWS\system32\WININET.dll
    0x01970000 - 0x01979000      C:\WINDOWS\system32\Normaliz.dll
    0x75d30000 - 0x75dc1000      C:\WINDOWS\system32\MLANG.dll
    0x719f0000 - 0x71a07000      C:\WINDOWS\system32\ws2_32.dll
    0x719e0000 - 0x719e8000      C:\WINDOWS\system32\WS2HELP.dll
    0x10000000 - 0x1000e000      C:\Program Files\Adobe\Acrobat 7.0\ActiveX\AcroIEHelper.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x6d610000 - 0x6d67a000      C:\Program Files\Java\jre1.5.0_11\bin\ssv.dll
    0x5f140000 - 0x5f157000      C:\WINDOWS\system32\OLEPRO32.DLL
    0x01b10000 - 0x01c3d000      c:\program files\google\googletoolbar1.dll
    0x71a10000 - 0x71a1a000      C:\WINDOWS\system32\WSOCK32.dll
    0x779e0000 - 0x77a76000      C:\WINDOWS\system32\CRYPT32.dll
    0x77a80000 - 0x77a92000      C:\WINDOWS\system32\MSASN1.dll
    0x76be0000 - 0x76c0e000      C:\WINDOWS\system32\WINTRUST.dll
    0x76c40000 - 0x76c68000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x76ae0000 - 0x76b0f000      C:\WINDOWS\system32\WINMM.dll
    0x71990000 - 0x719d0000      C:\WINDOWS\system32\mswsock.dll
    0x62e40000 - 0x62e99000      C:\WINDOWS\system32\hnetcfg.dll
    0x719d0000 - 0x719d8000      C:\WINDOWS\System32\wshtcpip.dll
    0x76e90000 - 0x76ecc000      C:\WINDOWS\system32\RASAPI32.dll
    0x76e40000 - 0x76e52000      C:\WINDOWS\system32\rasman.dll
    0x6fee0000 - 0x6ff34000      C:\WINDOWS\system32\NETAPI32.dll
    0x76e60000 - 0x76e8f000      C:\WINDOWS\system32\TAPI32.dll
    0x76e30000 - 0x76e3e000      C:\WINDOWS\system32\rtutils.dll
    0x76960000 - 0x76a15000      C:\WINDOWS\system32\USERENV.dll
    0x72220000 - 0x72225000      C:\WINDOWS\system32\sensapi.dll
    0x76f70000 - 0x76f76000      C:\WINDOWS\system32\rasadhlp.dll
    0x71ca0000 - 0x71cbc000      C:\WINDOWS\system32\actxprxy.dll
    0x76ed0000 - 0x76ef7000      C:\WINDOWS\system32\DNSAPI.dll
    0x77c40000 - 0x77c63000      C:\WINDOWS\system32\msv1_0.dll
    0x76d10000 - 0x76d29000      C:\WINDOWS\system32\iphlpapi.dll
    0x44a40000 - 0x44db1000      C:\WINDOWS\system32\mshtml.dll
    0x021b0000 - 0x021d9000      C:\WINDOWS\system32\msls31.dll
    0x449d0000 - 0x44a30000      C:\WINDOWS\system32\ieapfltr.dll
    0x77650000 - 0x77671000      C:\WINDOWS\system32\NTMARTA.DLL
    0x76f10000 - 0x76f3d000      C:\WINDOWS\system32\WLDAP32.dll
    0x71b50000 - 0x71b63000      C:\WINDOWS\system32\SAMLIB.dll
    0x63380000 - 0x633f8000      C:\WINDOWS\system32\jscript.dll
    0x76bb0000 - 0x76bdf000      C:\WINDOWS\system32\credui.dll
    0x5e430000 - 0x5e43d000      C:\WINDOWS\system32\pstorec.dll
    0x76ac0000 - 0x76ad1000      C:\WINDOWS\system32\ATL.DLL
    0x75f10000 - 0x7600d000      C:\WINDOWS\system32\browseui.dll
    0x71ef0000 - 0x71ef4000      C:\WINDOWS\system32\security.dll
    0x72c70000 - 0x72c79000      C:\WINDOWS\system32\wdmaud.drv
    0x72c60000 - 0x72c68000      C:\WINDOWS\system32\msacm32.drv
    0x77bb0000 - 0x77bc5000      C:\WINDOWS\system32\MSACM32.dll
    0x77ba0000 - 0x77ba7000      C:\WINDOWS\system32\midimap.dll
    0x1b000000 - 0x1b00c000      C:\WINDOWS\system32\ImgUtil.dll
    0x753c0000 - 0x7542b000      C:\WINDOWS\system32\USP10.dll
    0x1b060000 - 0x1b06e000      C:\WINDOWS\system32\pngfilt.dll
    0x43280000 - 0x432b9000      C:\WINDOWS\system32\Dxtrans.dll
    0x6d8f0000 - 0x6d8fa000      C:\WINDOWS\system32\ddrawex.dll
    0x736b0000 - 0x736f9000      C:\WINDOWS\system32\DDRAW.dll
    0x73b10000 - 0x73b16000      C:\WINDOWS\system32\DCIMAN32.dll
    0x35cb0000 - 0x35d07000      C:\WINDOWS\system32\Dxtmsft.dll
    0x44000000 - 0x44077000      C:\WINDOWS\system32\mshtmled.dll
    0x6d580000 - 0x6d592000      C:\Program Files\Java\jre1.5.0_11\bin\npjpi150_11.dll
    0x6d410000 - 0x6d427000      C:\Program Files\Java\jre1.5.0_11\bin\jpiexp32.dll
    0x76f60000 - 0x76f68000      C:\WINDOWS\System32\winrnr.dll
    0x6d460000 - 0x6d478000      C:\Program Files\Java\jre1.5.0_11\bin\jpishare.dll
    0x047b0000 - 0x0494d000      C:\PROGRA~1\Java\JRE15~1.0_1\bin\client\jvm.dll
    0x6d290000 - 0x6d298000      C:\PROGRA~1\Java\JRE15~1.0_1\bin\hpi.dll
    0x03e90000 - 0x03e9c000      C:\PROGRA~1\Java\JRE15~1.0_1\bin\verify.dll
    0x6d310000 - 0x6d32d000      C:\PROGRA~1\Java\JRE15~1.0_1\bin\java.dll
    0x03ea0000 - 0x03eaf000      C:\PROGRA~1\Java\JRE15~1.0_1\bin\zip.dll
    0x6d000000 - 0x6d16a000      C:\Program Files\Java\jre1.5.0_11\bin\awt.dll
    0x72f50000 - 0x72f76000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x6d240000 - 0x6d290000      C:\Program Files\Java\jre1.5.0_11\bin\fontmanager.dll
    0x6d1f0000 - 0x6d203000      C:\Program Files\Java\jre1.5.0_11\bin\deploy.dll
    0x6d5c0000 - 0x6d5e4000      C:\Program Files\Java\jre1.5.0_11\bin\RegUtils.dll
    0x6d3f0000 - 0x6d405000      C:\Program Files\Java\jre1.5.0_11\bin\jpicom32.dll
    0x6d4d0000 - 0x6d4e3000      C:\Program Files\Java\jre1.5.0_11\bin\net.dll
    0x6d4f0000 - 0x6d4f9000      C:\Program Files\Java\jre1.5.0_11\bin\nio.dll
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_1\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_1\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_11 -Djavaplugin.nodotversion=150_11 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_1 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~1.0_1\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_1\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_1\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_11 -Djavaplugin.nodotversion=150_11 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_1 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol vfprintf
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=C:\PROGRA~1\Java\JRE15~1.0_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Fichiers communs\Autodesk Shared\;.
    USERNAME=Administrateur
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 5, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 6 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 1563888k(1130148k free), swap 3505988k(3209400k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0

    I solved my problem with product J2SE 1.5 update 12. Now it works on IE6 and IE7. I think that my problem was a memory leaks. But i don't understand why the last release of J2SE 1.6 don't correct the problem.

  • Jre6 Update 10 signed applet issue.

    I have just upgraded to the Update 10 beta, and attempted to load one of my larger applets with the new -Xmx parameter feature. I have signed this applet with a .JCE file and verified that it is in fact signed. When the applet loads, there is an error stating that the main class was not found, which can be caused by unsigned classes. I hadn't recieved a notification because I already selected to always trust me. I cleared my certificates and my browser cache then restarted my PC. I reopened my applet but again I was not asked if I should trust the publisher. The error still occured. How should I fix this problem?

    Your applets may not run in older versions of Internet Explorer. I tried loading my applet with Mozilla Firefox and it worked just fine, but in my old version of Internet Explorer it would not run. I am not sure if this is a "bug" but if you feel confident that it is please report it.

  • Differnce between -ms/-mx and -Xms/-Xmx

    Was wondering if any could explain the difference between the settings -ms and -Xms (as well as -mx and -Xmx).

    I run java with -Xms and -Xmx flags with identical
    values (which are listed above), and if I set the
    values to any higher than those values (even by 1 MB),
    the browser's window crashes every time it tries to
    load a java applet. For these values or lower it runs
    good, except for poor performance due to memory
    shortage.And what happens when you run it in the applet viewer on those systems? (And thus do not run it in the browser.)

  • Problem with threads within applet

    Hello,
    I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
    this thread is running in endless loop.
    he is doing something and go to sleep on and on.
    the problem is,
    when I refresh my IE6 browser I see more than 1 thread.
    for debug matter, I did the following things:
    inside the thread, sysout every time he goes to sleep.
    sysout in the singleton constructor.
    sysout in the singleton destructor.
    the output goes like this:
    when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
    The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
    The destructor never works (no output there).
    I don't understand what is going on.
    someone can please shed some light?
    thanks.
    btw. I am working with JRE 1.1
    this is very old and big applet and I can't convert it to something new.

    Ooops. sorry!
    I did.
         public void start() {
         public void stop() {
         public void destroy() {
              try {
                   resetAll();
                   Configuration.closeConnection();
                   QuoteItem.closeConnection();
              } finally {
                   try {
                        super.finalize();
                   } catch (Throwable e) {
                        e.printStackTrace();
         }

  • Open web pages from an applet

    I'm developing an applet that has to open some web pages.
    The only way I know is to use the method showDocument that
    needs and URL. So, how to pass parameters to the web page?
    I don't want to put them in the URL: everyone can see
    "secret data"!
    Help me, please.

    Take a look at this example that uses a JEditor pane to hold the HTML page.
    //Create a new JEditor Pane
    jep = new JEditorPane( );
    //Ensure the pane is not editable
    jep.setEditable(false);  
    //Use this to get local HTML file
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");
    //add the html page to the JEditorPane
    jep.setPage(fileURL);Ok the core line of code here is this.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");The standard method for accessing a html file via a URL is thus. As you can see its very similar.
    URL fileURL = new URL("http://www.comp.glam.ac.uk/pages/staff/asscott/progranimate/docs/Manual/Manual.htm");this.getClass().getResourse() will return the file location of the class you are working with.
    By doing the following you can access manual.html in a folder called Manual that sits in the same file location as the class file you are using.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");I hope this helps.
    Andrew.

  • Unable to load database driver from my applet's jar file

    I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
    Any help is appreciated, thanks.

    The simplest approach is always the best. :)Abso-lutely.
    Awesome, that worked perfectly. I Included the extra
    jar file in the applet tag and now my applet makes
    some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations.

  • Applet java file not refreshing in browser

    I have an applet that I am updating and I am not seeing the corresponding update when I open the web page. I can manually download the java class file and look inside it and it definitely is the updated file. I have deleted the browser history. (I am running tests with Firefox 3, IE7, and Safari 4 public beta). Is there something else I need to do to make sure the browser pulls in the latest version of the class file referenced in the html?
    Here is the code:
    <HTML>
    <HEAD>
       <TITLE>A Simple Program</TITLE>
    </HEAD>
    <BODY>
       <CENTER>
          <APPLET CODE="SendRequest.class" WIDTH="500" HEIGHT="150">
          </APPLET>
       </CENTER>
    </BODY>
    </HTML>The applet refers to a hard coded URL to read through a urlconnection. It is always reading a file and showing content, but it is not showing the right file. If I change the name of the referenced file in the java program, it looks like the browser has cached the referred file, rather than throwing and error and saying the file doesn't exist.
    Here is the java
    import java.applet.*;
    import java.awt.*;
    import java.net.URLConnection;
    import java.net.URL;
    import org.w3c.dom.Document;
    import java.lang.String;
    import java.io.*;
    public class SendRequest extends Applet {
        @Override
        public void paint(Graphics g) {
            g.drawRect(0, 0, 499, 149);
            g.drawString(getResponseText(), 5, 70);
        public String getResponseText() {
            try {
                URL url = new URL("http://myserver.com/stats/logs/ex20090603000001-72.167.131.217.log");
                URLConnection urlconn = url.openConnection();
                BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    urlconn.getInputStream()));
                String inputLine;
                String htmlFile = "";
                try {
                    while ((inputLine = in.readLine()) != null)
                        htmlFile += inputLine;
                    in.close();
                    return htmlFile;
                } catch (Exception e) {
                    return "Can't get the string.";
            } catch (Exception e) {
                return "Problem accessing the response text.";
    }Any help would be appreciated. I heard that some files may cache more persistently than others, but I don't fully understand the details.
    Thanks,
    Jim

    Check this [document loader example|http://pscode.org/test/docload/] & follow the link to sandbox.html for tips on clearing the class cache. That relates specifically to caching a refused security certificate, but class caching is much the same. As an aside, getting a console can be tricky in modern times (unless the applet fails completely). It is handy to configure the [Java Control Panel|http://java.sun.com/docs/books/tutorial/information/player.jnlp] to pop the Java console on finding an applet (Advanced tab - Settings/Java Console/Show Console).
    Of course there are two better tools for testing applets, especially in regard to class caching. AppletViewer and Appleteer both make class refresh fairly easy. Appleteer is the better of the two. I can tell you that with confidence, since I wrote it. ;-)

  • EJB 3.0 - Communicate an Applet with a Session Bean

    Hello
    I'm developing an EJB 3.0 app (eclipse and glassfish tools bundle), and I have an applet that has to use remote session beans.
    QUESTION: Is it possible for the applet to connect to EJB?
    QUESTION: By creating a J2EE application client project, can I use @EJB annotations to inject the session bean directly to the applet, avoiding the JNDI lookup?
    (since I imagine that the anwser to the second one is NO, I do the following consideration)
    Given an application client project, I imagine that this application can run remotely on a client machine/JRE. Then this application can use Annotations/injection facilities whenever it runs on a J2EE client container (which I assume consists of a set of libraries provided by the application server vendor, Glassfish in that case). Could this application be deployed using Java Web Start? If so, why can't it be deployed as an applet? (both options run in a client JRE, don't they?).
    QUESTION: In either case (applet or JWS), how do I have to package the JAR file (using Eclipse) so that it contains the needed libraries for accessing the EJB? Which are those libraries?
    At the time being, I'm trying to implement a sample application that follows the "Applet doing JNDI lookup" approach. I have:
    - an EAR project
    - an EJB project (containing an Entity Bean and a Stateless Session Bean with a @Remote interface)
    @Remote
    public interface HelloRemote {
         public String hello(String name);
    @Stateless
    public class Hello implements HelloRemote {
         @Override
         public String hello(String name) {
              return "Hello "+name+"!!";
    }- an Application Client project (containing the applet code):
    public class ClientApplet extends JApplet {
         public void init(){     
              try {
                   Context jndiContext = getInitialContext( );
                   HelloRemote server = (HelloRemote) jndiContext.lookup(HelloRemote.class.getName());
                   setContentPane(new JLabel(server.hello("Gerard")));
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private Context getInitialContext() throws NamingException{
              Properties props = new Properties();
              props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
              props.setProperty("org.omg.CORBA.ORBInitialHost", "myhost");
              props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
              return new InitialContext(props);
    }- a static web project (with a sample web page that contains the applet object the corresponding applet JAR file)
    I tried to export the Application Client project as an "application client JAR", in the hope that the java EE libraries bundled with glassfish (listed as libraries of this project) would be packaged too.
    No success, so now I'll try to copy all the JAR files (one by one) into the +\WebContent\+ folder of the Web Project, and add references to each of them in the archive="" attribute of the +<applet>+ HTML tag. Although this might work, I suspect that I am missing the good/easy way of doing it. Any suggestions?
    Thanks in advance,
    Gerard
    Edited by: gsoldevila on May 6, 2009 7:09 AM

    An Applet can communicate with an EJB via JNDI lookup but I would (personally) use an intermediate Servlet to handle this. Client to Servlet communication is http whereas to ejb is iiop - which might be blocked.
    Injection only works in managed classes (EJB, Servlet, Listeners..) and an Application Client main class. So yes you could use an app client for handling resource injection.
    m

  • Error while accessing a public method of applet from javascript.

    Hi,
    I am getting "Object doesn't support this property or method" error
    when accessing a public method of applet from javascript in IE 6 using
    document.applets[0].myMethod();
    The same is working in IE 7.
    Thanks in advance.
    Regards,
    Phanikanth

    I don't know why it happens, but this works for me in both versions:
    <applet ..... name="MyApplet">
    </applet>and in javascript use
    document.MyApplet.myMethod()

  • Can not view applet in browser (IE5.5)

    only my appletviewer shows my very simple applet.
    in the IE5.5 i can not view my applet... ?
    my applet just have write a string...
    any help ?

    http://forum.java.sun.com/thread.jsp?forum=31&thread=276607

  • A function can not be used in Applet.what's wrong?

    Here is a function.
    private String LoadFile() {
    String input;
    String output="sssssdsdsddf";
    try{
    FileReader f=new FileReader("shu.txt");
    BufferedReader in = new BufferedReader(f);
    while ((input = in.readLine())!= null){output=output+input;}
    in.close();
    }catch(IOException e) {
    System.err.println("Exception caught: " + e.getMessage());
    return output;
    It can be used in Java Application,and work well.but can not be used in Applet,it does not work.what's wrong?

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1215-security.html#sidebar1

Maybe you are looking for