This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes HelloWorld not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HelloWorld not working" Watch "HelloWorld not working" New topic

HelloWorld not working

William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

This code worked at work, than I moved it to my ISP and it didn't work. My ISP account will not let me run CGI - is that in anyway related? In my browser I see the "Hello test header" message, but getting the message "Applet HelloWorld class could not be loaded" in the status bar on the bottom. (Yes, I have a HelloWorld.class file in the same directory.) Thanks.
$> cat Hello.html
<title>Hello test page.</title>
<h1>Hello test header.</h1>
<applet code="HelloWorld.class" width=300 height=50> </applet>
$> cat
import java.applet.Applet ;
import java.awt.Graphics ;
public class HelloWorld extends Applet
public void paint( Graphics g)
g.drawString("Hello world!", 50, 25) ;

Please ignore post, I have no idea what I am talking about.
jatin rai

Joined: Dec 27, 2000
Posts: 11

try working out this! take look at the bold secyion.
$> cat Hello.html
applet codebase="[your current directory!]" code="HelloWorld.class" width=300 height=50
Hope this helps your cause & if not please tell me & I'll try something else.
all the best

[This message has been edited by jatin rai (edited July 08, 2001).]
[This message has been edited by jatin rai (edited July 08, 2001).]
I agree. Here's the link:
subject: HelloWorld not working
It's not a secret anymore!