Search:

Type: Posts; User: Norm

Page 1 of 2 1 2

Search: Search took 0.13 seconds.

  1. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    That would be one solution, but not a good one. If you have to go that way you'd need to set the codeBase to restrict permissions.

    Try signing the jar file.
  2. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    If it works for all folders except the desktop, then check the OS's settings for the reason.

    This code works:

    try {
    File fo = new File("C:/users/" +...
  3. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    I think that is controlled by the OS. Nothing to do with java.
  4. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    I changed the path to my desktop and get the same error now.

    See post#42
  5. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Please post a complete program that compiles, executes and shows the problem for testing.

    Does that file path exist?


    What error message do you get with the code in post#43?
  6. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Sorry, I don't know what problems the OS can cause when accessing different folders.

    If the program works with some files and folders and not others, then the OS could be causing the problem.
  7. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    What is there about that file, its state and the OS that would cause the error?

    Can you make a small simple program that compiles, executes and shows the problem for testing?
  8. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    By app I mean a program that is executed using the java command and that executes without requiring permissions. Code that is not an applet.
  9. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    I don't see anything about permission. Try the code in an app to see what happens there.
  10. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Not sure that error has anything to do with the code being in an applet.
    Try writing a small simple app with the code that created the error.

    Why would there be a problem renaming a file?
  11. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    There isn't one until you create it. Use the policytool program to create one and save it to the user.home folder.
  12. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    What is the "it" that you did not find?
  13. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Google .java.policy and read the doc all about it.

    Correction: the file is in the user.home folder. Use this to find it:
    ...
  14. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Add what to the applet?

    How can the applet carry its permissions with it? Wouldn't that make security useless?


    The .java.policy file is used by the java program to grant permissions to...
  15. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    My applets that require permission are only executed on my pc. I use the .java.policy file to grant permissions.
    Here is a sample of my .java.policy file:
    I use the policytool to edit it. It is...
  16. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    The applet does not have the permission it needs.

    I've never used JNLP. I've only used the <applet tags.
  17. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Chrome and Firefox
  18. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Mine comes in the upper left of the screen when I open a page with an applet.
  19. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Where did you look?
  20. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    There is a setting via the Java icon in the Control Panel on Windows.
  21. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    What is shown in the browser's java console?
  22. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    what is the "it"?
  23. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    You were able to sign the jar file in 20 minutes?

    How do you use a jar file with AppletViewer?
  24. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    Ask google. Signing a jar is a multi-step process.

    See the tutorial: http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/runAppletFunction.html
  25. Thread: Access Denied!

    by Norm
    Replies
    54
    Views
    32,464

    [SOLVED] Re: Access Denied!

    What is the applet simulator?
Results 1 to 25 of 26
Page 1 of 2 1 2