applet connection refused exception
Posted on 2003-03-05
i've had this applet that worked perfectly for years. until i changed JRE from 1.4.1_01 to 1.4.1_02. the applet is AppletButton.class that can be gotten from the java site. currently, it gets as far as showing a button on the web page which when clicked opens a frame in a new window. and then it shows the error "Exception: Connection refused: connect"
searched the net but the hits i'm getting are pertaining to database connections. no database is involved in my little app.
i'm using IE 5.5 on Windows 2000. Tools-Advanced has the "Use Java 2v1.4.1_02 for <applet>(requires restart)" checkbox selected.
the registry says that the CurrentVersion of JRE is 1.4. and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment contains folders 1.4 and 1.4.1_02. both folders have:
JavaHome = C:\Program Files\Java\j2re1.4.1_02
RuntimLib = C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll
and those folders and files exist. so i think the setup is okay. i don't like mucking around in this windows registry and haven't tried removing the 1.4 folder and changing the CurrentVersion. haven't had the need to do that before when updating JREs.
also tried it with Opera 7--the button does not even show up.
i've tried going back to j2re.1.4.1_01, that doesn't work anymore. i'm not sure how to start fixing this. would appreciate any pointer/direction.