Skip to Content
avatar image
Former Member

Adding external application in Laptop 7.1 application

Hi,

I have to use my custom created jar files, which contain a swt application in my Laptop webdynpro application.

I followed the blog Link:[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9517] [original link is broken] [original link is broken] [original link is broken];.

I created a DC of type external Library(extlibdc), added the jar files in the library folder of the DC, created public parts of type compilation and assembly, added the jar files to the public parts, build the dc. It went fine and the DC got built.

then i created a DC of type J2EE enterprise application(j2eedc), created a dependency with my DC of external lib type, added the public part of type assembly.

Now in my application DC(appdc), I added the dependency to the extlibdc with design time. Added the compilation type Public Part to this DC. Then added a dependency bet j2eedc and added the assembly type to public part.

Now When i try to instantiate the java classes present in the the jar file, its unable to identify the java class, so i added the jar files as external library to the appdc java build path. After this i was able to access the java class present in my jar file. But When I build the appdc, it gives me build errors as below

[javac] Compiling 14 source files to D:PriyaNewWorkspace.jdiLocalDevelopment D910FAAE25BBCA27FF051E749146AD99classes

[javac] ERROR: D:PriyaNewWorkspace.jdiLocalDevelopment D910FAAE25BBCA27FF051E749146AD99gen_wdppackagescomsapdemodynamicuicompdynamicuicompDynamicUICompView.java:20: package com.sample.test does not exist

[javac] ERROR: import com.sample.test.MainFrame;

[javac] ERROR: ^

[javac] ERROR: D:PriyaNewWorkspace.jdiLocalDevelopment D910FAAE25BBCA27FF051E749146AD99gen_wdppackagescomsapdemodynamicuicompdynamicuicompDynamicUICompView.java:115: cannot find symbol

[javac] ERROR: symbol : class MainFrame

[javac] ERROR: location: class com.sap.demo.dynamicuicomp.dynamicui.comp.DynamicUICompView

[javac] ERROR: MainFrame newObj=new MainFrame();

[javac] ERROR: ^

[javac] ERROR: D:PriyaNewWorkspace.jdiLocalDevelopment D910FAAE25BBCA27FF051E749146AD99gen_wdppackagescomsapdemodynamicuicompdynamicuicompDynamicUICompView.java:115: cannot find symbol

[javac] ERROR: symbol : class MainFrame

[javac] ERROR: location: class com.sap.demo.dynamicuicomp.dynamicui.comp.DynamicUICompView

[javac] ERROR: MainFrame newObj=new MainFrame();

[javac] ERROR: ^

[javac] 3 errors

Please let me the steps where i am going wrong.

Regards,

Priya

Edited by: Priya Ghosh on May 17, 2010 7:39 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 18, 2010 at 06:20 AM

    HI Priya,

    Try having both Runtime & Designtime Dependency to the external library in your mobile project, might resolve the issue.

    Will directly adding the external jar in Java Build path will not work?

    Best Regards,

    Amit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Create you custom jars using the same package as the laptop DC. Build and then add to your laptop project with dependency.

      Then check it should work.

      Regards,

      Nipun