Questions tagged [appletviewer]

A command used to run Java applets.

A command used to run Java applets. This command supplied with the Java JDK and could be executed from the command prompt. It's also used for the development purposes to test Java applets before they are deployed to the web server. The appletviewer runs applet without browser and even doesn't emulate the browser, instead it used a frame window and place the applet inside it and it runs like a normal Java AWT/Swing application. To run the applet from this command required to supply the argument that contains the path to the HTML file with the applet tag inside it.

112 questions
0
votes
2 answers

JApplet in appletviewer / JRE1.6.0_30 — NullPointerException on getParameter("someArg")

Why am I getting a NullPointerException when I call getParameter() in this very simple JApplet instantiation? public class TestPad extends javax.swing.JApplet { public static void main(String[] args) { …
0
votes
2 answers

File reading applet not running in browser

My java database applet program read the file from their current directory like FileInputStream fstream = new FileInputStream("details.txt"); When I run through appletviewer, it works but through browser, it doesn't showing any output. error…
Bahirji Naik
  • 175
  • 1
  • 2
  • 16
0
votes
1 answer

Java applet giving AccessControlException

I have a Java applet which I am trying to run within an HTML file using HTML applet tag , but it is throwing the following exception: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission darkorange.png…
0
votes
2 answers

Having error using system properties in java

i'm new to java. I've been learning applets and all and i've been trying to make a simple program that uses the system class to get the properties of the machine. In simple words,i'm trying to output the windows name,its version and the…
Prateek
  • 627
  • 1
  • 7
  • 19
0
votes
2 answers

Why am I getting 'appletviewer not found' error?

I have written a program appletExample.java. c:/users/set path = "C:\Program Files\Java\jdk-16\bin" c:/users/desktop/jp>appletviewer appletexample.java The error is" 'applet viewer' is not recognized as an internal or external command, operable…
CR28
  • 31
  • 6
0
votes
2 answers

java appletviwer will not load images from documentBase

We are developing a prototype on an old TV box that runs Java applets (via PersonJava JRE 1.1.8). The box runs applets great, no problems. However, we would like to use appletviewer (from Java 8) to develop locally. However, appletviewer is not…
adamM
  • 1,116
  • 10
  • 29
0
votes
2 answers

How to place text inside a circle in java applet such that middle of the text comes at the center

I'm trying to write a code to place a text in the middle of a circle such that the center of the string is on the center of the circle. But the text appears to start from the center , if the font size of the string and the diameter of the circle are…
0
votes
0 answers

java appletviewer wasn't displayed anything

i'm creating the diagram to scale it's size to big,but while i'm running the appletviewer it wasn't displayed anything in the Applet window. My code is below..check it import java.applet.*; import java.awt.*; //
AjaiJA
  • 67
  • 1
  • 8
0
votes
2 answers

Testing JCTerm, java applet terminal emulator, works in Eclipse, but not in browsers

Testing an unmodified version of JCTerm (terminal emulator, can be used as an applet; I would like to use the applet functionality), everything seems to be working fine in Eclipse's AppletViewer, but testing the resulting jar file in an web page,…
slitomonous
  • 83
  • 1
  • 8
0
votes
1 answer

Deploying Java Applet using eclipse

I'm try to get a java website and java applet up and running together. I've setup an eclipse tomcat project and created a java applet, which runs fine in the AppletViewer. However i'm having trouble launching the applet in the browser.…
user75832
0
votes
2 answers

Creating a Java Applet to Launch in Browser

I am working on a homework assignment that is requiring me to create a basic applet that runs in a browser. I already know that the applets have been deprecated, so I know that this probably will not work with current browsers. This is my Java…
Perdue
  • 479
  • 9
  • 19
0
votes
0 answers

JApplet Restart adds duplicates of components

I've been testing my JApplets and they have been working fine. I discovered the Applet menu that always loads and I wanted to test out its menu items. When I tried the Restart menu item, I realized components such as JButton, JLabel, JTextBox were…
0
votes
1 answer

jGRASP appletviewer not working (Path error)

CompSci student here. for some reason, my jGRASP won't run when it requires an appletviewer to do do, saying "command 'appletviewer' not found in PATH or current working directory." I have tried a lot of fixes including manually changing the path…
0
votes
0 answers

Text appears on result on running java GUI code

I am a beginner with advanced java. I have written a code of calculator in java: import java.applet.*; import java.awt.*; import java.awt.event.*; /**/ public class calculator extends…
Rohit Potter
  • 137
  • 2
  • 2
  • 14
0
votes
2 answers

Applet not getting initialized on the browser while using jms to connect to activemq

I have created a java applet which acts like a whiteboard and transmits realtime coordinates using jms connected to activemq broker using Websphere application Server. While i run the applet in applet viewer of eclipse my code runs fine and the…
Chirag
  • 1