Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using JDIC to open web browser

807606Jun 3 2007 — edited Jun 4 2007
Hi, I am trying to figure out JDIC (0.9.1), and how to use it to open an htm file in Internet Explorer.
My issue is that when I compile, it always says that It can't reference non-static method open(Java.io.File) from static context.

Its definitely NOT in a static context.
public void myMethod(){

      File testFile = new File("Index.htm");
      Desktop.open(testFile);
}
I get the error on Desktop.open

To install it, I pretty much just copied jdic.jar, packager.jar, WinMsiWrapper.dll, and IeEmbed to java's working directory.

Anyone knoe what the issue is? Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2007
Added on Jun 3 2007
15 comments
248 views