11-01-2017 4:39 PM - edited 02-04-2024 2:17 AM
I have a custom code (jar library) which is compiled on Java7 have to be deployed on the SAP PI 7.4 Netweaver stack which is of Java 6 version, is there any adapter to resolve the java compatibility issues? or should I write a wrapper class for the same?
As currently the case is upgrade of Netweaver (which would be an ideal solution) is not planned in near future.
1. The OS does not make the build. The JKD or SAPJVM (or Maven or some other build tool) does this. If the file, necessary to be deployed, is in the format supported by the SAP NetWeaver, it should work on Linux (despite being build on Windows O.S.) Again, not the OS is building the archive, which will be deployed.
2. The SAPJVM contains Java Development Kit libraries as well. For NW 7.50 the recommended JDK is SAPJVM8. If you deploy any feature on the SAP NW 7.50 you have to build it with SAPJVM8 or with JDK8!
3. I have heard customer using Jenkins, Git and Maven, instead of NWDI, to transport changes in their system landscape. Yet, this is not officially supported and not documented. I have not tested it and hence might not advice what is necessary to install for building a "product" with Maven and the result of this build to run as expected on the SAP NW.
4. Please keep in mind that you might NOT deploy any JEE archive to SAP NW, UNLESS it is not converted to SDA before that. More details in this SAP note:
1833230 - deployment of j2ee archive which is no SDA is not supported
About converting them to valid SAP archives before deployment, you might have a look on these guides:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Milen for the response, yes agreed that recompilation if possible would be better solution in the current situation. But if I write a server/client to resolve java compatibility as per the attachment capture.jpg using RMI, would you think this is something which might work up?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The customer is upgrading to NW to 7.5, so any issues on java version mismatch would be resolved but have a question on deployment:
Is there any document to check on the deployment process?
No, there is no such adapter. It is better not to write a wrapper. It might work or it might not. However, the main thing is that this scenario is not supported.
You have mentioned correctly - NW AS Java 7.40 is running over JDK6.
This means you need to compile this jar with JDK6! It is preferable to be SAPJVM6, but with ORACLE JDK should work as well.
IBM JDK is not supported, so better do not compile with such one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
milen.dontcheff
Is there any document to check on the deployment process?
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.