cancel
Showing results for 
Search instead for 
Did you mean: 

how to deploy higher java version in netweaver 7.4

former_member380587
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member189220
Active Contributor
0 Kudos

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:

Using Shell Scripts to Work with SDAs

Deploying Applications

former_member380587
Discoverer
0 Kudos

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?

former_member189220
Active Contributor
0 Kudos

I don't think it will work.

Otherwise the SAP Development Support would have recommended it, which is not the case.

If you would like to experiment - you might do so. Yet, this is not a supported scenario.

former_member380587
Discoverer
0 Kudos

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:

  • The Netweaver PI server is running on Redhat Linux, the jar file compiled in windows, would the jar which is build in different platform can be deployed without any addons? Or would it need the entire build on the PI server ?
  • If we need to do the build on the PI server, what development environment you recommend us to use (should be linux compatible) and what is the best practice to perform such a build ?
  • Is SAP JVM is recommended for the build ?
  • Do we need any extra plugins to use the maven framework on the netweaver server ? The library uses and depends on external plugins that maven is fetching

Is there any document to check on the deployment process?

former_member189220
Active Contributor
0 Kudos

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.

former_member380587
Discoverer
0 Kudos

milen.dontcheff

  • The Netweaver PI server is running on Redhat Linux, the jar file compiled in windows, would the jar which is build in different platform can be deployed without any addons? Or would it need the entire build on the PI server ?
  • If we need to do the build on the PI server, what development environment you recommend us to use (should be linux compatible) and what is the best practice to perform such a build ?
  • Is SAP JVM is recommended for the build ?
  • Do we need any extra plugins to use the maven framework on the netweaver server ? The library uses and depends on external plugins that maven is fetching

Is there any document to check on the deployment process?