Skip to main content

JDIC source + Browser demo

12 replies [Last post]
kirillica
Offline
Joined: 2009-12-05

Hi there!

I'm searching for Web Browser with ability of Java control like DOM, network/traffic monitor and etc. Seems that JDIC is a superb product, but:

1) It's a small mess in download folders. What is the latest stable source code folder?
2) Where I can find source for Browser demo?
3) Is it possible to perform operations I want to perform like network/traffic monitor for browser? Build a wrapper/listeners for it?

Thanks in advance,
New JDIC explorer,
Kirill

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zombi
Offline
Joined: 2003-06-26

Please read this pretty old tutorial about JNI (the Java Native Interface), how to run programs with native parts. Hope it helps : http://java.sun.com/docs/books/jni/html/start.html#27157

kirillica
Offline
Joined: 2009-12-05

It seems to me problem is somewhere ot there... I can't register any DLL in my WinXP SP3... And (seems to me) I can't use JDIC at all. I googled for several hours with no luck - LoadLibrary failed... :(((

Message was edited by: kirillica

zombi
Offline
Joined: 2003-06-26

I don't know, why do you want to register a dll, or what is it for, the only thing is needed is to put in a directory, and start the VM with -Djava.library.path=

zombi
Offline
Joined: 2003-06-26

JDIC is more or less an abandoned project, after the Sun guy left the project, no one had enough time and knowledge to fix things and continue working on it.
The source code of the JDIC is in cvs, you can found more help about getting the code, here: https://jdic.dev.java.net/source/browse/jdic/
As I remember, JDIC browser is pretty much limited to showing urls, documents, and injecting javascript codes in it, so I think you cant monitor the traffic with it.

BR,
Zsombor

kirillica
Offline
Joined: 2009-12-05

Thanks Zsombor,

MB I should try some other Java Browser.. can you suggest me smth?

zombi
Offline
Joined: 2003-06-26

Probably give a try to this one : http://djproject.sourceforge.net/

kirillica
Offline
Joined: 2009-12-05

This a fantastic project with the same problem: Flash via ActionScript traffic can't be monitored :((

kirillica
Offline
Joined: 2009-12-05

BTW I've downloaded IDICplus 0.2.2 and get all the time:

java.lang.NullPointerException
at org.jdic.NativeExtractor.copyStream(NativeExtractor.java:47)
at org.jdic.NativeExtractor.loadLibruary(NativeExtractor.java:83)
at org.jdic.NativeLoadMgr.loadLibrary(NativeLoadMgr.java:99)

Which means that InputStream is null...

kirillica
Offline
Joined: 2009-12-05

...and build is not working too:

[javac] Compiling 24 source files to C:\Program Files\wamp\www\JDICplus-0.2.2-src\build\classes
[javac] C:\Program Files\wamp\www\JDICplus-0.2.2-src\src\share\classes\org\jdic\NativeLoadMgr.java:45: cannot find symbol
[javac] symbol : class NativeExtractor
[javac] location: class org.jdic.NativeLoadMgr
[javac] clNativeExtractor = NativeExtractor.class;
[javac] ^
[javac] C:\Program Files\wamp\www\JDICplus-0.2.2-src\src\share\classes\org\jdic\NativeLoadMgr.java:99: cannot find symbol
[javac] symbol : variable NativeExtractor
[javac] location: class org.jdic.NativeLoadMgr
[javac] NativeExtractor.loadLibruary(libname);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors

But demo/JDICplus_native__applet/src is in (Eclipse) Java Build Path Source: Eclipse sees it perfectly, Ant - not :(

kirillica
Offline
Joined: 2009-12-05

I just copied NativeExtractor next to NativeLoadMgr (org.jdic package in src/share/classes) and build was successful. But now the other error I see all the time:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.jdic.web.peer.WBrComponentPeer.initIDs()V
at org.jdic.web.peer.WBrComponentPeer.initIDs(Native Method)
at org.jdic.web.peer.WBrComponentPeer.onAddNotify(WBrComponentPeer.java:536)

any comments?

kirillica
Offline
Joined: 2009-12-05

And one more error:

java.lang.UnsatisfiedLinkError: C:\Documents and Settings\Kirill Linnik\Local Settings\Temp\jdicplus\jdicWeb.dll: %1 is not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)

it was event loaded, but... no luck ;(

kirillica
Offline
Joined: 2009-12-05

Tired of trying... Registering DLL doesn't help, because it cannot be registered.Windows says: LoadLibrary("") failed - The specified module could not be found.