# Compiling to device

**URL:** <https://techcommunity.softwareag.com/t/compiling-to-device/175406>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [March 31, 2014, 1:28pm UTC](https://techcommunity.softwareag.com/t/compiling-to-device/175406 "2014-03-31T13:28:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Peersman1](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Ken\_Peersman1](https://techcommunity.softwareag.com/u/Ken_Peersman1)\
**Post date:** [March 31, 2014, 1:28pm UTC](https://techcommunity.softwareag.com/t/compiling-to-device/175406/1 "2014-03-31T13:28:50Z")

</div>

Hi everybody,

Like I said in previous posts, I’m new to software ag and I never compiled for the mobile phone before.  
But I have a little problem.

When I try to cross compile my app,  
the compiler gives an error on every line where I use the class database.  
I have included the package “database.zip” in my referenced libary’s, but the cross compiler doenst find it.  
(when I simulate my app, it works fine).

So do I need to edit an extra file or somthing zo the crosscompiler sees the zip-file to ??

Greetz Ken

one of the error :

```auto

C:\wMMobileDesigner_2\Samples\Expences\stages\refined\src\com\expences\view\SettingsView.java:26: error: cannot find symbol
    [javac] Database db = DatabaseFactory.openOrCreate(Constants.DB_NAME);	
    [javac] ^
    [javac] symbol: class Database
    [javac] location: class SettingsView
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 3, 2014, 2:46pm UTC](https://techcommunity.softwareag.com/t/compiling-to-device/175406/2 "2014-04-03T14:46:44Z")

</div>

Hi Ken,

If your project is using the Database library, you probably need to set the following Ant Property in your project’s xml files:

By default, this property is set to “false”, and without it you can end up with compilation errors as you have mentioned.

Regards,

Nick.  
(Mobile Designer Development Team)

---

<div class="post-metadata">

**Author:** ![Ken\_Peersman1](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@Ken\_Peersman1](https://techcommunity.softwareag.com/u/Ken_Peersman1)\
**Post date:** [April 7, 2014, 2:09pm UTC](https://techcommunity.softwareag.com/t/compiling-to-device/175406/3 "2014-04-07T14:09:13Z")

</div>

This was idd the problem.  
Now it’s compiling.

Thank you for the solution!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:30pm UTC](https://techcommunity.softwareag.com/t/compiling-to-device/175406/4 "2021-04-02T15:30:43Z")

</div>


