Discussion:
netbeans won't let me run java applets
Charles Greenacre
2005-12-14 17:05:26 UTC
Permalink
I've installed netbeans 4.1 using this download file j2sdk-1_4_2_10-nb-4_1-win-ml.exe

The ide starts fine, compiles file, and java applications run (whether developed using the ide or 3rd party app).

My problem is that java web applets don't work, including the verify java installation at java.com. I don't have a applet in Windows XP Home SP2 Control Panel named Java. I don't have in IE 6 Tools/Internet Options/Advanced tab, a Java section.

Control Panel/Add Remove programs shows Netbeans 4.1 and Java 2 SDK, SE v1.4.2_10. I don't remember installing the latter-I only remember installing the former. The way I remember is that the netbeans installed the SDK, but my memory is hazy.

How do I run Java applets that are at websites. All I get is just a little red x.

Thanks
charles
PS. If you think you have read this before, you are probably right. Nobody responded to my question on Dec 6. So I'm asking it again.
Wade Chandler
2005-12-14 17:34:19 UTC
Permalink
Post by Charles Greenacre
I've installed netbeans 4.1 using this download file
j2sdk-1_4_2_10-nb-4_1-win-ml.exe
The ide starts fine, compiles file, and java
applications run (whether developed using the ide or
3rd party app).
My problem is that java web applets don't work,
including the verify java installation at java.com.
I don't have a applet in Windows XP Home SP2 Control
Panel named Java. I don't have in IE 6
Tools/Internet Options/Advanced tab, a Java section.
Control Panel/Add Remove programs shows Netbeans 4.1
and Java 2 SDK, SE v1.4.2_10. I don't remember
installing the latter-I only remember installing the
former. The way I remember is that the netbeans
installed the SDK, but my memory is hazy.
How do I run Java applets that are at websites. All
I get is just a little red x.
Thanks
charles
PS. If you think you have read this before, you are
probably right. Nobody responded to my question on
Dec 6. So I'm asking it again.
For what ever reason the plug-in isn't registered with
your installation of Internet Explorer. One you want
to re-install a JRE (>= java 1.5 update 5 should be
good). Two you want to be sure and select to register
the plugin with IE if you are given an option and some
check boxes....if you are not given the option it
should register with IE automatically. If you have an
issue go to www.java.com (that exact url) and click on
Download now. You may even have something messed up
in your computers registry, but for what ever reason
you don't have the plug-in registered correctly to
show applets using the java plugin.

You can verify your java plug-in installation at:
http://www.java.com/en/download/installed.jsp?detect=jre

I think it will walk you through

Wade
Wade Chandler
2005-12-14 17:37:10 UTC
Permalink
Post by Charles Greenacre
I've installed netbeans 4.1 using this download file
j2sdk-1_4_2_10-nb-4_1-win-ml.exe
The ide starts fine, compiles file, and java
applications run (whether developed using the ide or
3rd party app).
My problem is that java web applets don't work,
including the verify java installation at java.com.
I don't have a applet in Windows XP Home SP2 Control
Panel named Java. I don't have in IE 6
Tools/Internet Options/Advanced tab, a Java section.
Control Panel/Add Remove programs shows Netbeans 4.1
and Java 2 SDK, SE v1.4.2_10. I don't remember
installing the latter-I only remember installing the
former. The way I remember is that the netbeans
installed the SDK, but my memory is hazy.
How do I run Java applets that are at websites. All
I get is just a little red x.
Thanks
charles
PS. If you think you have read this before, you are
probably right. Nobody responded to my question on
Dec 6. So I'm asking it again.
Adding to my previous reply...this has nothing to do
with Netbeans. This is a java runtime issue
specifically dealing with the java plug-in, internet
explorer, and applets and other java plug-in mime
types.

More to my previous comment about how to fix this:
If you have specified in a web page a particular
version of the java plugin for your applet and you
have a different version installed (lesser version)
then you'll get this error as well.

Wade
Charles Greenacre
2005-12-17 13:19:32 UTC
Permalink
Why would I want to install java 1.5 update 5 (or 6) runtime, when I'm
developing (learning) on 1.4.2_10.

It goes against everything I've learned in the IT field. Make sure your
versions match . Why is it ok in this situation to have differing version
numbers?

I can't find a runtime for 1.4.2_10

I'm staying with 1.4.2_10 until netbeans 1.5 is out of its beta. No using
trying to debug a beta product when you are still learning the product--I
know my limits.

Thanks
Charles, a java newb
Post by Wade Chandler
For what ever reason the plug-in isn't registered with
your installation of Internet Explorer. One you want
to re-install a JRE (>= java 1.5 update 5 should be
good). Two you want to be sure and select to register
the plugin with IE if you are given an option and some
check boxes....if you are not given the option it
should register with IE automatically. If you have an
issue go to www.java.com (that exact url) and click on
Download now. You may even have something messed up
in your computers registry, but for what ever reason
you don't have the plug-in registered correctly to
show applets using the java plugin.
http://www.java.com/en/download/installed.jsp?detect=jre
I think it will walk you through
Wade
Wade Chandler
2005-12-17 16:05:38 UTC
Permalink
Post by Charles Greenacre
Why would I want to install java 1.5 update 5 (or
6) runtime, when I'm
developing (learning) on 1.4.2_10.
It goes against everything I've learned in the IT
field. Make sure your
versions match . Why is it ok in this situation to
have differing version
numbers?
I can't find a runtime for 1.4.2_10
I'm staying with 1.4.2_10 until netbeans 1.5 is out
of its beta. No using
trying to debug a beta product when you are still
learning the product--I
know my limits.
Thanks
Charles, a java newb
Post by Wade Chandler
For what ever reason the plug-in isn't registered
with
Post by Wade Chandler
your installation of Internet Explorer. One you
want
Post by Wade Chandler
to re-install a JRE (>= java 1.5 update 5 should
be
Post by Wade Chandler
good). Two you want to be sure and select to
register
Post by Wade Chandler
the plugin with IE if you are given an option and
some
Post by Wade Chandler
check boxes....if you are not given the option it
should register with IE automatically. If you
have an
Post by Wade Chandler
issue go to www.java.com (that exact url) and
click on
Post by Wade Chandler
Download now. You may even have something messed
up
Post by Wade Chandler
in your computers registry, but for what ever
reason
Post by Wade Chandler
you don't have the plug-in registered correctly to
show applets using the java plugin.
http://www.java.com/en/download/installed.jsp?detect=jre
Post by Charles Greenacre
Post by Wade Chandler
I think it will walk you through
Wade
First:
Netbeans 4.1 vs. 5.0 doesn't really have anything to
do with which version of the java plug-in you have
installed. The only thing which would determine that
would be the version of your target platform. Will
your application/applet be able to run on only Java
1.4.2 or will it be able to run on Java 1.4.2 +
(1.4.2, 1.5, 1.6, etc) or maybe 1.3+ (not too hard too
imagine).

Two:
You can run Netbeans 4.1 with a Java 1.5 VM. You can
also target a 1.4.2, 1.3, 1.2, or even a 1.1 VM using
the 1.5 JDK. See the javac -target -source options,
and more related to Netbeans would be
project.properties (java.target and java.source...that
may be javac.target and javac.source...should see it
in the project.properties). For a 1.1 target you can
use -source 1.3 -target 1.1 or -source 1.1 -target
1.1. The only issue here is you have to know/remember
to check the java docs as you write your code to be
sure the methods you use will be available in your
minimum target platform (Java platform not Netbeans
platform...lets be clear about what we're talking
about) if not you'll get a bunch of runtime errors
which should tell you the method doesn't exist.

Three:
I couldn't tell if you know or not by the staying with
"1.4.2xxxxx until Netbeans 5.0 is out of beta"
comment, but Netbeans is not the same thing as Java or
to be more specific a Java Virtual Machine. Netbeans
is merely the IDE. You could be using any IDE you
like and still be learning Java. In fact many
advocate not using an IDE at all to actually learn
Java, but rather to use a good text editor and the JDK
command line tools, but it doesn't necessarily matter
how you learn as long as you don't mistake the IDE for
the tools, so you'll understand the IDE should/can be
configured either at the IDE or project level to
support different versions of the Java platform which
will allow you to be able to understand how to
configure different parameters for the compiler and
runtime VM. So, if the IDE supports 1.5 it doesn't
matter if the IDE happens to be called 4.1 and a java
release is 1.4.

Four:
http://java.sun.com/reference/tigeradoption/
and
Netbeans 4.1 IDE and Java 1.5 update 6 bundled install
(just in case you were wondering):
http://java.sun.com/j2se/1.5.0/download-netbeans.html

Five:
You can download different versions of the older JDKs
and JREs here:
http://java.sun.com/products/archive/index.html

Six
So install/re-install (choose the same destination
directory if you'd like) the runtime of your choice or
required minimum specification, if you already have
make sure you have the right permissions (on some
systems I have had to run as Admin not simply a user
with Admin priveleges...don't even know why neither
did the System admin), or your registry might be
messed up (I've experienced both...Install issue:
something happens at install or forget to check the
box to register the plugin with IE or permissions
issue: Either the install is crashing or not giving
and error and just not registering things right or
someone (maybe a system admin) has locked down
security using some tool and doesn't know really what
they have done just that the tool "did something", and
certain installations just don't work right because of
a bunch of crazy permission issues.

The point is the Active X COM component isn't showing
up and IE is displaying the "common" red X. Which
sounds more like: It's not an applet tag in the web
page, but a Java Plug-in Object tag and the wrong
version ID being used for the plug-in compared to the
version installed (i.e. the web page is setup to use a
later version of the plug-in and you have an earlier
version installed/your web page is setup to use 1.5
and you are wanting to use and have installed 1.4.2 or
simply no plug-in is registered, but it could be an
applet tag and IE will still try to process the applet
tag with the plug-in registered to handle the tag even
when it's not really available (that may or may not be
possible...didn't write IE and haven't tried that).

I hope that helps some,

Wade
Bill Brinkert
2005-12-17 18:36:34 UTC
Permalink
Hello Charles...just to be clear, JRE1.5 is a different animal from
NetBeans 5.0 beta. The Java Runtime Environment is the virtual machine,
whereas NetBeans5.0 is the IDE. If you are using NB4.1, sure--stick with
that--but do yourself a favor and download the JRE1.5 from Sun. It might
save you a headache or two in the long run.
Post by Charles Greenacre
Why would I want to install java 1.5 update 5 (or 6) runtime, when I'm
developing (learning) on 1.4.2_10.
It goes against everything I've learned in the IT field. Make sure your
versions match . Why is it ok in this situation to have differing version
numbers?
I can't find a runtime for 1.4.2_10
I'm staying with 1.4.2_10 until netbeans 1.5 is out of its beta. No using
trying to debug a beta product when you are still learning the
product--I
know my limits.
Thanks
Charles, a java newb
Charles Greenacre
2005-12-19 23:01:54 UTC
Permalink
Thanks Wade and Bill for replying.

I should have been more clear in my questions regarding versions.

i've installed 1.4.2_10 sdk as part of the 4.1 netbeans installation.

I guess I was ASSUMING that a 1.4.2_10 jre would have been installed for IE and other browsers to use.

I think I also ASSUMED that Netbeans 5 (beta) was associated with JDK 5.0.

Thanks for the link to netbeans 4.1 and JDK 5.0 Update 6 I didn't see it before (blind in one eye, and can't see out of the other). With that link and the JVM (Java Runtime Environment Version 5.0 Update 6) I think I will be a very happy camper. Matching versions, yahoo!

Thanks again for straightening me out.
Charles

Continue reading on narkive:
Loading...