Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.policy file

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Actually I am developing code to upload a file from client to a specific location in the server(for example : c:\Project\Upload\UploadedFiles\) and somewhere in the code I am trying to rename the uploaded file for which I need permission.

Can anybody help me how to configure the java.policy file using the policy tool available in the WSAD 5.1.2 and once configured what needs to be done afterwards.

There are two java.policy file in the WSAD and which one to use:
C:\WSAD\_jvm\jre\lib\security
C:\WSAD\eclipse\jre\lib\security

And similarly the policy tool are located in two folders
C:\WSAD\_jvm\jre\bin
C:\WSAD\eclipse\jre\bin

Which policy tool and java.policy file to use for the above requirement?

Actually I had updated the File permission to "write" in the java.policy file from C:\WSAD\_jvm\jre\lib\security\ using the policytool available under C:\WSAD\_jvm\jre\bin.

But did not work as expected.
Please help me out.

Your help is highly appreciated.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post the same question to multiple forums. I have posted a reply to the other thread, so let's continue the discussion there and close the topic here.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic