import javax.swing.* Applet RMI

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-12-29
I'm creating a web based mutliplayer game in java using RMI. In my applet I import swing (import javax.swing.*;) but  I'm getting the following error message in my apache error_log file when someone else tries to load up the applet.

Do I need to set a classpath to the javax files??
The applet 'extends JApplet'.

[Tue Feb 25 18:20:07 2003] [error] [client] File does not exist:

To explain :
up to here exists and this is where all my java code is (i.e. my applet, server, etc) but there is no file called javax in this directory!! I assumed the java VM handled the swing stuff in the same way it handled the rest of the imported files?


More info:
my applet imports the following classes:-

import java.io.*;
import java.util.*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.awt.Graphics.*;
import java.awt.Image.*;
import javax.swing.*;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.*;
import java.rmi.server.*;

Question by:gibbonss
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Expert Comment

ID: 8019748
Do they have the plugin installed on the client(s)?

Expert Comment

ID: 8020434
Run your html thru the applet htmlconverter.
This will put in the 'code' to check the
plugin version, etc. and allow the client to
get it..

Expert Comment

ID: 8026470
what sfotex said dude!

Can I have the points? Pretty Please?!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 86

Expert Comment

ID: 8027016
If they got a plugin above 1.3_01 (from memory) they don't need to put anything through the applet converter.

Accepted Solution

sexperts_exchange earned 300 total points
ID: 8341347
I'll have these ones too!!

Rock n' roll!!

Author Comment

ID: 8341391
Its ur lucky day sexpert!!!!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question