How do I make appletviewer work?
Lukman Jaji
myloveforyou at loveable.com
Thu Mar 4 13:33:22 PST 2004
Hello,
Yhe problem was from your HTML tag. I have modified the code for you and it's working perfectly.
/*
<html>
<applet
code= "HelloWorld.class"
height=400
width=400>
</applet>
</html>
*/
import java.applet.*;
import java.awt.*;
public class HelloWorld extends Applet {
public void paint(Graphics g) {
g.drawString("Hello world!", 50, 25);
}
}
You can run and and see. Compare it with your own code and detect the fault.
Lukman
----- Original Message -----
From: freebsd-java-request at freebsd.org
Date: Thu, 4 Mar 2004 12:00:54 -0800 (PST)
To: freebsd-java at freebsd.org
Subject: freebsd-java Digest, Vol 50, Issue 4
> Send freebsd-java mailing list submissions to
> freebsd-java at freebsd.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> or, via email, send a message with subject or body 'help' to
> freebsd-java-request at freebsd.org
>
> You can reach the person managing the list at
> freebsd-java-owner at freebsd.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of freebsd-java digest..."
>
>
> Today's Topics:
>
> 1. Re: ports/63409: jdk-1.4.2p6_3 plugin crashes Mozilla-1.6_2,2
> (Georg-W. Koltermann)
> 2. Re: Eclipse on FreeBSD - where's my cursor (John Arnold)
> 3. Re: Eclipse on FreeBSD - where's my cursor (John Arnold)
> 4. Re: Eclipse on FreeBSD - where's my cursor (Panagiotis Astithas)
> 5. java crash from within mozilla (Guido van Rooij)
> 6. ['securiQ.Watchdog': denied attachment]
> ('HUASMTP01_-_'securiQ.Watchdog'_Demon'@raiffeisen.hu)
> 7. Re: ports/63409: jdk-1.4.2p6_3 plugin crashes Mozilla-1.6_2,2
> (Chris Shenton)
> 8. Re: java/63511: bsd.java.mk 2.0: testers needed (Herve Quiroz)
> 9. Re: java crash from within mozilla (Alexey Zelkin)
> 10. How do I make appletviewer work? (Dennis Moore)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 04 Mar 2004 01:10:13 +0100
> From: "Georg-W. Koltermann" <gwk at rahn-koltermann.de>
> Subject: Re: ports/63409: jdk-1.4.2p6_3 plugin crashes Mozilla-1.6_2,2
> To: freebsd-gnats-submit at FreeBSD.org, chris at Shenton.Org
> Cc: freebsd-java at freebsd.org
> Message-ID:
> <1078359013.1369.22.camel at localhost.muc.eu.mscsoftware.com>
> Content-Type: text/plain
>
> Well know, seen before, fixed. See the thread at
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=183044+0+/usr/local/www/db/text/2004/freebsd-java/20040125.freebsd-java
>
> This *is* in fact a jdk14 problem, please reassign back.
>
> Then if someone could commit my patch from above thread...
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 03 Mar 2004 21:11:43 -0500
> From: John Arnold <jarnold at sydrom.com>
> Subject: Re: Eclipse on FreeBSD - where's my cursor
> To: Vladimir Botka <vbotka at zlatyvenec.com>
> Cc: freebsd-java at freebsd.org
> Message-ID: <1078366303.1610.0.camel at hermione>
> Content-Type: text/plain
>
> On Wed, 2004-03-03 at 04:09, Vladimir Botka wrote:
> > Hi,
> > are you sure you change the editor preferences for the active perspective
> > ""Window>Open Perspective"? There are editor preferences for java, c, workbench etc.
> > Cheers,
> > Vladimir
> >
> > On Tue, 2 Mar 2004, John Arnold wrote:
> >
> > > On Tue, 2004-03-02 at 16:20, Vladimir Botka wrote:
> Vladimir
>
> Yes, tried them all - none work
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 03 Mar 2004 21:12:44 -0500
> From: John Arnold <jarnold at sydrom.com>
> Subject: Re: Eclipse on FreeBSD - where's my cursor
> To: Panagiotis Astithas <past at noc.ntua.gr>
> Cc: freebsd-java at freebsd.org
> Message-ID: <1078366364.1610.2.camel at hermione>
> Content-Type: text/plain
>
> On Mon, 2004-03-01 at 14:22, Panagiotis Astithas wrote:
> > jarnold at sydrom.com wrote:
> > > Issue: Eclipse 2.1.x does not show a cursor in the edit pane when editing
> > > java source code [somewhat of an inconvenience]
> > >
> > > Background: When using FreeBSD 4.7,4.8 or 4.9, with windowmanagers Gnome,
> > > KDE, fvwm2, whatever, no cursor is visible. Attempting to change the
> > > window behaviour by use of "Window>Preferences>Java>Editor" has no effect.
> > >
> > > Alternatively, if I use Jedit, for example, it's fine.
> > >
> > > Any thoughts?
> >
> > FWIW, it definitely does show a cursor on my 5.2-current.
>
> Which version of java are you using?
> I have 1.4.2-p6 installed
>
> Regards
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 04 Mar 2004 10:14:43 +0200
> From: Panagiotis Astithas <past at noc.ntua.gr>
> Subject: Re: Eclipse on FreeBSD - where's my cursor
> To: John Arnold <jarnold at sydrom.com>
> Cc: freebsd-java at freebsd.org
> Message-ID: <4046E573.1050005 at noc.ntua.gr>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> John Arnold wrote:
> > On Mon, 2004-03-01 at 14:22, Panagiotis Astithas wrote:
> >
> >>jarnold at sydrom.com wrote:
> >>
> >>>Issue: Eclipse 2.1.x does not show a cursor in the edit pane when editing
> >>>java source code [somewhat of an inconvenience]
> >>>
> >>>Background: When using FreeBSD 4.7,4.8 or 4.9, with windowmanagers Gnome,
> >>>KDE, fvwm2, whatever, no cursor is visible. Attempting to change the
> >>>window behaviour by use of "Window>Preferences>Java>Editor" has no effect.
> >>>
> >>>Alternatively, if I use Jedit, for example, it's fine.
> >>>
> >>>Any thoughts?
> >>
> >>FWIW, it definitely does show a cursor on my 5.2-current.
> >
> >
> > Which version of java are you using?
> > I have 1.4.2-p6 installed
>
> jdk-1.4.2p6_3 in KDE 3.2.
>
> Cheers,
> --
> Panagiotis Astithas
> Electrical & Computer Engineer, PhD
> Network Management Center
> National Technical University of Athens, Greece
>
> ------------------------------
>
> Message: 5
> Date: Thu, 4 Mar 2004 10:04:52 +0100
> From: Guido van Rooij <guido at gvr.org>
> Subject: java crash from within mozilla
> To: freebsd-java at FreeBSD.org
> Message-ID: <20040304090452.GA55087 at gvr.gvr.org>
> Content-Type: text/plain; charset=us-ascii
>
> While accessing an E-banking site, I consistantly get a crash.
> Unfortunately, I have to logon first, so I cant have yiu guys reproduce
> it.
> I tried it with an empty libmap.conf and with the following one:
> libc_r.so.5 libkse.so.1
> libc_r.so libkse.so
>
> This makes no difference. Mozilla is 1.6 and jdk is 1.4.2.p6. Both were
> freshly built on a 5.2.1 system.
> Underneath the error log:
> Anywone got a hint on how to fix this?
>
> -Guido
>
>
> Unexpected Signal : 11 occurred at PC=0x2835D0CD
> Function=_ZN5JNIid6methodEv+0x7
> Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
>
> Current Java thread:
> at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
> at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:35)
> at sun.plugin.navig.motif.AThread.run(AThread.java:27)
>
> Dynamic libraries:
> 0x8048000 java_vm
> 0x2807d000 /usr/lib/libkse.so.1
> 0x280a0000 /lib/libc.so.5
> 0x28173000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
> 0x28591000 /usr/lib/libstdc++.so.4
> 0x28647000 /lib/libm.so.2
> 0x2865f000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
> 0x2866d000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
> 0x28682000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
> 0x286a0000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
> 0x34724000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so
> 0x34976000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so
> 0x349c1000 /usr/X11R6/lib/libXp.so.6
> 0x349c9000 /usr/X11R6/lib/libXt.so.6
> 0x34a1a000 /usr/X11R6/lib/libXext.so.6
> 0x34a29000 /usr/X11R6/lib/libXtst.so.6
> 0x34a2f000 /usr/X11R6/lib/libXmu.so.6
> 0x34a45000 /usr/X11R6/lib/libX11.so.6
> 0x34b0d000 /usr/X11R6/lib/libSM.so.6
> 0x34b16000 /usr/X11R6/lib/libICE.so.6
> 0x34b2d000 /usr/local/jdk1.4.2/jre/lib/i386/libjavaplugin_jni.so
> 0x34b54000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so
> 0x34c28000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
> 0x34c2b000 /usr/X11R6/lib/libXcursor.so.1
> 0x34c34000 /usr/X11R6/lib/libXrender.so.1
> 0x34c3c000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
> 0x34c5a000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so
> 0x2804b000 /libexec/ld-elf.so.1
>
> Heap at VM Abort:
> Heap
> def new generation total 576K, used 256K [0x2c610000, 0x2c6b0000, 0x2caf0000)
> eden space 512K, 37% used [0x2c610000, 0x2c640350, 0x2c690000)
> from space 64K, 99% used [0x2c6a0000, 0x2c6afff0, 0x2c6b0000)
> to space 64K, 0% used [0x2c690000, 0x2c690000, 0x2c6a0000)
> tenured generation total 2724K, used 2417K [0x2caf0000, 0x2cd99000, 0x30610000)
> the space 2724K, 88% used [0x2caf0000, 0x2cd4c7a8, 0x2cd4c800, 0x2cd99000)
> compacting perm gen total 6656K, used 6498K [0x30610000, 0x30c90000, 0x34610000)
> the space 6656K, 97% used [0x30610000, 0x30c68bf0, 0x30c68c00, 0x30c90000)
>
> Local Time = Thu Mar 4 10:00:04 2004
> Elapsed Time = 26
> #
> # HotSpot Virtual Machine Error : 11
> # Error ID : 4F530E43505002F1
> # Please report this error to
> # freebsd-java at FreeBSD.org mailing list
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-guido_03_mar_2004_22_14 mixed mode)
>
> -Guido
>
> ------------------------------
>
> Message: 6
> Date: Thu, 4 Mar 2004 10:33:30 +0100
> From: 'HUASMTP01_-_'securiQ.Watchdog'_Demon'@raiffeisen.hu
> Subject: ['securiQ.Watchdog': denied attachment]
> To: java at freebsd.org
> Message-ID: <OF2A687E07.B71D94AC-ONC1256E4D.003481C0 at raiffeisen.hu>
> Content-Type: text/plain; charset=us-ascii
>
> GROUP securiQ.Watchdog
> Server: HUASMTP01
> -----------------------------------------------------------------------
>
> Your mail item contained attachments that are denied by type or size.
> Please contact your administrator
> -----------------------------------------------------------------------
> Mail-Info
>
> From: java at freebsd.org
> To: thortay at tps-louisville.hu
> Rec.: thortay at raiffeisen.hu
> Date: 03/04/2004 10:32:26 AM
> Subject: Re: Hi
>
> -----------------------------------------------------------------------
> file is denied: your_file.pif
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 04 Mar 2004 08:37:23 -0500
> From: Chris Shenton <chris at shenton.org>
> Subject: Re: ports/63409: jdk-1.4.2p6_3 plugin crashes Mozilla-1.6_2,2
> To: "Georg-W. Koltermann" <gwk at rahn-koltermann.de>
> Cc: freebsd-gnats-submit at FreeBSD.org
> Message-ID: <864qt4wx64.fsf at PECTOPAH.shenton.org>
> Content-Type: text/plain; charset=us-ascii
>
> "Georg-W. Koltermann" <gwk at rahn-koltermann.de> writes:
>
> > Well know, seen before, fixed. See the thread at
> > http://www.freebsd.org/cgi/getmsg.cgi?fetch=183044+0+/usr/local/www/db/text/2004/freebsd-java/20040125.freebsd-java
> >
> > This *is* in fact a jdk14 problem, please reassign back.
>
> Oddly, I poked at the applet a couple times after this, got various
> failures, then it eventually worked. No changes on my end, just
> returning to the same web page, clicking the same applet. Like there
> were problems initializing them vm the first time then "fixed
> themselves" :-( on subsequent invocations.
>
> Should I close the ticket? The behavior's a bit flaky, but I was able
> to get beyond the initial problem -- though it's not "fixed".
>
> ------------------------------
>
> Message: 8
> Date: Thu, 4 Mar 2004 07:00:34 -0800 (PST)
> From: Herve Quiroz <herve.quiroz at esil.univ-mrs.fr>
> Subject: Re: java/63511: bsd.java.mk 2.0: testers needed
> To: freebsd-java at FreeBSD.org
> Message-ID: <200403041500.i24F0YEe090810 at freefall.freebsd.org>
>
> The following reply was made to PR java/63511; it has been noted by GNATS.
>
> From: Herve Quiroz <herve.quiroz at esil.univ-mrs.fr>
> To: FreeBSD-gnats-submit at FreeBSD.org
> Cc:
> Subject: Re: java/63511: bsd.java.mk 2.0: testers needed
> Date: Thu, 4 Mar 2004 15:51:43 +0100
>
> I received the following information:
>
> > The following ports failed:
> >
> > net/javadc
> > STOP 1
>
> I will investigate this issue ASAP.
>
> Herve
>
> ------------------------------
>
> Message: 9
> Date: Thu, 4 Mar 2004 21:17:29 +0200
> From: Alexey Zelkin <phantom at freebsd.org>
> Subject: Re: java crash from within mozilla
> To: Guido van Rooij <guido at gvr.org>
> Cc: freebsd-java at freebsd.org
> Message-ID: <20040304191729.GA53518 at phantom.cris.net>
> Content-Type: text/plain; charset=us-ascii
>
> hi,
>
> Well. One question: did you try to use any other applets ? From
> demo/ directory or/and from sun.com ? And one more -- did you check
> XFree logs ? java_vm may output some more inforation to "stdout".
> And one more - does this error appear while loading/starting applet
> or somethere in middle ?
>
> Some hints you may want to try (order does not matter):
>
> . revert libmap configuration (i.e. use libc_r by default)
>
> . try to use _g (debuging) version of plugin shared object and try
> to get a backtrace from java_vm's core file (preferably 'bt full').
> Note: you'll install debug version of all JVM libraries first (use
> WITH_DEBUG port install option)
>
> . Check your logs for something related to pipe's and/or thread limits.
> Looks like that handler thread's pointer become invalid at some point
> or something broken on browser<->plugin pipe. I can't say anything
> concrete without getting more information.
>
> . install mozilla to 1.4/1.5 (leave it for last attempt or try
> on clean machine)
>
> On Thu, Mar 04, 2004 at 10:04:52AM +0100, Guido van Rooij wrote:
> > While accessing an E-banking site, I consistantly get a crash.
> > Unfortunately, I have to logon first, so I cant have yiu guys reproduce
> > it.
> > I tried it with an empty libmap.conf and with the following one:
> > libc_r.so.5 libkse.so.1
> > libc_r.so libkse.so
> >
> > This makes no difference. Mozilla is 1.6 and jdk is 1.4.2.p6. Both were
> > freshly built on a 5.2.1 system.
> > Underneath the error log:
> > Anywone got a hint on how to fix this?
> >
> > -Guido
> >
> >
> > Unexpected Signal : 11 occurred at PC=0x2835D0CD
> > Function=_ZN5JNIid6methodEv+0x7
> > Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
> >
> > Current Java thread:
> > at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
> > at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:35)
> > at sun.plugin.navig.motif.AThread.run(AThread.java:27)
> >
> > Dynamic libraries:
> > 0x8048000 java_vm
> > 0x2807d000 /usr/lib/libkse.so.1
> > 0x280a0000 /lib/libc.so.5
> > 0x28173000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
> > 0x28591000 /usr/lib/libstdc++.so.4
> > 0x28647000 /lib/libm.so.2
> > 0x2865f000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
> > 0x2866d000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
> > 0x28682000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
> > 0x286a0000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
> > 0x34724000 /usr/local/jdk1.4.2/jre/lib/i386/libawt.so
> > 0x34976000 /usr/local/jdk1.4.2/jre/lib/i386/libmlib_image.so
> > 0x349c1000 /usr/X11R6/lib/libXp.so.6
> > 0x349c9000 /usr/X11R6/lib/libXt.so.6
> > 0x34a1a000 /usr/X11R6/lib/libXext.so.6
> > 0x34a29000 /usr/X11R6/lib/libXtst.so.6
> > 0x34a2f000 /usr/X11R6/lib/libXmu.so.6
> > 0x34a45000 /usr/X11R6/lib/libX11.so.6
> > 0x34b0d000 /usr/X11R6/lib/libSM.so.6
> > 0x34b16000 /usr/X11R6/lib/libICE.so.6
> > 0x34b2d000 /usr/local/jdk1.4.2/jre/lib/i386/libjavaplugin_jni.so
> > 0x34b54000 /usr/local/jdk1.4.2/jre/lib/i386/libfontmanager.so
> > 0x34c28000 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
> > 0x34c2b000 /usr/X11R6/lib/libXcursor.so.1
> > 0x34c34000 /usr/X11R6/lib/libXrender.so.1
> > 0x34c3c000 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
> > 0x34c5a000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so
> > 0x2804b000 /libexec/ld-elf.so.1
> >
> > Heap at VM Abort:
> > Heap
> > def new generation total 576K, used 256K [0x2c610000, 0x2c6b0000, 0x2caf0000)
> > eden space 512K, 37% used [0x2c610000, 0x2c640350, 0x2c690000)
> > from space 64K, 99% used [0x2c6a0000, 0x2c6afff0, 0x2c6b0000)
> > to space 64K, 0% used [0x2c690000, 0x2c690000, 0x2c6a0000)
> > tenured generation total 2724K, used 2417K [0x2caf0000, 0x2cd99000, 0x30610000)
> > the space 2724K, 88% used [0x2caf0000, 0x2cd4c7a8, 0x2cd4c800, 0x2cd99000)
> > compacting perm gen total 6656K, used 6498K [0x30610000, 0x30c90000, 0x34610000)
> > the space 6656K, 97% used [0x30610000, 0x30c68bf0, 0x30c68c00, 0x30c90000)
> >
> > Local Time = Thu Mar 4 10:00:04 2004
> > Elapsed Time = 26
> > #
> > # HotSpot Virtual Machine Error : 11
> > # Error ID : 4F530E43505002F1
> > # Please report this error to
> > # freebsd-java at FreeBSD.org mailing list
> > #
> > # Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-guido_03_mar_2004_22_14 mixed mode)
> >
> > -Guido
> > _______________________________________________
> > freebsd-java at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-java
> > To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>
> ------------------------------
>
> Message: 10
> Date: Thu, 4 Mar 2004 13:34:03 -0600
> From: Dennis Moore <archon at forbidden.dough.net>
> Subject: How do I make appletviewer work?
> To: freebsd-java at freebsd.org
> Message-ID: <20040304193403.GC69978 at forbidden.dough.net>
> Content-Type: text/plain; charset=us-ascii
>
> Hello,
>
> I'm just starting to learn java and going through the Sun tutorial. I
> created a basic Hello world program and that worked, but when I tried to
> make an applet I ran into trouble. I can run the applet fine in a browser,
> but when I run it in appletviewer, nothing happens.
>
> Here is my program:
>
> import java.applet.*;
> import java.awt.*;
>
> public class HelloWorld extends Applet {
> public void paint(Graphics g) {
> g.drawString("Hello world!", 50, 25);
> }
> }
>
> Here is my HTML:
> <html>
> <head>
> <title>Hello World Applet</title>
> </head>
> <body>
> <applet code="HelloWorld.class" width="150" height="25">
> </body>
> </html>
>
> The class compiles fine. Here are java ports:
>
> j2sdkee-1.3.1_4 Java 2 SDK Enterprise Edition
> javavmwrapper-1.4 Wrapper script for various Java Virtual Machines
> jdk-1.4.1p4 Java Development Kit 1.4.1
> jsdk-2.0 Sun's Java Servlet Developers Kit
> linux-sun-jdk-1.3.1.08 Sun Java Development Kit 1.3 for Linux
> linux-sun-jdk-1.4.2.01_3 Sun Java Development Kit 1.4 for Linux
>
> Is there something I'm missing? Do I have a wrong version?
>
> Thanks
>
> --
> Dennis Moore jesus sewed my pants
> Pro Bono Devil's Advocate it's a love affair
> archon at EFnet irc mainly jesus
> http://forbidden.dough.net/ and my pants
>
> ------------------------------
>
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>
> End of freebsd-java Digest, Vol 50, Issue 4
> *******************************************
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
More information about the freebsd-java
mailing list