on 06-06-2005 9:44 AM
How can I call Java code of a Java project from my Webdynpro project.
After I add the java project in java build path and project preferences,the design time error vanishes but it fails at runtime saying "Class Not Found".
The class is there in the java project and I can navigate to it from webdynpro project during design time.
Hi Anurag,
Did you able to solve the problem?
If yes, then please close the thread.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anurag,
try out the following instructions:
1) Put your Java utility classes in another Web Dynpro DC/Project. This Web Dynpro Project does not contain any application or component but only JAR Files under the /lib folder. These JAR-files are deployed with the embedding Web Dynpro Project. The classloader will load them at runtime.
2.) The Web Dnypro applications (Web Dnypro projects), which want to access these JARS, must declare a "SharingReference" to the other Web Dynpro Project/DC. For local Web Dynpro projects this is done via the context menue item WD project node -> Properties -> Web Dynpro References. For Web Dynpro DC a DC-Usage relation should be sufficient.
Also look at the Web Dynpro help page http://help.sap.com/saphelp_nw04/helpdata/en/5b/a0480cb4a14747b60cf4d6b23c0a44/frameset.htm
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
u can create a folder in Src -> Packages and add the Java File and u can use it
Go to your Package explorer and in the Src folder of your project create another folder and add the Java File and u can use it in the WebDynpro Project giving the Path in the import statments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.