Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8045049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:25:18+00:00 2026-06-05T05:25:18+00:00

I recently stumbled across a problem when starting my application via JNLP. I now

  • 0

I recently stumbled across a problem when starting my application via JNLP. I now narrowed it down to a java.security.AccessControlException, which denies me to shut down my ExecuterService.

So, I did some reading and found out that I’ll need the permission (modifyThread) to successfully shut down the service. I also found out that I should use the <security>-tag (in the JNLP-file) to request it, but I’m a little confused about how.

The documentation of the tag says:

[…] If the all-permissions element is specified, the application
will have full access to the client machine and local network
. If an
application requests full access, then all JAR files must be
signed
. The user will be prompted […]

From reading this it seems to me, that I can choose to either get all or no permissions… which seems like a confusing Implementation. Because I only need the one to shutdown my service.

I also read this article, telling me that I should not request all permissions, because I would then open up the users computer for malicious code.

So, is there a way to specify that I only need the specific permission (modifyThread) and I therefor don’t need to sign my jar? Or will I have to go with the “sign my jar and request everything”-approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:25:20+00:00Added an answer on June 5, 2026 at 5:25 am

    ..will I have to go with the "sign my jar and request everything"-approach?

    Yes. JWS permissions come in 3 levels1, the only one where modifying threads is permitted, is all-permissions.

    1) JWS security levels

    • Sand-boxed. Provides a very limited environment. Access to things like printers and the local file-system is only permitted using the JNLP API services, which provide more limited forms of File after prompting the user. Come with window banners. Can only communicate with own server.
    • j2ee-application-client-permissions – provide those JNLP API services unprompted (after the user accepts the digitally signed code) removes the window banners.
    • all-permissions – pretty much anything, including replacing the existing security manager (yes, even ‘all permissions’ code gets a security manager in JWS – it is just very lenient).

    Also chase the links from the JNLP & JWS pages. I can personally recommend those summaries & links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently stumbled across this problem while testing my C# program. parsing ) -
I recently stumbled across the following: <? $d=false; var_dump($d[123]); ?> which yielded NULL ,
I recently stumbled across a difficult problem.. I'm normally using a NSFetchedResultsController to get
I recently stumbled across an article that claims Microsoft is banning the memcpy() function
I have recently stumbled upon a problem with selecting relationship details from a 1
I recently stumbled across DBslayer ( http://code.nytimes.com/projects/dbslayer/wiki/WhyUseIt ) and wondered what is the actual
we've recently stumbled across the excellent Dispatch for ASP FTP deployment plug in. It
I've recently stumbled across the ability to use boomarks in Visual Studio. ( http://www.codeproject.com/Articles/42973/Using-Bookmark-in-Visual-Studio.aspx
I have recently stumbled across an issue where the WPF ListView control seems to
I recently stumbled across the following assembly instruction sequence: rep stos dword ptr [edi]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.