• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java.policy file configuration

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • 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.

Thanks.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Amitav Anand:
..
Can anybody help me how to configure the java.policy file using the policy tool available in the WSAD 5.1.2


Moving to the IBM/Websphere forum.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I don't know in websphere. But I know how to create java.policy
through command prompt.

step 1: open commandprompt
step 2: type policytool and enter
it will open a new form and displays error as java.policy not found and remember that path (you need to create that policy file in that path only)
step 3 ress add policy entry

step 4: press add permissions

step 5: select all permissions

step 6: save it as java.policy in the same directory whatever I said in step2)
step 7: you will get one alert message that the file has been created successfully.
 
There is no "i" in denial. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic