Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Java Applet Loading Error
LuPPy
post Feb 16 2008, 04:40 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 10
Joined: 15-February 08
Member No.: 28,454



I'v just started to study JAVA. And I borrowed a book, Great Ideas in Computer Science with JAVA.

But I can't loading any applet written on the text. I use firefox to load applet.

Does anyone know why the applet can't be loaded?

sample code is below. laugh.gif


CODE
import java.awt.*;

public class HelloWorld extends java.applet.Applet
{
TextField m1,m2;

public void init()
{
m1 = new TextField(60);
m2 = new TextField(60);
m1.setText("H e l l o W o r l d !");
m2.setText("This is a simple Java test.");
add(m1);
add(m2);
}
}
Reason for edit: Please use the CODE tag when posting code snippets
Go to the top of the page
 
+Quote Post
ethergeek
post Feb 16 2008, 08:47 AM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



Does it load as an applet in your IDE? I suggest using eclipse for java development.
Go to the top of the page
 
+Quote Post
LuPPy
post Feb 18 2008, 02:20 PM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 10
Joined: 15-February 08
Member No.: 28,454



QUOTE(ethergeek @ Feb 16 2008, 08:47 AM) *
Does it load as an applet in your IDE? I suggest using eclipse for java development.


I can load the applet on my windows PC using IE7.0 . But can't load by Firefox.
Should I install some plugins?
Go to the top of the page
 
+Quote Post
java-area
post Feb 20 2008, 11:09 PM
Post #4


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119



Firefox does not support Java with default installation.
So, before running applets in Firefox you need to install JavaRuntime Environment plugin.

You can install it from here (see Java section):
https://addons.mozilla.org/en-US/firefox/browse/type:7



Go to the top of the page
 
+Quote Post
iGuest
post Jul 8 2008, 11:08 AM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



how do we upload java applets on free website hosts?
Java Applet Loading Error

I hv just started learning java. I m able to view the output of the applets in my web browser but when I upload them on my website I m not able to see the output of the java applet. My website supports html files and when I upload html files I m able to see the o/p. Please help me and let me know the problem

-reply by abhishek
Go to the top of the page
 
+Quote Post
iGuest
post Jul 22 2008, 11:37 AM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



software (Library management)can not run
Java Applet Loading Error

Java applet can not run null.Int.Lang. Pointer exception error show

-reply by riya
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java.lang.NullPointException(4)
  2. Java Unlimited(14)
  3. Array Sorting(21)
  4. What Are The Advantages Of Java Vs C++?(15)
  5. Need Help: Find Lowest Character Using Java(7)
  6. Download Java Ebooks(13)
  7. Java By Example(8)
  8. Video Streaming In Web Browser Through Java Or Jsp(1)
  9. Looking For A Java IDE(25)
  10. Java App To Web App(12)
  11. On Why Java Is 'c'ooler!(10)
  12. How To Configure/intergrate Jboss 4 With Java?(1)
  13. Other Sound Format Support(3)
  14. Java Phone Book(2)
  15. How To Create Exe File In Java?(12)
  1. How Do I Test A Java Aplication(11)
  2. Mozilla And Java!(2)
  3. Need To Modify Xml Attribute Using Java(4)
  4. Bluetooth And Java(5)
  5. Java Sdk Vs. Java Jdk?(2)
  6. Graphcal User Interfaces In Java(4)
  7. Java Db Help Pls(2)
  8. Loading 3d Models In Java?(2)
  9. Setting Up Java Correctly(8)
  10. Java Java.security.accesscontrolexception(6)
  11. Simple Java Question(3)
  12. Java And Sql: Data Mismatch(6)
  13. Java Memory Leak?(0)


 



- Lo-Fi Version Time is now: 30th August 2008 - 12:28 PM