• Post Reply 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:
  • Quote
  • 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.

Thanks.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to IDE's forum...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're doing this inside Eclipse, then you should use the files associated with the JVM you use to run Eclipse. If you're using a standalone server, then you should the ones associated with JVM that runs the server. Check your Eclipse and WebSphere settings to determine which one that is, respectively.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also note yet another cross-post with an answer here. It's a little hard to keep track of them all because people have been guessing that they belong in some other forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic