applet

Can I trust Java SecurityManager sandbox?

南笙酒味 提交于 2019-12-30 07:20:32
问题 I'm writing a JavaFX2 application that accepts arbitrary code to be loaded from remote locations. For me using a custom SecurityManager, ClassLoader and ProtectionDomain was the way to go. Unfortunately this seems to be the same setup that's used to sandbox applets, which has caused a lot of security exploits and that in turn has persuaded people to fear Java Web Plugin and removing it from their OS entirely. Is Java sandbox a secure environment to run untrusted code onto, or is it just the

What are the correspondent of Servlet and Applet in .NET?

丶灬走出姿态 提交于 2019-12-30 01:08:31
问题 I am trying to understand what's the correspondent of servlets and applets in .NET but I don't have much experience in JAVA. I am thinking applets could be compared to the silverlight stuff, meaning you code independently from the browser, but then it's not like that since (between other things) you can re-use an applet outside the browser. I need to demonstrate web technologies for a JAVA-based college-course and I can use .NET as long as I can demonstrate the same stuff . Any help or ideas

What are the correspondent of Servlet and Applet in .NET?

China☆狼群 提交于 2019-12-30 01:08:08
问题 I am trying to understand what's the correspondent of servlets and applets in .NET but I don't have much experience in JAVA. I am thinking applets could be compared to the silverlight stuff, meaning you code independently from the browser, but then it's not like that since (between other things) you can re-use an applet outside the browser. I need to demonstrate web technologies for a JAVA-based college-course and I can use .NET as long as I can demonstrate the same stuff . Any help or ideas

“application blocked by security settings” prevent applets running using oracle SE 7 update 51 on firefox on Linux mint

☆樱花仙子☆ 提交于 2019-12-30 00:30:07
问题 Background Complete fresh installation of Oracle Java SDK (32-bit) on Linux. The installation is correct, the plugin is correctly installed. Problem The following error ("Application Blocked by Security Settings") appears when the applet runs inside Firefox: Setup Here are the steps I used: Installed Linux mint 16 on VBox: > uname -a Linux me-VirtualBox 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 i686 i686 GNU/Linux Cleaned all Java instances. Followed instructions to

Java: Patching client side security policy from applet for AES256

天涯浪子 提交于 2019-12-29 06:29:26
问题 I require AES256 encryption/decryption in a commercial web application. Currently everything is good with a key size of 128. This is not satisfactory cryptographically so my problem is how best to get round this issue without requiring the user to install anything manually. I have the unlimited jurisdiction jar files from Oracle but I have no idea if replacing these in the user's JRE/lib/security directory will be compatible with older versions. Obviously I don't want to corrupt the user's

Creating Java applet using external JARS

倖福魔咒の 提交于 2019-12-29 01:38:32
问题 I've created a Java Applet in Netbeans that uses several external libraries. When I run the applet.java file within Netbeans it works fine and I'm trying to get the same result in a web page. When I run the automatically created applet.html-file in the build-folder it doesn't load the external library, even though I have specified them in APPLET archive-tag and moved them to the same folder. Here is my html-file: <HTML> <HEAD> <TITLE>Applet HTML Page</TITLE> </HEAD> <BODY> <H3><HR WIDTH="100%

ClassNotFoundException in Java Applet using <object> tag

你离开我真会死。 提交于 2019-12-28 19:19:29
问题 I'm trying to embed a Java Applet using the <OBJECT> tag, which is the XHTML Strict way of doing it. After browsing lots of sites, I tried this example which seems to work pretty well: <!--[if !IE]> Firefox and others will use outer object --> <object classid="java:Sample2.class" type="application/x-java-applet" archive="Sample2.jar" height="300" width="450" > <!-- Konqueror browser needs the following param --> <param name="archive" value="Sample2.jar" /> <!--<![endif]--> <!-- MSIE

Time doesn't repaint in Applet

独自空忆成欢 提交于 2019-12-28 06:55:41
问题 I have a small problem but I don't know to fix it. I create simple Applet in which should be simple digital clock. I created all methods correctly but repaint methods doesn't repaint my applet. Can you check my code and say where is mistake. Thanks. public class DigitalClock extends JApplet implements Runnable { private Thread timeThread; Date date = new Date(); public void start() { timeThread = new Thread(this, "Clock"); timeThread.start(); } @Override public void stop() { if (timeThread ==

Time doesn't repaint in Applet

自古美人都是妖i 提交于 2019-12-28 06:55:22
问题 I have a small problem but I don't know to fix it. I create simple Applet in which should be simple digital clock. I created all methods correctly but repaint methods doesn't repaint my applet. Can you check my code and say where is mistake. Thanks. public class DigitalClock extends JApplet implements Runnable { private Thread timeThread; Date date = new Date(); public void start() { timeThread = new Thread(this, "Clock"); timeThread.start(); } @Override public void stop() { if (timeThread ==

How to code the projectile of a ball of different force and angle in Java Swing?

帅比萌擦擦* 提交于 2019-12-28 03:05:18
问题 I have written the following function for projectile motion of different force and angle, but it doesn't work properly. Where have I gone wrong? I want something like the Angry Birds game. Code: public void shootBall(int timeCounter){ int gravity = 4; double time = timeCounter/40.0; int velocity = force_value; double radians = currentangle*Math.PI/180; ball.setX((int)((ball.getX()+10)*Math.cos(radians) + velocity*Math.cos(radians)*time)); ball.setY((int)((ball.getY()+10)*Math.sin(radians) +