Link to home
Start Free TrialLog in
Avatar of vanfleet
vanfleet

asked on

Java Not Starting

I'm running Netscape 4.05 on Windows NT and every time I goto a page that has a Java Applet the Cue line says "Starting Java ..." and the entire Netscape session becomes locked up.  PlaidMan (in the note on Jan 4th entitled "Starting Java")   suggested that the browser is just loading "it's internal JRE" and that "Eventually, the page loads and you don't have to worry about it until you open Netscape next time."  

This does not seem to be the case for me, I'm running a Pentium 300 MHz machine with 256 meg of memory and  after a half an hour Netscape was still locked up.  So my question is, what do I need to do to get Netscape 4 to load an applet?  Thanks.

vanfleet
Avatar of sybe
sybe

see http://www.winfiles.com/bugs/nsjava.html

basically the solotion is to add
-start_java
in the shortcut to NN4


Avatar of vanfleet

ASKER

I thought this solution would fix my problem but it has not, when I put -start_java in the shortcut and tried to start it, all I got was the splash window with the message "Starting Java..." then once again NN4 is locked up.

I also loaded Communicator 4.04 on a different machine and had exactly the same result.  I noticed that the fix to this problems on www.winfiles.com is for Communicator 4.02 and 4.03 running windows 95, I'm running 4.04 and 4.05 on Windows NT.  Does someone know what's going on here?
Please open the java console in the tools menu. See what message it displays.
You can download the developer version of netscape 4.05 (which is different from release) from developer.netscape.com. This doesnt give any problems.

vijay

When I open the Java Console I get the same result as before, I get a message at the bottom of my window saying Starting Java ... then it's gone out to lunch again.  I really
don't understand this, am I the only one having this problem?

I haven't tried the developer version yet, I'll try it out and see what happens, this may get me up and running but it won't help my customers much.

I'd be happy to add another 100 porints (or more) if someone can offer me an easy fix that I can offer to my customers also.  Thanks.
There r many problems that causes the applets can not run in browsers.

Most of problems can be detected by java console.
You can use [Communicator][Java Console] to open the cosole to debug your applet.
Press [h] , you will see the debug options.
Please turn on the options, and press shift key and click [Reload] in same time, you will find the problems.

Press [0-9], you can see the trace your applet in detail.

Press [l], you will see the classes downloaded by browser. Maybe, you can find the classes that can not be downloaded properly.
(It's the most problems of Applet)
threshold

Please read my previous note, my problem is not with one single applet, my problem is that everytime Java tries to start, netscape becomes locked up.  As I said in my previous note, when I try to start the Java Console Netscape also becomes lock up, and I can get no information from it.
As I said, You can open the java console first and set up the opetions, then open the document that contains you applet, then click console quickly.
You will c message from the console.
Maybe, your first applet has take too much CPU time. If it happens, the other applications will be slow too.
Or there is many classes needed, NS is busy to load them.

There are many reasons cause Browser be locked up, You can list the source here, it's helpful to find the problem.
sorry, wrong typing, It's 'options', not 'opetions'
threshold, I appreciate your help but your still not understanding my problem.  I can NOT under ANY circumstances bring up the Java Console, even if I have a blank page loaded the Java Console will NOT come up at all.  All I get is a locked up session with the CPU running at 100%.

Every time Netscape tries to start Java it becomes locked up, this includes the following:

 - When I try bring up the Java Console
 - When I put -start_java in the shortcut
 - When I try to load a page that has a Java applet

ALL of these circumstances result in a locked up session, and each time the session becomes locked up, the message at the bottom of the Netscape window says "Starting Java ...".
sorry, wrong typing, It's 'options', not 'opetions'
Did you try the examples of http://java.sun.com?
If the applets from Sun run well in your browser, I think there is something wrong in the Thread of your applet.
Maybe, One of the threads of the applet contains a endless loop, it will cause leak of CPU time.
If there is a loop to perform 'Delay' function, you can use the 'sleep(n)' to replace it.

You can print something by System.out.println(...), and find out the endless loops.
I'M NOT TRYING TO RUN MY OWN APPLET YET, I'M ONLY TRYING TO GET JAVA TO START!
Oh, I c...
You can bring up the Java Console.
I think some files needed by NS 4.05 are corrupted, or under wrong permissions.
Uninstall NS 4.05 and restart your Computer and reinstall it in other directory.
good luck.
can't, not can. sorry
ASKER CERTIFIED SOLUTION
Avatar of VincentT
VincentT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
VincentT,

The Netscape 4.05+jdk1.1 version worked fine.  It wasn't quite the solution I was looking for, even though it may be the only one.  Before I grade your answer I wanted to clarify somthing, I tried unseting the classpath but the results were the same, I was wondering if I need to remove the envorinment variable alltogether or can I just set it equal to nothing?  Can you give me anymore information about this?  Thanks.
When I say "unsetting the classpath", I imply "make sure you don't have a classes.zip somewhere in your classpath"!

conflicts happens when the VM find two sets of core classes.
(at least, on unix (linux))
Thanks, for your help!