Post by Charles GreenacreWhy 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 ChandlerFor what ever reason the plug-in isn't registered
with
Post by Wade Chandleryour installation of Internet Explorer. One you
want
Post by Wade Chandlerto re-install a JRE (>= java 1.5 update 5 should
be
Post by Wade Chandlergood). Two you want to be sure and select to
register
Post by Wade Chandlerthe plugin with IE if you are given an option and
some
Post by Wade Chandlercheck boxes....if you are not given the option it
should register with IE automatically. If you
have an
Post by Wade Chandlerissue go to www.java.com (that exact url) and
click on
Post by Wade ChandlerDownload now. You may even have something messed
up
Post by Wade Chandlerin your computers registry, but for what ever
reason
Post by Wade Chandleryou 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
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