home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch12 / NetscapeUsers.txt < prev    next >
Text File  |  1997-01-05  |  5KB  |  110 lines

  1. I ran into a problem that had me stumped for about a week and a half. - I
  2. Could not get the browser to talk to the java code. Then someone else mailed
  3. me with the same problem which is summarised below. If you see a similar output
  4. on the java console then read on
  5. Joel Tanis wrote:
  6. >
  7. > I like, I like...
  8. > I just can't get a "handle"; (Browser handle that is.)
  9. > Am I missing something?
  10. > Using Cosmo beta3 and Navigator 3.0; Win95.
  11. [snip]
  12. > * index.html loads smoothly, Cosmo plugin loads with embedded basic.wrl
  13. > * editor window opens ok
  14. > * editor works fine(I know, it's "alpha")
  15. > * write to output window works
  16. > * but vrml doesn't update, because...
  17. > * Navigator Java Console says:
  18. >         Attempting to get Browser handle
  19. >         static getBrowser() call failed, attempting Javascript method
  20. >         Browser not available
  21. >
  22. > hmmmm.......seems my Browser has "wandered" off somewhere ;-)
  23. > Any ideas? Suggestions? I'm not at "guru" level with Java yet, so I might
  24. > be overlooking the obvious here. ;-)
  25.  
  26. Here is my story..
  27.  
  28. My development system here is Cosmo Beta3, NS 3.01, NT 4.0 service pack
  29. 1. (hardware - P166, 64MB, Millenium 8MB etc)
  30.  
  31. Everything worked fine when I installed cosmo 2a. At that stage I had NT
  32. 4 without the service pack. I updated to beta 3 (well many updates
  33. because I have an arrangement with them for alpha-beta test). These all
  34. worked fine. I installed the service pack. It stopped working.
  35.  
  36. Since then I have completely stripped the machine of all references to
  37. any and all internet references, This has included hand purging the
  38. system registries and deleting of all software, browsers, plugins,
  39. everything. I reboot the machine, install a new copy of NS 3.01 with
  40. default settings and then immediately install Cosmo beta 3, again with
  41. all defaults. Reboot machine when asked. Upon login in I immediately
  42. start NS, and load VermelGen. Not go, same error. I go through the same
  43. setup of all the usual customisations etc etc. Still no go.
  44.  
  45. I have tried the HTML file both with and without the MAYSCRIPT parameter
  46. and it does not work. I also tried just a very simple class file that
  47. contained the following code
  48.  
  49. Completely stumped, I go to the Netscape site to try and find answers.
  50. The closest answer that I can find is the following article in the tech
  51. information section. The URL is
  52.  
  53. http://help.netscape.com/kb/client/961024-6.html
  54.  
  55. ---- Begin quote --
  56. Java and JavaScript CLASSPATH error/problem
  57.  
  58. This is related to a Microsoft's update for Remote Process
  59. Communication protocol.
  60.  
  61. After the installation of this update, Netscape's Java and JavaScript
  62. don't work -- JavaScript doesn't work period, and Java fails with a
  63. dialog box with text to the effect:
  64.  
  65. file java_30 could not be found in the CLASSPATH Your current
  66. CLASSPATH variable is:
  67. C:\Program Files\Netscape\Navigator\Program\java\classes\java_30 etc.
  68.  
  69. Obviously, the file is in the right location.
  70.  
  71. To check if you are affected, find a file called rpcrt4.dll on in
  72. your windows/system directory, and right-click on it.
  73. Click "properties". If your version is 4.00.953, you are affected.
  74. To get Netscape working again, you will have to replace this file
  75. with the older version.
  76.  
  77. If you installed cabinet file viewer (available on Microsoft's web
  78. site) on your computer, you can extract the file rpcrt4.dll from
  79. archive Win95_11.cab on your windows95 CD-ROM in WIN95 directory.
  80.  
  81. To install the file, you will have to place the "good" version in a
  82. temporary location (C:\TMP will do). Restart the computer in DOS
  83. mode. Change directory to C:\WINDOWS\SYSTEM rename the "bad" file
  84. (REN rpcrt4.dll rpcrt4.953), and move the "good" file in its place
  85. (MOVE C:\TMP\RPCRT4.DLL C:\WINDOWS\SYSTEM). Type "EXIT".
  86.  
  87. The reason for all this trouble is if a dll is active ("used by the
  88. system"), you can not rename or replace the file.
  89.  
  90. Notice: this procedure may not work if your Windows partition is
  91. compressed.
  92.  
  93. ---end quote
  94.  
  95. By the looks of this it is definitely a Microsoft problem in the update.
  96.  
  97. With NT 4 the same problem afflicts us except that the answer lies in getting
  98. the Service pack #2 installed on your system.
  99.  
  100. If you have NT 4 and service pack 1 you will NOT see output in the VRML window.
  101. YOU must be running either the original version or service pack 2.
  102.  
  103. If we look at the silver lining in this black cloud - it forced me to
  104. write code that allowed me to keep working even in the absence of a
  105. browser. Hence you could theoretically run this using the AppletViewer
  106. (although I have never tried).
  107.  
  108. Justin Couch
  109. 5 Jan 1997
  110.