Skip to main content

0.8.5 does not start the browser.

10 replies [Last post]
onclejibi
Offline
Joined: 2004-08-19
Points: 0

I will redo my post since I edited it so much it became unreadable:

Version 0.8.5 browser seems to have problems on the windows platform. I tried it on 10 different computers, and it worked on 2 of them. I tried both the SimpleBrowser included in the distribution and to embed it in my application.

The problem does not seem to be linked to the windows version (I got it to work on Win 2000 advanced server and Windows XP2 with AND without SP2 installed), on the JRE version (All my computers had either JRE 1.4.2_05 and JRE 1.4.2_04, and it worked on both), or on the IE version (I didn't try Mozilla).

I didn't receive any exception, nor did I had any event in the event viewer. The browser window opens, but there's no browser component, only an empty gray frame.

I tried changing OS version and JRE version on a computer where it worked, but it worked all the time. I'm unable to find something common on the computers where it worked. At least two of the computer where it didn't work were able to run the browser with jdic 0.8.4.1 installed (I didn't try on the others).

If someone was able to reproduce this problem, it would be greatly appreciated. After a couple hour of testing, I'm still unable to pinpoint a reason for this behaviour.

Jean-Baptiste Blanchet

Message was edited by: onclejibi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
grims
Offline
Joined: 2006-02-17
Points: 0

I was able to get the Browser demo to work this morning on the 3 machines that it hadn't worked on previously. For me, the key to getting it to work was to make sure that the JAVA_HOME variable was set (to the root of the java installation, e.g. c:\jdk1.4.2). Note: I didn't see any reference to JAVA_HOME in the docs, but I noticed a reference to it while digging around in the source code. None of the other suggestions in the installation guide related to paths seemed to make any difference.

If that doesn't work for you, you might also want to verify the version of the vm that you are using (by typing java -version). On one of the machines I was using, I thought that it was pointing to a 1.4.2 jdk, but it was actually pointing to a 1.4.1. Once I corrected that, the app fired up just fine.

Good luck...

onclejibi
Offline
Joined: 2004-08-19
Points: 0

All my computers have at least the 1.4.2_04 JRE.

It is indeed the JAVA_HOME variable. What is strange is that it works on computers where it isn't set. Since the neither the JRE or the JDK now sets this variable, would it be possible to change the code so it isn't required anymore? It would simplify deployment by webstart.

Thanks,

JB

Message was edited by: onclejibi

georgez
Offline
Joined: 2003-08-19
Points: 0

Hi all,

Thanks for the test and report, I confirmed the problem, and reported an issue to track it:
https://jdic.dev.java.net/issues/show_bug.cgi?id=92

The fix (or updated doc for the requirement) will come very soon.

Thanks,
-George.

grims
Offline
Joined: 2006-02-17
Points: 0

I've been trying to figure out this problem as well, so 'onclejibi' is not the only one. Of the 5 computers that I've tried 0.8.5 on this morning, only 2 have been able to run the Browser demo. The FileExplorer and FileChooser demos seem to work fine, but when I launch the Browser demo, 3 of the machines just show the outer window with a gray panel.

I'm in the process of trying to go through the suggested debugging on each of the various machines, so I'll post another message if I find anything interesting.

onclejibi
Offline
Joined: 2004-08-19
Points: 0

Is there any news on this problem? I didn't see it added as an issue. Were the devs able to reproduce the problem? Is there an ETA on a fix?

Thanks,

JB

georgez
Offline
Joined: 2003-08-19
Points: 0

Hi,

I didn't reproduce the problem, as I have just two XP machines available (both work), I'll try to check it and give updates.

Thanks,
-George.

georgez
Offline
Joined: 2003-08-19
Points: 0

Hi,

I really appreciate your test and I'm sorry for that.
Some points below:

1. I tested and released the binary on Windows with SP2. It works.

2. Below code is not necessary to put in your JDIC apps:
try
{
org.jdesktop.jdic.init.JdicManager jm = org.jdesktop.jdic.init.JdicManager.getManager();
jm.initShareNative();
jm.initBrowserNative();
}
catch (org.jdesktop.jdic.init.JdicInitException jie)
{
jie.printStackTrace();
}

Which is only used internally. Please do not make any changes to your previous JDIC apps, they SHOULD simplely work with the new release.

3. Can the released demo apps (under the demo/ subdirectory) work? Besides Browser/SimpleBrowser, does the FileExplorer demo work?

4. If neither the FileExplorer or the Browser demo works, please try to reset the CLASSPATH, PATH to only include the jar file path, and the native directory, and check it again.

5. If only the Browser not working, are you using IE or Mozilla as the default browser? For IE, it should work. For Mozilla, there is a known problem that the Browser component at the moment doesn't work with Mozilla 1.6/1.7., stated in the included ChangeLog file, and also in below thread:
http://www.javadesktop.org/forums/thread.jspa?threadID=4652&tstart=0

Thanks for the great help!

onclejibi
Offline
Joined: 2004-08-19
Points: 0

The file explorer works. For the other questions, please see my edited post above (I was editing it while you were posting).

JB

georgez
Offline
Joined: 2003-08-19
Points: 0

Hi JB,

Now I'm confused as well. Would you help to check it again,
you know, there is a detailed usage instruction at:
https://jdic.dev.java.net/documentation/README.html#Installation

which was updated, and there is a section
"For JDIC before version 0.8.5, additional settings to use package org.jdesktop.jdic.browser: ..."

Could you follow exactly the instructions for 0.8.5, and see if it works?

Thanks

onclejibi
Offline
Joined: 2004-08-19
Points: 0

There's 2 instructions to use jdic 0.8.5, as I see it:

- Add jdic.jar to CLASSPATH.
- Add the directory of native libraries (*.dll or *.so) to PATH (on Windows) or LD_LIBRARY_PATH (on Linux/Solaris).

I've done both, and I'm sure they're done correctly because:

- If JDIC wasn't in the CLASSPATH, I'd get a ClassNotFoundException, which I don't get.
- If the dll weren't in the PATH, I'd get an UnsatisfiedLinkError for jdic.dll or a "Can't execute native browser. ErrMsg is null." for IeEmbed.exe. (I don't get any error message if I remove nspr4.dll, but i don't know if this library is used or not by the browser).

I do not get any error message, on any of the computers.
When I start the SimpleBrowser on a computer where it works, the window appear and afterward, the browser component seems to strech from the lower right corner (I don't know what cuase this behaviour, but it's the way I see it). On the computer where it don't work, the window appear normally, but the browser component never show up.

I'd really like if someone was able to reproduce this problem, just to confirm that I'm not the one to blame :^D

JB