🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: aus.computers.java
2 messages
2 total messages Started by nerdrider Sun, 16 Apr 2000 00:00
new to codewarrior..guidance please
#779
Author: 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
Re: new to codewarrior..guidance please
#783
Author: MWRon
Date: Sun, 16 Apr 2000 00:00
16 lines
1175 bytes
In article <8dbkl0$qpv$1@news.ihug.co.nz>, "nerdrider"
<surfer7@*sp*amstop*ihug.co.nz> wrote:

>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 answered this in a previous message.  Best bet is to be sure you start
over with fresh stationery and follow my original instructions and the
later clarifications.

Ron

-- 
Metrowerks, a Motorola Company   -  Ron Liechty
"Software Starts Here"  -  MWRon@metrowerks.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads