-
Netscape & Swing
I am not able to run a Swing applet using NS 4.75 (java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel).This class is on the web server, but into the web server logs I see that there's an HTTP error 404 (file not found) of 4 classes that do not exist :
/javax/swing/plaf/basic/resources/basic_en_US.class, basic_en.class, basic_en_US.class, basic_en.class, basic.class. What are they? Why IE5 doesn't look for them? If I put the swing jars into the Netscape java class directory, everithing works fine. Can you help me? Thank you! Daria
-
Re: Netscape & Swing
U r using javax.swing package means that you are using JDK1.2/JDK1.3.
While IE4.0 and NS4.5 support JDK1.1 (I wonder if even NS4.5 supports JDK1.2 onwards)
So normally you won't be able to use javax.swing using 'applet' tag at all.
If you want to use swing classes from javax.swing, you should use JDK1.2/JDK1.3 plug-in.
It will need installation of plug-in on client side, but then you will be able to use all the functionality of Java2 (like Java2D etc)
- UnicMan
http://members.tripod.com/unicman
-
Re: Netscape & Swing
Hello, it's always me.A my collegue succedeed in making Netscape work zipping all the swing and applet classes in one Jar (originally all the classes where singulary stored on the server).Are you sure that NS vm and swing classes are not compatible? I thought that the Plug-in'job was to provide the Swing classes on the client (avoiding the downloading from the net),and I knew that it was better to make it work together with the latest wersion of the JDK, but I didn't know that it was mandatory if I have the Swing classes.
Thank you, Daria
-
Re: Netscape & Swing
Well.. if you are so keen on using swing in Java1.1 then you can use 'com.sun.java.swing' which used to ship for Java1.1.
Classes in Java2 might work, but you can't assure how much compatible they will be.
- UnicMan
http://members.tripod.com/unicman
-
Re: Netscape & Swing
Hello, I am not very keen, otherwise I wont be here asking for information!I wouldn't like to use the Plug-in because the SW I develop is mainly used with IE, and I develop using VJ and VSS. If I would use IE with the Plug-in I would not be able to debug the applet runtime attaching the process to JV. Do you know how could I debug the applet using the Plug-in? I suppose I should change the development tools and this would take me a lot of time. Ciao and thank you. Daria