The Import sdo cannot be resolved!

Hello all,

I’m just new with the Crossvision and the Application composer.

After i created a new page (such as mypage.xml) in application composer and tried to add unimplemented methods, the following import in mypageAdapter.java:

import sdo.generated.xci.myproject.mypage.*;

can’t be accepted by the Eclipse java editor. It shows “the import sdo cannot be resolved!”. What should i do?

Eclipse version : 3.1.2
Application composer: 2.4.1.00
Application Designer 2.4.1.00

Thanks for the answer!

Hi azamat,

When a page is created, Java files are generated. In ProjectExplorer you can see them under

 <myproject>/Composites/Java Sources/sdo/generated/xci....

Can you see the correspondig java-files for your page?

In the Eclipse Project Settings (= Menu Project). Is “Build Automatically” activated?

Best Regards,
Christine

Hi Christine,

Build Automatically is activated.

But the path of java file in Project Explorer is:

→ Composites → Java Sources ->myproject → MypageAdapter.java

There is no subdirectory “sdo” under “Java Sources”.
There is only one subdirectory “generated” and there is one file: MyPageAdapterXCIBase.java. This file is no problem.

Is sdo automatic generated?

best regards.

Hi Azamat,

yes. The Composer settings after installation are set for automatic SDO generation.

To check these settings do the following:

  1. right-mouse click on your project
  2. click “Open SDO configuration”

What values are set for the following settings in your installation?


<staticSDO>true</staticSDO>
<packagePrefix>sdo.generated</packagePrefix>
<staticSDOInAdapter>true</staticSDOInAdapter>

Best Regards,
Christine

Hi Christine,

well, the same value like what you shows:

Static SDO : true
Enable Logging: false
Static SDO in Adapter: true
Clean Package: true
Regenerate Dependent: false
Single Registry: false
Package Prefix: sdo.generated

what could it be too?

best Regards

Hi Azamat,

a stupid question: Are you runnging on Windows or is at some Unix?

Best Regards,
Christine

Hi, Christine,

Maybe it’s the importent question. :wink:

It’s running on SuSE Linux.

best Regards

Hi, Christine,

Maybe it’s the importent question. Wink

It’s running on SuSE Linux.

best Regards

Hi Azamat,

That’s exactly the answer. The Composer Development Environment is only supported under Windows. Runtime of course is also supported on UNIX.

Under Unix the SDO class generation (= development time) does not work. You could in principle work with the dynamic SDO but you might run into other “development time issues” under UNIX because it is simply not supported and not tested.

Best Regards,
Christine

Hi, Christine,

Thanks a lot for your patience and your helping!

Best Regards

Azamat

Hi, Christine,

Thanks a lot for your patience and your helping!

Best Regards

Azamat