how do I get rt.jar for java 1.1?

R

Ray Joslyn

I need to compile an applet for version java 1.1 My IDE uses 1.4.2, I
know I need to set the bootclass path to a directory containing rt.jar
for 1.1 but where can I get it?

Ray
 
R

Roedy Green

I need to compile an applet for version java 1.1 My IDE uses 1.4.2, I
know I need to set the bootclass path to a directory containing rt.jar
for 1.1 but where can I get it?

You don't have to do that just to get something that will work. You
need it for testing though. Perhaps what you can do is ship the
Applet out to somebody stuck on MS JVM and see if it flies.
 
A

Andrew Thompson

I need to compile an applet for version java 1.1 My IDE uses 1.4.2, I
know I need to set the bootclass path to a directory containing rt.jar
for 1.1 but where can I get it?

We discussed this on another thread. :-/
<http://google.com/groups?th=b896342e141a7837#link4>

Once installed, you can find the location
of the jar files by enabling the MSVM in IE
options and pointing it here.
<http://www.physci.org/ms/msclassfile.jsp>

You only need to use the jar containing the
java.lang.Object for the -bootclasspath.

Once you have the jar, it might be best to
then rip it from under IE using either JVMClean*,
or alternatively do it manually.

* <http://www.physci.org/jvmclean.jsp>
 
R

Ray Joslyn

Andrew Thompson said:
We discussed this on another thread. :-/
<http://google.com/groups?th=b896342e141a7837#link4>

Once installed, you can find the location
of the jar files by enabling the MSVM in IE
options and pointing it here.
<http://www.physci.org/ms/msclassfile.jsp>

You only need to use the jar containing the
java.lang.Object for the -bootclasspath.

Once you have the jar, it might be best to
then rip it from under IE using either JVMClean*,
or alternatively do it manually.

* <http://www.physci.org/jvmclean.jsp>

Andrew,
I found the .zip file with java.lang.Object. I tried setting my boot
class path to this file and re-compiled, but the applet will still not
run in IE. It runs fine in the applet viewer.
Ray
 
A

Andrew Thompson

....

....
I found the .zip file with java.lang.Object. I tried setting my boot
class path to this file and re-compiled, but the applet will still not
run in IE. It runs fine in the applet viewer.

I think it is time to see an exmaple of
it breaking, (it'll get us a lot further,
a lot faster) can you upload the lot
(HTML, jar and source) to Geocities
or such?

How big is the source?
 
F

Fahd Shariff

I had the same problem before and I compiled my applet using:

javac -target 1.1 Source.java

even though my java version is "1.4.2_01"

Fahd Shariff
 
A

Andrew Thompson

I had the same problem before and I compiled my applet using:

javac -target 1.1 Source.java

even though my java version is "1.4.2_01"

That ONLY ensures that a 1.1 VM can load
the classes, that the bytecodes are compatible
with that VM.

Try this..
<http://www.physci.org/javac.jsp?fl=/codes/lnf/JPLAFChanger.java&bcp=11>

Compile it (button at bottom) and see it fail.

Now go back, scroll down and set the bootclasspath
to 1.4. It will compile just fine.

A 1.1 VM would load that 'successfully'
only to fail because there was no JFrame
etc., in 1.1.
 
A

Andrew Thompson

On 11 May 2004 11:02:18 -0700, Ray Joslyn wrote:
("I need to compile an applet for version java 1.1 ")
....
It is 372 Kb of code, zipped!
....
Or rather, now that I look into it more closely..
8,664 bytes of code (ahem) amongst ..the rest
of the .jar and other support files (in total 372K).

Still, you will probably not get much help
on a project with such complex dependencies.
Trim it to an example uder 20Kb that
demonstrates the problem, and you might
have a good chance of help.
<http://www.physci.org/codes/sscce.jsp>

That still stands, the aim of your exercise is to
a) ensure that _your_ source does not contain
any post 1.1 methods.
b) compile your source with a -target of 1.1

Assuming the other .jar's are already OK
for 1.1, you should have no problems.

So it is just your 9Kb of code that could
be the problem, but you need to 'detach'
it temporarily from the other parts, to
make it easy to work on.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top