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!

How to use JDIC

807589Aug 27 2008 — edited Aug 28 2008
I don't know how to make it work.

I have done the followings:

1. Extract downloaded jdic-0.9.5-bin-cross-platform.zip.
2. Put the jdic.jar into C:\Program Files\Java\jdic\
3. Set the ClassPath to C:\Program Files\Java\jdic\jdic.jar
4. Put IeEmbed.exe, jdic.dll, jdic_native.jar, MozEmbed.exe, tray.dll into C:\WINDOWS\system32
5. Create a test.java
import org.jdesktop.jdic.desktop.*;
import java.net.*;
public class test {
public static void main(String[] args)
throws Exception {
Desktop.browse(
new URL("http://www.yahoo.com/")
);
}
}
5. javac test.java

6. java test
Exception in thread "main" java.lang.NoClassDefFoundError: test
Caused by: java.lang.ClassNotFoundException: test
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Any body know how to make it work?? thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2008
Added on Aug 27 2008
1 comment
393 views