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
1
vote
2 answers

JAVA applet Simplest program

I'm trying to run a code on lifecycle of applet as shown. This file is saved as Lifecycle.java I compiled it by javac Lifecycle.java then tried to run it by appletviewer Lifecycle.java package APPLETS; import…
DD24
  • 61
  • 7
1
vote
1 answer

java.lang.reflect.InvocationTargetException?

I am working in an applet, when I use Eclipse to run it I don't have any problem but when I try to load the applet on my Internet Explorer browser, it gives me this error: java.lang.reflect.InvocationTargetException I don't know what to do and why…
1
vote
1 answer

Loading images in Java applet AccessControlError

I'm writing an applet that has to load images. When I run it through appletviewer everything works fine, so my code should be all set. When I try to open it in any browser though, I get the AccessControlException error saying I don't have read…
Deej
  • 47
  • 3
  • 13
1
vote
0 answers

MenuItem actionPerformed works in AppletViewer but not in Browser

I am converting a medium-size (13892 LOC) Java Swing application into an applet. So far, I've got the applet running and showing both in the Applet Viewer (via Eclipse) and showing in the browser (tested with Chrome and Firefox). However, no click…
obaqueiro
  • 982
  • 12
  • 29
1
vote
5 answers

How to create a shortcut to a particular command in command prompt?

Is it possible to create something like a desktop shortcut that I could double click to run a particular command that I would normally type out in command prompt? Here is one that I want to make a shortcut of:…
Jvalant Dave
  • 17
  • 1
  • 6
1
vote
1 answer

Two warnings when compiling my java applet

package homework1; import java.applet.Applet; import java.awt.Graphics; public class Homework1A extends Applet { public void paint( Graphics g ){ g.drawString("CIS 35A Student Learning Outcomes ",40,60); } } This is the warning…
Khoa Vo
  • 23
  • 1
  • 9
1
vote
2 answers

Java Applet Hide Status Bar Appletviewer

I am working on a game using Java Applets, meant to be played in the JDK AppletViewer, and I have run into an issue. The status bar at the bottom of the applet (the brownish one that says "Applet Started") looks bad with the game playing above. On…
Spino Prime
  • 108
  • 1
  • 1
  • 11
1
vote
1 answer

Java Applet code works in browser but not in AppletViewer

This applet works fine when I use it in a browser, but why doesn't it work with the applet viewer? I have tried using both jGRASP and Eclipse to view the applet but whatever I do, I get this: java.lang.NumberFormatException: null on this line of…
1
vote
0 answers

Class Not Found Exception when running appletviewer and html

I am having difficulties running my program from the appletviewer or from the html file i have created. I can run my compiled .class file just fine and eclipse generates my image, but i can't recreate this outside eclipse. All of my files are in the…
Nadia Wood
  • 13
  • 1
  • 3
1
vote
1 answer

Why are non-static methods allowed in applets?

I've noted that adding a non-static method to the class containing the main method in a java-application and then calling it from within the main-method, results in a compilation error. This I can understand, since this class is never…
andreasdr
  • 3,804
  • 4
  • 28
  • 32
1
vote
2 answers

Java security access control exception

I am trying to execute this program, http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/WebCrawler.java The program compiles without any error after i referred this…
rakesh
  • 23
  • 5
1
vote
1 answer

Java Heap Space: Applets

I had to write a program to work for a 3000*3000 matrix. It was working only up to 600*600. So I ran my program by increasing heap size by java -Xms64m -Xmx1024m Because initially the OutOfMemoryError was occurring. That solved the…
1
vote
0 answers

java.security.AccessControlException in Applet

Inside my Applet, it needs to download the csv file from other site to run. When i run applet with appletviewer, it gave me this exception : java.security.AccessControlException: access denied (java.net.SocketPermision www.xxxsitexxx.com:80…
TU_HEO DAKAI
  • 2,197
  • 8
  • 28
  • 39
0
votes
3 answers

Can a Java Applet Access Local File System

I am creating a java applet, that gets information out of a JAR file on my local file system, and creates a jpanel to display in the applet. I am getting the applet to load correctly on the appletViewer in Eclipse, but it will not load whenever i…
butler_alfred
  • 83
  • 2
  • 11
0
votes
2 answers

How to use an applet with packages in a jar

I have an applet (Applet, not JApplet) that has a lot of classes organized into packages, including the applet itself. I have looked everywhere for how to use that jar as an applet. It is not runnable and has a manifest file like…
rdelfin
  • 819
  • 2
  • 13
  • 31