appletviewer command is not found (URGENT)
807598May 21 2006 — edited May 21 2006hi
I am using Fedora Core 4, When i installed FC 4, I have installed all, so it has installed java in /usr/java/jdk1.5.0_04 also. After that i have installed sun jre in /opt/jre1.5.0_06. also i have installed jdk1.5.0_06 in /usr/local
but swing and applets are not working.
After that i have started to compile Applet program, but appletviewer is not found. so i went to /usr/local/jdk1.5.0_06/binappletviewer command is not found (URGENT) and tried to compile appletviewer but it has given me the following errors, please help me what should i do? I guess i have to set CLASS PATH. but how and where?
If i am in /usr/local/jdk1.5.0_06/bin. then Applet is poped up but not initialized,
[nirlep@nirlep bin]$ appletviewer /home/np/java_prog/java_for_linux/applet/Hello.html
Warning: Can't read AppletViewer properties file: /home/nirlep/.hotjava/properties Using defaults.
load: Hello.class is not public or has no public constructor.
java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class Hello with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:344)
at java.lang.Class.newInstance(Class.java:303)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
at sun.applet.AppletPanel.run(AppletPanel.java:324)
at java.lang.Thread.run(Thread.java:595)
[nirlep@nirlep bin]$
If i run appletviewer in my /home/np/java_prog/applet/ then appletviewer
command is not found.
require urgent help.
thanks.