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.
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