🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #779

new to codewarrior..guidance please

#779
From: nerdrider
Date: Sun, 16 Apr 2000 00:00
67 lines
3522 bytes

>I know this is going to be beneath most of you....
>
>I have not used codewarrior before.
>I am doing the java tut. on the java.sun.com site and I am already stuck. I
>understand the code and all (very good tutorial) but I dont know how to
make
>codewarrior make it happen.
>I have started a new project using java stationary JDK 1.1 \ Java Applet
and
>added the two files from the tutorial (Spot.java and ClickMe.java) to the
>source folder and I have written the HTML tag that they gave and added that
>to the source folder as well, but when I compile and run it I get a message
>saying;
>
>File not found when looking for: ClickMe
>java.lang.NullPointerException
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:456)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:392)
> at sun.applet.AppletPanel.run(AppletPanel.java:231)
> at java.lang.Thread.run(Thread.java:466)
>
>and in the applet viewer that appears it has "Start applet not initialized"
>written in the bottom left hand corner.
>I don't know what that means just yet.
>All files are in the same folder, what is it that I am doing wrong?


You need to change settings for your project to reflect these new classes
and the file output type I think your problem is you haven't changed these
settings to reflect your sources.

So what you need to do is add your source files, remove the placeholder
files,  Add your HTML file to the project and remove the present HTML file
from the project.  Then open the project Preferences and adjust your Java
output setting so that the Jar or Class output is the same as your HTML
file and that the file name is what you want

Hope this helps,  if not send me your project and sources and I'll see if
I can sort it out.

Ron



The error means the appletviewer was not able to find a class file named
'ClickMe.class'. Make sure this class file exists and check your applet tag
to make sure you're not missing a codebase or archive parameter (the applet
stationery in CodeWarrior outputs the class files to a folder named 'Java
Classes' which is at the same level as the html doc. In this case, your
applet tag will require a codebase parameter)

Pedro.



Dude thanks for your help, now my problem is that you used too many big
words that I didn't quite understand. I tried following Ron's advice but got
a bit lost (I am not a total thicky all the time). He said to try changing
the project preferences but i am not sure exactly what to. I tried changing
the settings under Target Settings\linker\java output, I left output type as
it was (Class Folder) but changed the name to the same name as the html tag
and also tried the actual name of the class as stated in the tag, didnt make
any difference.
any further guidance would be appreciated.
Tim
Technical Details
Message-ID: <8dbkl0$qpv$1@news.ihug.co.nz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,440a9ae265fe7293,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113ae9,440a9ae265fe7293,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10d6db,440a9ae265fe7293,start
X-Google-Attributes: gid10d6db,public
From: "nerdrider" <surfer7@*sp*amstop*ihug.co.nz>
Subject: new to codewarrior..guidance please
Date: 2000/04/16
Message-ID: <8dbkl0$qpv$1@news.ihug.co.nz>
X-Deja-AN: 611752681
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: LovelyPlanet
X-MSMail-Priority: Normal
Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.programmer