Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HelloWorld not working

 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Hello test page.</title>
</head>
<body>
<h1>Hello test header.</h1>
<applet code="HelloWorld.class" width=300 height=50> </applet>
</body>
</html>
$> cat HelloWorld.java
import java.applet.Applet ;
import java.awt.Graphics ;
public class HelloWorld extends Applet
{
public void paint( Graphics g)
{
g.drawString("Hello world!", 50, 25) ;
}
}
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


try working out this! take look at the bold secyion.
$> cat Hello.html
< !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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
bye


[This message has been edited by jatin rai (edited July 08, 2001).]
[This message has been edited by jatin rai (edited July 08, 2001).]
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic