>>>>> Stefan Huebner writes:

> Hello !  I was just trying to install Java for the first time on my
> Linux Box, but I´m not able to use appletviewer, or to view my
> class-files from the command-prompt:

> Linux 2.0.35 with Java-binaries support glibc 2.0.7-19

> I installed jdk 1.1.6 to /usr/local/java and created the symlinks
> /usr/bin/java -> /usr/local/java/bin/java and /usr/bin/appletviewer
> -> /usr/local/java/bin/appletviewer

> My $CLASSPATH is set to
> ".:/usr/local/java/lib:/usr/local/netscape/java/classes/java40.jar"

Don't do this! Don't include netscape's system classes to your classpath.
Try 'export CLASSPATH=.' instead.

> I get the following error when I try to start *.class files from the
> command-prompt:

>> $> Scroll.class In class Scroll: void main(String argv[]) is not
>> defined

If you want to execute a class with 'java MyClass' (or './MyClass.class'),
the class needs to have a method with the signature 'public static
void main(String[] args)'.

> When I try to start my class-files with the appletviewer, I get:

>> $> appletviewer app.html java.lang.UnsatisfiedLinkError:
>> classLoaderDepth0 at
>> java.lang.SecurityManager.classLoaderDepth(SecurityManager.java:199)
>> at
>> sun.applet.AppletSecurity.checkPropertyAccess(AppletSecurity.java:282)
>> at java.lang.System.getProperty(System.java:425) at
>> sun.applet.AppletViewer.mainInit(AppletViewer.java:1037) at
>> sun.applet.AppletViewer.main(AppletViewer.java:1047)

Remove java40.jar from your classpath.


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to