473,473 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

please help with applet deployment

27 New Member
Hi.

I have an application consisting of some JFrames and threads ,and other classes as well. I developed it as ordinary application, having in mind to re-make it to be applet.

I have launching file with just about one line of code launching Client JFrame.
This launching file itself was just a java application,not a JFrame. I remade it so that it would extend JAppet.
After I run it in NetBeans 6.1 it worked fine with this JApplet.But when I went and tried to launch the html file that NetBeans made for me it didn't work at all,showing lots of errors when I clicked on "details".
This is list of errors I got

Expand|Select|Wrap|Line Numbers
  1. java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
  2.     at java.security.AccessControlContext.checkPermission(Unknown Source)
  3.     at java.security.AccessController.checkPermission(Unknown Source)
  4.     at java.lang.SecurityManager.checkPermission(Unknown Source)
  5.     at java.lang.SecurityManager.checkExit(Unknown Source)
  6.     at javax.swing.JFrame.setDefaultCloseOperation(Unknown Source)
  7.     at chessserver.Client.initComponents(Client.java:103)
  8.     at chessserver.Client.<init>(Client.java:39)
  9.     at chessserver.LaunchClient.init(LaunchClient.java:21)
  10.     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  11.     at java.lang.Thread.run(Unknown Source)
  12. Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
It kind of seems strange that it works fine in NetBeans but doesn't work in browser (IE 7). Please enlighten me on this.


Help is extremely appreciated.
Val.
Nov 30 '08 #1
2 2450
Dököll
2,364 Recognized Expert Top Contributor
I believe netbeans adds own tags even through the html code, perhaps you should se what has been added if any from netbeans, go from there.

Also, you can post the code if you want, for looks:-)

Sorry for your troubles...
Dec 1 '08 #2
JosAH
11,448 Recognized Expert MVP
@ValValVal
An applet runs in a sand box where a SecurityManager is in charge; that manager forbids all sorts of operations. Your applet wants to exit and that manager doesn't allow it do to so (see the stack trace). You have to rewrite your application/applet a bit more.

kind regards,

Jos
Dec 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Invisible | last post by:
I recently got a News Ticker Java Script from: http://javascript.internet.com/. I've copied the appropriate Java Script code into my html code on the index page and class files into the same...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
1
by: HypoThraXer | last post by:
Hi! I'd first like to refer to an article I read earlier: http://www.csharphelp.com/archives/archive109.html?printable=yes This article had originated from this group itself. What this...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
5
by: farseer | last post by:
Hi, i have an applet java applet which basically serves as a stock streamer..it connects to a data feed and show the bid/ask/last/etc info for a portfolio of stocks in real time. I would like to...
1
by: glenn123 | last post by:
Hi, i am just about out of time to produce a working jukebox which has to perform these functions: to play music files when a track is chosen from a list which when the user presses the change genre...
8
by: Richard Maher | last post by:
Hi, I am in a mouseup event for button A and I'd like to disable=false button B before starting some work. Is there anyway that an event for button B can then fire before my event processing for...
1
by: Fool | last post by:
Ok I was doing this project but now Im halfway stuck. This project contains 3 class at the moment. Im mainly trying to make this applet like the game pong. I have the paddle and a ball and background...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.