This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Applets not running in jre7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applets not running in jre7" Watch "Applets not running in jre7" New topic
Author

Applets not running in jre7

Manchet Kar
Greenhorn

Joined: Jun 06, 2013
Posts: 1
Well..Ranchers and Greenhorns!!

This has been one of the most frustrating problems I had.

I have written a 3d cube animation applet using eclipse IDE and it is running fine in jre6 and Eclipse applet viewer.

Now I have upgraded my jre to 7, REcompiled classes with eclipse IDE (Using jre7) --> Applets are simply not working.

Observations:
1) No java console getting displayed (It gets displayed with just jre6)
2) Not working in IE,Chrome and Firefox. (Again working when tested with just jre6)
3) Did control panel --> java --> settings --> deleted files; Verified jre7 selected in view java option
4) Browser plugins are updated and enabled.
5) tried accessing following link http://java.com/en/download/installed.jsp. with just jre6 --> Displays version of jre plugin
6) Same link(http://java.com/en/download/installed.jsp.) won't work with jre7
7) I ran in jre7, IE as administrator and got following error in IE console. -->

NativeLibLoader: resolving loaded C:\Program Files\Java\jre7\bin\jp2iexp.dll
(Succeeded)
IExplorerPlugin.IExplorerPlugin(0x5442b00)
IExplorerPlugin.IExplorerPlugin(1.7.0_21)
NativeLibLoader: C:\PROGRA~1\Java\jre7\lib\bin\jp2native.dll doesn't exist
NativeLibLoader: trying to load C:\PROGRA~1\Java\jre7\bin\jp2native.dll
(Succeeded)
IExplorerPlugin.addParameters(cAxControl = 0x5442b00)
IExplorerPlugin.CreateControlWindow(cAxControl = 0x5442b00, hWndParent = 0xa06b8
, hWndControlWindow = 0x706ea)
IExplorerPlugin.SetObjectRects(cAxControl = 0x5442b00, left = 0, right = 0, top
= 0, bottom = 0, appletID = null, activated = false)
{IExplorerPlugin.InPlaceActivate(cAxControl = 0x5442b00) entered
}IExplorerPlugin.InPlaceActivate(cAxControl = 0x5442b00) exited
IExplorerPlugin.OnDestroy(cAxControl = 0x5442b00)
IExplorerPlugin.InPlaceDeactivate(cAxControl = 0x5442b00)
IExplorerPlugin.CreateControlWindow(cAxControl = 0x5442b00, hWndParent = 0xa06b8
, hWndControlWindow = 0x706ea)
IExplorerPlugin.SetObjectRects(cAxControl = 0x5442b00, left = 0, right = 0, top
= 0, bottom = 0, appletID = null, activated = false)
{IExplorerPlugin.InPlaceActivate(cAxControl = 0x5442b00) entered
}IExplorerPlugin.InPlaceActivate(cAxControl = 0x5442b00) exited
IExplorerPlugin.SetObjectRects(cAxControl = 0x5442b00, left = 474, right = 974,
top = 187, bottom = 337, appletID = null, activated = true)
IExplorerPlugin is canceled or terminated by IE null
Attempting to start applet
1 JavaFX runtime found.
1) JavaFX 2.2.21 found at C:\PROGRA~1\Java\jre7\
JVMLauncher.start: launcher params:
<-Xbootclasspath/a:C:\PROGRA~1\Java\jre7\lib\deploy.jar;C:\PROGRA~1\Java
\jre7\lib\javaws.jar;C:\PROGRA~1\Java\jre7\lib\plugin.jar>
<-Djava.class.path=C:\PROGRA~1\Java\jre7\classes>
<-Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Java\Deplo
yment\lib\trusted>
<-Dsun.awt.warmup=true>
<--->
<-->
<sun.plugin2.main.client.PluginMain>
<write_pipe_name=jpi2_pid3928_pipe3,read_pipe_name=jpi2_pid3928_pipe2>
JVMLauncher.start(): now - user.startApplet(): 39322 us
JVMLauncher.processArg[0]: C:\Program Files\Java\jre7\bin\jp2launcher.exe
JVMLauncher.processArg[1]: -D__jvm_launched=6166270387
JVMLauncher.processArg[2]: -D__applet_launched=6166231065
JVMLauncher.processArg[3]: -Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Wind
ows\Sun\Java\Deployment\lib\trusted
JVMLauncher.processArg[4]: -Dsun.awt.warmup=true
JVMLauncher.processArg[5]: sun.plugin2.main.client.PluginMain
JVMLauncher.processArg[6]: write_pipe_name=jpi2_pid3928_pipe3,read_pipe_name=jpi
2_pid3928_pipe2
JVMLauncher.processArgs total len: 321, custArgsMaxLen: 8058
JVMLauncher.afterStart(): starting JVM process watcher
JVMInstance.start: JVMID original params array:
[0][0]: <-Xbootclasspath/a:C:\PROGRA~1\Java\jre7\lib\deploy.jar;C:\PROGR
A~1\Java\jre7\lib\javaws.jar;C:\PROGRA~1\Java\jre7\lib\plugin.jar>
[0][1]: <-Djava.class.path=C:\PROGRA~1\Java\jre7\classes>
[0][2]: <-Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Ja
va\Deployment\lib\trusted>
[0][3]: <-Dsun.awt.warmup=true>
[4][0]: <null>
JRE 1.7.0.21: Rejecting attempt to specify unsupported characters in command-lin
e argument: -Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Java\De
ployment\lib\trusted
java.io.IOException: Error closing WindowsNamedPipe: server: true; readPipe: jpi
2_pid3928_pipe3, readBufferSz: 4096; writePipe: jpi2_pid3928_pipe2, writeBufferS
z: 4096
at sun.plugin2.ipc.windows.WindowsNamedPipe.close(Unknown Source)
at sun.plugin2.message.transport.NamedPipeTransport.shutdown(Unknown Sou
rce)
at sun.plugin2.message.transport.NamedPipeTransportFactory.dispose(Unkno
wn Source)
at sun.plugin2.main.server.JVMInstance.disposePipe(Unknown Source)
at sun.plugin2.main.server.JVMInstance.restart(Unknown Source)
at sun.plugin2.main.server.JVMInstance.access$2800(Unknown Source)
at sun.plugin2.main.server.JVMInstance$Listener.jvmExited(Unknown Source
)
at sun.plugin2.jvm.JVMLauncher.fireJVMExited(Unknown Source)
at sun.plugin2.jvm.JVMLauncher.access$300(Unknown Source)
at sun.plugin2.jvm.JVMLauncher$JVMWatcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
at sun.plugin2.message.Pipe$1.run(Unknown Source)
at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
at sun.plugin2.message.Pipe.receive(Unknown Source)
at sun.plugin2.main.server.JVMInstance$WorkerThread.run(Unknown Source)
java.io.IOException: Never received connection from client side
at sun.plugin2.ipc.windows.WindowsNamedPipe.waitForConnection(Unknown So
urce)
at sun.plugin2.ipc.windows.WindowsNamedPipe.write(Unknown Source)
at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.flush
(Unknown Source)
at sun.plugin2.message.transport.NamedPipeTransport.signalDataWritten(Un
known Source)
JVMLauncher.start: launcher params:
at sun.plugin2.message.transport.SerializingTransport.write(Unknown Sour
ce)
at sun.plugin2.message.Pipe.send(Unknown Source) <-Xbootclasspath
/a:C:\PROGRA~1\Java\jre7\lib\deploy.jar;C:\PROGRA~1\Java\jre7\lib\javaws.jar;C:\
PROGRA~1\Java\jre7\lib\plugin.jar>

<-Djava.class.path=C:\PROGRA~1\Java\jre7\classes>
at sun.plugin2.main.server.JVMInstance.sendMessageDirect(Unknown Source)

<-Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Java\Deplo
yment\lib\trusted>
at sun.plugin2.main.server.JVMInstance.sendMessage(Unknown Source)
<-Dsun.awt.warmup=true>
at sun.plugin2.main.server.JVMInstance.startImpl(Unknown Source)
<--->

<-->
at sun.plugin2.main.server.JVMInstance.start(Unknown Source) <sun.plu
gin2.main.client.PluginMain>

<write_pipe_name=jpi2_pid3928_pipe5,read_pipe_name=jpi2_pid3928_pipe4>
at sun.plugin2.main.server.JVMManager.getOrCreateBestJVMInstance(Unknown
Source)
JVMLauncher.start(): now - user.startApplet(): 1530731 us
at sun.plugin2.main.server.JVMManager.startAppletImpl(Unknown Source)
at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
at sun.plugin2.main.server.IExplorerPlugin.maybeStartApplet(Unknown Sour
ce)JVMLauncher.processArg[0]: C:\Program Files\Java\jre7\bin\jp2launcher.exe

JVMLauncher.processArg[1]: -D__jvm_launched=6167761796
at sun.plugin2.main.server.IExplorerPlugin.access$200(Unknown Source)
JVMLauncher.processArg[2]: -D__applet_launched=6166231065
at sun.plugin2.main.server.IExplorerPlugin$BackgroundStarter$1.run(Unkno
wn Source)JVMLauncher.processArg[3]: -Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\e
xt;C:\Windows\Sun\Java\Deployment\lib\trusted

JVMLauncher.processArg[4]: -Dsun.awt.warmup=true
at sun.plugin2.main.server.IExplorerPlugin$1.run(Unknown Source)
JVMLauncher.processArg[5]: sun.plugin2.main.client.PluginMain
JVMLauncher.processArg[6]: write_pipe_name=jpi2_pid3928_pipe5,read_pipe_name=jpi
2_pid3928_pipe4
JVMLauncher.processArgs total len: 321, custArgsMaxLen: 8058
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
at sun.plugin2.message.Pipe$1.run(Unknown Source)
at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
at sun.plugin2.message.Pipe.receive(Unknown Source)
at sun.plugin2.main.server.JVMInstance$WorkerThread.run(Unknown Source)
JVMLauncher.afterStart(): starting JVM process watcher
JVMInstance.start: JVMID original params array:
[0][0]: <-Xbootclasspath/a:C:\PROGRA~1\Java\jre7\lib\deploy.jar;C:\PROGR
A~1\Java\jre7\lib\javaws.jar;C:\PROGRA~1\Java\jre7\lib\plugin.jar>
[0][1]: <-Djava.class.path=C:\PROGRA~1\Java\jre7\classes>
[0][2]: <-Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Ja
va\Deployment\lib\trusted>
[0][3]: <-Dsun.awt.warmup=true>
[4][0]: <null>
JRE 1.7.0.21: Rejecting attempt to specify unsupported characters in command-lin
e argument: -Djava.ext.dirs=C:\PROGRA~1\Java\jre7\lib\ext;C:\Windows\Sun\Java\De
ployment\lib\trusted


My analysis so far:
1) This is not issue specific to my code as even standard java link to very versions are not workings. To summarize --> In my environment, with jre7 applets are not working.

However even with the error trace above, I am not able to understand what's wrong here; I read jre7 has got some enhanced security but still I am clueless regarding resolution.

Please help me out. I am fighting with this demon from last 10 business days and visited multiple forums but to no avail.

Any help is greatly appreciated.

Yours sincerly,
Manchet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Applets not running in jre7
 
Similar Threads
Applet throwing exception when running it through web browser
cannot open applet in firefox
HotSpot EXCEPTION_ACCESS_VIOLATION
problem with Rules Roundup Game
Unexpected Error