Quantcast
Channel: SCN : All Content - SAP Manufacturing
Viewing all articles
Browse latest Browse all 1079

Build Error in SAP NWDS 7.5 with SAP ME 15.1 & Java 8

$
0
0

Hi All,

 

Need one urgent help. I am currently trying to develop a custom POD is SAP ME SDK. The NWDI track has been set up with SAP ME 15.1 will all SCA files pointing to the most recent version. I am using JDK 1.8 as the build tool and using SAP NWDS 7.5. I have created a java DC in NWDS and created a java class which is giving build error. I am using the JDK as jdk1.8.0_73. The code is given as follows.

 

package com.VendorID.common.utils;

 

import com.sap.me.frame.SystemBase;

import com.sap.tc.logging.Category;

import com.sap.tc.logging.Location;

 

public class DBUtil {

   

    private static final Location loc = Location.getLocation("com.VendorID.common.utils.DBUtil");

    // Database-state data

    private SystemBase        sysBase;

   

    // Trace-state data

    private String            callerProcName;

   

    public DBUtil(String callerProcName) {

        sysBase = SystemBase.createSystemBase(Constants.DATASOURCE_WIP);

        this.callerProcName = callerProcName;

    }

}


When I am trying to build the project I am getting the error given as follows.


[javac] Compiling 2 source files to C:\ANBAN.jdi\0\t\2F1A10C237344FBD0A7166DF27CD7228\classes

[javac] WARNING: warning: [options] bootstrap class path not set in conjunction with -source 1.6

[javac] ERROR: C:\ANBAN.jdi\0\DCs\VendorID.com\util\srvutil\_comp\src\com\VendorID\common\utils\DBUtil.java:24: error: cannot access Initializable

[javac] ERROR:         sysBase = SystemBase.createSystemBase(Constants.DATASOURCE_WIP);

[javac] ERROR:                             ^

[javac] ERROR:   class file for com.visiprise.frame.service.Initializable not found

[javac] 1 error


I tried to execute this code in my colleague`s workspace which is running on a Java version jdk1.8.0_71 and there the error is on a different line. The error message from my colleague`s workspace is as follows.


[javac] Compiling 1 source file to C:\NWDS75_Workspace.jdi\0\t\2F1A10C237344FBD0A7166DF27CD7228\classes

[javac] Reading options and classpath from file C:\NWDS75_Workspace.jdi\0\t2\2F1A10C237344FBD0A7166DF27CD7228\default\logs\options5074021518816902759.tmp

[javac] Reading list of classes to be compiled from file C:\NWDS75_Workspace.jdi\0\t2\2F1A10C237344FBD0A7166DF27CD7228\default\logs\classes609277815776331262.tmp

[javac] ERROR: C:\NWDS75_Workspace.jdi\0\DCs\VendorID.com\util\srvutil\_comp\src\com\VendorID\common\utils\Constants.java:3: cannot access com.sap.tc.logging.Category

[javac] ERROR: bad class file: com\sap\tc\logging\Category.class(com\sap\tc\logging:Category.class)

[javac] ERROR: class file has wrong version 52.0, should be 50.0

[javac] ERROR: Please remove or make sure it appears in the correct subdirectory of the classpath.

[javac] ERROR: import com.sap.tc.logging.Category;

[javac] ERROR:


The project dependency is given as follows

 

I have the project SAP ME Resources created in the workspace with the service-config.dtd file added to it. This code was working fine in another workspace (NWDS 7.3 running on jdk 1.6) with the NWDI track created for SAP ME 15.0.

 

Any help will be highly appreciated

 

Thanks

Anirban


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>