aspose file tools*
The moose likes Applets and the fly likes Can applets with JDIC run on Win7 with IE9? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Can applets with JDIC run on Win7 with IE9?" Watch "Can applets with JDIC run on Win7 with IE9?" New topic
Author

Can applets with JDIC run on Win7 with IE9?

Kelly Boyd
Greenhorn

Joined: Apr 28, 2012
Posts: 2
Hello,

I have an application (I did not write it, I am only trying to get it to run, but I do have access to some of the code) that starts up using a .jnlp file, then at some point it launches a web browser using JDIC and goes to a designated URL. This works fine on two machines:

1. XP, Internet Explorer 7, java 1.5.0_11 installed, (all other java removed)
2. Win 2003, Internet Explorer 8, java 1.5.0_11 installed, (all other java removed)

I have a third machine with Windows 7, Internet Explorer 9, java 1.5.0_11 installed, (all other java removed). The application that starts with the .jnlp works until it gets to the point where it needs to launch the web browser. It just opens the window with a panel, but the browser fails to launch. There is not an error recorded in the console.

If, however, I install java 1.6, the following error does get recorded to the java console: Can/should I assume this would be the reason it is not running under 1.5.0_11 as well?

org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at bsh.classpath.ClassManagerImpl.getPlainClassForName(Unknown Source)
at bsh.BshClassManager.plainClassForName(Unknown Source)
at bsh.classpath.ClassManagerImpl.getClassForName(Unknown Source)
at bsh.BshClassManager.classForName(Unknown Source)
at bsh.NameSpace.classForName(Unknown Source)
at bsh.NameSpace.getImportedClassImpl(Unknown Source)
at bsh.NameSpace.getClassImpl(Unknown Source)
at bsh.NameSpace.getClass(Unknown Source)
at bsh.Name.toClass(Unknown Source)
at bsh.BSHAmbiguousName.toClass(Unknown Source)
at bsh.BSHType.getType(Unknown Source)
at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.util.BeanShellBSFEngine.eval(BeanShellBSFEngine.java:175)
at org.apache.bsf.BSFManager$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.eval(Unknown Source)
at dinmar.oacis.common.util.oaScript.<init>(DashoA5*..)
at dinmar.oacis.common.util.oaScript.<init>(DashoA5*..)
at dinmar.oacis.common.util.oaScript.<init>(DashoA5*..)
at ac.a(DashoA5*..)
at ab.a(DashoA5*..)
at ab.fireContextChange(DashoA5*..)
at dinmar.oacis.applet.core.oaJPanel$ContextUpdate.isAccepted(DashoA5*..)
at dinmar.oacis.applet.core.oaJPanel.setContext(DashoA5*..)
at dz.fireContextChange(DashoA5*..)
at x.c(DashoA5*..)
at dinmar.oacis.applet.core.oaJApplet.changeContext(DashoA5*..)
at dinmar.oacis.applet.core.oaJApp.changeContext(DashoA5*..)
at dinmar.oacis.applet.core.oaJPanel.changeMainContext(DashoA5*..)
at as.a(DashoA5*..)
at as.mouseClicked(DashoA5*..)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at i.dispatchEvent(DashoA5*..)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
... 60 more
Can't execute the native embedded browser. Error message: CreateProcess: IeEmbed.exe -port=52751 error=2


I did an "s" in the system console to dump system and deployment properties.

One strange thing I noticed is the double backslashes in several paths: java.class.path = C:\\Program Files\\Java\\jre1.6.0_22\\lib\\deploy.jar

Not sure where this is coming from, however. In the Environment variables, the CLASSPATH is: .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Can someone please point me in the correct direction for solving this issue?

Thank you very much!!!
Caroline
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can applets with JDIC run on Win7 with IE9?
 
Similar Threads
While loading page error from console
Applet doesn't work in browser.
java.io.StreamCorruptedException: invalid stream header: C2ACC3AD
Exception related to JDIC.
File Uploading Applet