🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17514

Re: Wrong class name inside class file

#17514
From: Dmitrii Rzhevskii
Date: Fri, 06 Nov 1998 00:00
57 lines
2116 bytes
in my java file i write
package myApplet; ....
 i correct
 package images;....
now work correct
               thank you
Richard Wilkman wrote:

> Dmitrii:
>
> Well, the error means that the fully qualified name for the class that
> is stored inside the .class file does not match the one you asked for.
>
> Off the top of my head, it's coming from your CODE argument.  That
> would be images.Applet1.class (no slash) in 99% of the cases.  What is
> your package statement for Applet1.class?
>
> -Rich
>
> Dmitrii Rzhevskii wrote:
> >
> > why my class file run with JBuilder IDE but can't run whith
> > NetscapeNavigator ?
> > "Applet images/Applet1can't start: error: java.lang.ClassFormatError:
> > Wrong class name inside class file"
> > html file :
> >
> > <HTML>
> > <HEAD><TITLE>
> > Applet1
> > </TITLE></HEAD>
> > <BODY>
> > <APPLET
> >   CODEBASE="."
> >   CODE="images/Applet1.class"
> >   NAME="Applet1"
> >   WIDTH    = 400
> >   HEIGHT   = 300
> > >
> > </APPLET>
> > </BODY>
> > </HTML>
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored.  If I have time, I'll respond, but you  have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <3642C063.8B1B917C@chem.msu.ru>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <363E0816.137A2109@chem.msu.ru> <363E3946.91E5323C@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,288c8a97019eb147
X-Google-Attributes: gidf74b3,public
From: Dmitrii Rzhevskii <dmrzh@chem.msu.ru>
Subject: Re: Wrong class name inside class file
Date: 1998/11/06
Message-ID: <3642C063.8B1B917C@chem.msu.ru>
X-Deja-AN: 408971286
Content-Transfer-Encoding: 7bit
References: <363E0816.137A2109@chem.msu.ru> <363E3946.91E5323C@inprise.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language