how do I use java applets with Firefox - Ask Ubuntu


can please show me how can use/install java applet downloaded work browser (firefox). applet bncapplet.java got link:

http://world.std.com/~reinhold/bignumcalc.html

i have installed openjdk using:

sudo apt-get install openjdk-8-jdk 

and tried compile by:

javac bncapplet.java 

which gave me loads of error messages mean nothing me. here is:

javac bncapplet1.java   bncapplet1.java:51: error: class bignumcalc public, should declared in file named bignumcalc.java public class bignumcalc         ^ note: bncapplet1.java uses or overrides deprecated api. note: recompile -xlint:deprecation details. note: bncapplet1.java uses unchecked or unsafe operations. note: recompile -xlint:unchecked details. 1 error 

i sure java program bug-free , should work flawlessly. in case should compiling @ before can use plugin? , how use plugin.

update: have installed icedtea suggested byte commander:

sudo apt-get install icedtea-8-plugin 

and checked in firefox preferences , there , active.

when file/open bncapplet.java in firefox offers save file!

i badly need step-by-step insrtructions install applet. thanks

a .java file java source code file, plain text document. not executable.

to run it, have install jdk (java development kit) openjdk-8-jdk package, if don't have 1 already:

sudo apt-get install openjdk-8-jdk 

after that, can use java compiler javac compile source code bncapplet.java file byte code .class file:

javac bncapplet.java 

after that, can run compiled bncapplet.class file using java command, without .class suffix:

java bncapplet 

further reads how compile , run .java files on ubuntu:


i'm not 100% sure, way applets should run in separate applet viewer window. able run java applets in browser if use openjdk java implementation, need additional icedtea package provides browser plug-in firefox-like (npapi) browsers. oracle java includes plug-in.

to install plug-in openjdk 8, run:

sudo apt-get install icedtea-8-plugin 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User