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
2
votes
1 answer

JApplet can't get focus when run from browser

I have some simple code where I'm trying to get keyboard events into a Java applet. The code runs just fine when being run with appletviewer, but when I'm loading it from a browser (tried both Chrome and Firefox), the JApplet won't get focus on…
Ionut Nicu
  • 21
  • 1
2
votes
1 answer

Self-signed Applet throws SecurityException when writing to file

I want to make an Applet that's capable of downloading files to a computer, and then opening them in the associated editor (when the file is saved, it is supposed to be uploaded back again). However, before I spend hours getting it to work, I have…
DavidS
  • 1,660
  • 1
  • 12
  • 26
2
votes
3 answers

Hadoop: JAVA_HOME is not set

Like everyone else in the world, I'm following this hadoop tutorial. I get to the point where I format HDFS, and I get this: user@linux01:~$ sudo $HADOOP_INSTALL/bin/hadoop namenode -format Error: JAVA_HOME is not set. Well that's funny, I set…
Chris
  • 1,231
  • 1
  • 17
  • 35
1
vote
1 answer

Applet code works in AppletViewer (eclipse), not in browser

I wrote such code today: import javax.swing.BorderFactory; import javax.swing.JApplet; import javax.swing.JPanel; import javax.swing.SwingUtilities; import javax.swing.UIManager; import…
marxin
  • 3,692
  • 3
  • 31
  • 44
1
vote
2 answers

Java applet works in appletviewer, Safari and Firefox, but not Chrome

OS: Mac OS X 10.7.3 Chrome: 19.0.1051.0 canary Java: 32-bit and 64-bit version of Java SE 6 Directory structure: page.html Test.jar META-INF MANIFEST.MF SELF-SIG.SF SELF-SIG.DSA com tyilo Test Test$1.class Test.class page.html:
Tyilo
  • 28,998
  • 40
  • 113
  • 198
1
vote
1 answer

Silent Print of HTML url with desired printer name

I need a script either in java applet or in any language for PHP to print silent printing the given URL in HTML to given Printer name with given no of copies. e.g…
Paresh
  • 77
  • 1
  • 6
1
vote
0 answers

Signed applet not working

I make a applet: import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; import Java.io.*; public class a extends JApplet { public void init() { …
Bruno Wieczorek
  • 524
  • 1
  • 4
  • 8
1
vote
2 answers

java policy permissions under osx appletviewer

I made a java game that saves the high score in a file, but I am having trouble giving the program enough permissions for it to work under appletviewer. It seems that appletviewer is ignoring my policy file. I have Game.java compiled into…
Andy
  • 15
  • 1
  • 4
1
vote
2 answers

Java applet only updates at 10 fps

One of my recent Java assignments (High school course...) is to make an applet where a border is drawn and a ball moves around the screen bouncing on the borders. I have Fraps installed and it reports that the applet is only running at a mere 10…
Alex
  • 3,111
  • 6
  • 27
  • 43
1
vote
1 answer

How can you get information from a running applet?

I'm running a little applet game in the appletviewer, and I have another java program that periodically tries to get the 'score' field from the applet. However right now the way I'm trying to do this is (slightly pseudocode-ified): Applet myGame =…
zergylord
  • 4,368
  • 5
  • 38
  • 60
1
vote
2 answers

Elgently ignoring netscape.javascript.JSException during development

Eclipse allows you debug applets using sun.applet.AppletViewer. It will actually start the applet, run it and emulate complete browser runtime. If you have javascript manipulation code in your applet this will cause JSException because the present…
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
1
vote
5 answers

View Java Applet without html and without browser and without Appletviewer?

With Swing applications I can use an external class to instantiate and view them. I'd like to do the same with an Applet, outside of Eclipse, without using the appletviewer. I want to be able to Run a class MyappletRunner and have its main method…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
1
vote
1 answer

Cant understand my java.io.InvalidClassException: javax.swing.JComponent

I am using serialization to communicate with my server. This way My applet retrieves a JTree created in the server. In eclipse and appletViewer my applet works perfectly but when I try to launch my applet from my server I got this error on my…
lemoos
  • 167
  • 1
  • 4
  • 17
1
vote
1 answer

Applet throwing exception when running it through web browser

I have written an applet program. It has some references to classes from java tools.jar in it (eg:- import com.sun.jdi.connect.IllegalConnectorArgumentsException) When I run this applet through appletviewer utility it works fine. But when I embed…
Pras
  • 11
  • 4
1
vote
0 answers

Path error when trying to use appletviewer jGRASP

Whenever I attempt to run my code I am met with an error saying my path is wrong. This is the message I receive. ----jGRASP exec: appletviewer jgrasphta.html ----jGRASP wedge error: command "appletviewer" not found. ---- This command must be…
CarsonEddy
  • 11
  • 1