Are you compiling the source in an IDE such as Eclipse?
Compile the source, and make sure that you don’t have any compile errors.
Put the class files in \sapbc46\Server\packages<mypackage>\code\classes
OR
Put the jar file in
\sapbc46\Server\packages<mypackage>\code\jars\static\
Note: you can eliminate the static directory if you don’t need the jar on the server classpath
Restart the IS to pick up the classes/jars
The IS isn’t going to compile the files in the source directory for you.
I don’t know if the source was compiling the source with Eclipse…I have only the jar file.
I put the jar file in \sapbc46\Server\packages<mypackage>\code\jars\static\ but the problem remains.
So, I put the class file in \sapbc46\Server\packages<mypackage>\code\classes\ but the problem remains the same.
sapbc doesn’t recognize the path where the jar file or class file are.
You cannot import a jar file, if that’s what you’re trying to do. Import the class that you need to use.
Put the jar in \Server\packages<mypackage>\code\jars
If you only want a specific class from the jar, put the class file in the appropriate directory under \Server\packages<mypackage>\code\classes. For example, if your class is com.mycompany.Foobar you’d place Foobar.class in \Server\packages<mypackage>\code\classes\com\mycompany.
In either case be sure to reload the package.
In your Java service use import com.mycompany.Foobar;