Hi there. I STILL havent figured out what is wrong with my system. I have installed the latest version of Java 2 SDK on a new Redhat 7 machine. Most things seem to work, I can write server side applications and regular AWT applets and even JSP and servlets using Tomcat.
However, Swing just wont work! I know it is not a browser issue because I have tested swing applets on other sites that work fine in my browser.
The basic problem is for some reason when I call the applet from a web browser, it cannot find the Swing classes. It puts the grey area the correct size for the applet but nothing else. When you put the mouse over it, I get this error on the status bar:
load: class SwingApplet not found
Then if I go into the source file, and change the class declaration from 'extends JApplet' to 'extends Applet' and recompile, it works fine. (Not doing anything really just activating the applet with no errors...)
Then I look in my apache error log and I see this:
File not found: /home/
where /home/ is where my html and java class files are for right now.
I get the same result whether I use Apache 1.3.12 or Tomcat 4.0 as my web server.
Is there something Im missing here?
I searched the entire machine for JApplet.class file and it did not find anything. I even looked in all of the .jar files and did not find it either. I did find JApplet.java in the src.jar file. I tried compiling it and creating a folder /home/ and putting it in there.
That SEEMED to have resolved that particular issue at the moment. It no longer told me that it couldnt find JApplet.class. Instead it told me this:
File not found: /home/
So I found that in the src.jar and compiled it as well. Eventually it stopped saying class SwingApplet not found int he web browser, instead it would say: class SwingApplet could not be instantiated.
Now my log file says: File not found: /home/
I do not see sun/awt in the src.jar file, however I found AppContext.java under the swing folder, so I went ahead and compiled it for the hell of it and put it under /home/ It still says that the class cant be instantiated in the web browser, but I no longer get any error messages in my apache error log. So Im now stuck! heh
Any ideas would be greatly appreciated.
Thanks alot,
Gee
However, Swing just wont work! I know it is not a browser issue because I have tested swing applets on other sites that work fine in my browser.
The basic problem is for some reason when I call the applet from a web browser, it cannot find the Swing classes. It puts the grey area the correct size for the applet but nothing else. When you put the mouse over it, I get this error on the status bar:
load: class SwingApplet not found
Then if I go into the source file, and change the class declaration from 'extends JApplet' to 'extends Applet' and recompile, it works fine. (Not doing anything really just activating the applet with no errors...)
Then I look in my apache error log and I see this:
File not found: /home/
where /home/ is where my html and java class files are for right now.
I get the same result whether I use Apache 1.3.12 or Tomcat 4.0 as my web server.
Is there something Im missing here?
I searched the entire machine for JApplet.class file and it did not find anything. I even looked in all of the .jar files and did not find it either. I did find JApplet.java in the src.jar file. I tried compiling it and creating a folder /home/ and putting it in there.
That SEEMED to have resolved that particular issue at the moment. It no longer told me that it couldnt find JApplet.class. Instead it told me this:
File not found: /home/
So I found that in the src.jar and compiled it as well. Eventually it stopped saying class SwingApplet not found int he web browser, instead it would say: class SwingApplet could not be instantiated.
Now my log file says: File not found: /home/
I do not see sun/awt in the src.jar file, however I found AppContext.java under the swing folder, so I went ahead and compiled it for the hell of it and put it under /home/ It still says that the class cant be instantiated in the web browser, but I no longer get any error messages in my apache error log. So Im now stuck! heh
Any ideas would be greatly appreciated.
Thanks alot,
Gee