How to deploy java.policy changes in IBM Notes - java

In a recent project it was necessary to make adjustments to the java.policy of the IBM Notes Client (9.0.1). You may find the java.policy in a directory similar to:
C:\Program Files\IBM\Domino\jvm\lib\security\
I've added the following line to the main grant{}-block:
permission java.lang.RuntimePermission "getenv.TIKA_CONFIG";
This adjustment must be made to all customer-clients.
My question is:
How can I deploy these changes at the customers environment? Is there a IBM Domino configuration tool or something similar?

Short: don't.
Long: the policy file will be overwritten on every install or upgrade. Create a java.pol file instead. Use LotusScript to deploy. Full instructions here: http://www.wissel.net/blog/d6plinks/SHWL-8JYAT5

Related

how to install a jar library in liberty web sphere IBM in default server

I am trying to install a jar library in the default server in Web Sphere liberty IBM, I already tried putting it in the folder: ..\wlp\lib but the server doesn't recognize it.
I donĀ“t knoe if I need a xml configuration or some thing like this.
any idea that I may be doing wrong?
the library that i wanna put in the server is: com.ibm.ws.webservices.thinclient_8.5.0.jar
The wlp/lib directory is intended for Liberty feature bundles. If you want to install a JAR file that can be loaded by multiple applications, you will need to create a shared library. Instructions for creating shared libraries are available here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader.html
It is also possible to install a JAR file that can be loaded without needing to make any configuration changes - this is called the global shared library. To make that work, you would need to copy the JAR file to the wlp/usr/servers//lib/global or wlp/usr/shared/lib/global directories. More info here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_classloader_global_libs.html
There are other ways to add JARs to make them available to applications and/or the Liberty runtime called user features and product extensions, but that probably goes beyond what you are looking for. If you want more information on these approaches, you can find them here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_feat_develop.html

Spring cloud config -Custom location of jce jar files

For reasons outside my control, I am not allowed to edit the Jre and add the two jce jars to it. Is there anyway I can tell my config server when it starts up that the location of those two jar files is in a custom location?
I have tried the following option-
Added it in the root of application directory.
But. Spring is not able to pick it up.
Thank you in advance.
Not that I know of. This is not a config server problem, but a JRE problem. Later version of the JRE ship with JCE policy files and later even still it's enabled by default https://golb.hplar.ch/p/JCE-policy-changes-in-Java-SE-8u151-and-8u152
It's not a JRE problem (you need to copy the two jce jars to JRE security library. The Oracle website already described the procedure. However, I guess the question was asking, how to do so to the embedded tomcat within a spring boot application.
Read this post for further informations.

Refer java security policies externally

I was working with some encryption and SSL handshake errors and I found that the fix was to place new UnlimitedJCEPolicy files in my java7. Two files namely local_policy.jar and US_export_policy.jar needs to be replaced. I don't have write permissions for java folder in my local machine. How can I refer them externally? I would like to add them in eclipse run configuration in arguments tab.
You can refer this link for some more ideas: How to avoid installing "Unlimited Strength" JCE policy files when deploying an application?
But I think the easiest way should be get write permission in your local machine, it will save you lots of time

How to copy as admin in windows7

My requirement is to copy the updated jar into our application directory in Program Files when a new update is available. I face an access denied problem while copying in Windows 7. Can someone kindly help me find out how to copy the file as admin?
Any alternate solution for installing the update is welcome.
As a one time action, you could give additional permissions for your application directory for the specified user.
From Windows Explorer, right-click specified folder.
Goto Properties
Click on Security tab
Click on Edit...
Change permission as suitable
Give the read\write NTFS permissions on your application directory to user with which you are running the COPYing program\script. (This permission adjusting is a one time activity as part of installation of your application)
"..java program which was run WITHOUT Admin privilege.."
Deactivate Microsoft Security Essentials and copy will working better.

How to deploy Java Communications API

I've been developing a java application with the eclipse RCP which requires the Java Communications API. Now as the javax.comm has to be setup first (install javax.comm.properties, win32comm.dll and comm.jar) my question ist: How should I deploy my application to make sure javax.comm will be setup on the user's machine? Should I provide an installer which does the setup or should I let the application itself export the files in their respective directories?
I have never before done such a thing, so I'd appreciate any help.
Thanks
I'm using RXTX instead of Java Comm, but the problem is the same, i think. The RXTX site has a documentation about it, please see the Wiki. The description is for Eclipse 3.3, but works for 3.5 too.
How would you like to distribute your application? As a JAR, I assume? In this case you need to setup the JAR's manifest.mf file with a Class-Path entry which contains semicolonseparated relative paths to the desired resources (relative from the JAR file itself on). You can distribute your application with the javax.comm stuff included and if necessary write a readme.txt with installation instructions.

Categories

Resources