{"action":"created","issue":{"url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/28","repository_url":"https://api.github.com/repos/UstadMobile/UstadMobile","labels_url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/28/comments","events_url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/28/events","html_url":"https://github.com/UstadMobile/UstadMobile/issues/28","id":150631167,"number":28,"title":"Build failing with Ant and Antenna","user":{"login":"baktash93","id":11520880,"avatar_url":"https://avatars.githubusercontent.com/u/11520880?v=3","gravatar_id":"","url":"https://api.github.com/users/baktash93","html_url":"https://github.com/baktash93","followers_url":"https://api.github.com/users/baktash93/followers","following_url":"https://api.github.com/users/baktash93/following{/other_user}","gists_url":"https://api.github.com/users/baktash93/gists{/gist_id}","starred_url":"https://api.github.com/users/baktash93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baktash93/subscriptions","organizations_url":"https://api.github.com/users/baktash93/orgs","repos_url":"https://api.github.com/users/baktash93/repos","events_url":"https://api.github.com/users/baktash93/events{/privacy}","received_events_url":"https://api.github.com/users/baktash93/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-24T06:00:42Z","updated_at":"2016-04-24T16:18:34Z","closed_at":"2016-04-24T16:18:34Z","body":"Hi @mike. I recently wanted to check out UstadMobile (J2ME version) on Windows via a J2ME Emulator and followed the instructions from the `Readme.md` file within the folder `UstadMobile>ports>j2me`. \r\n\r\nBut for some reason that I'm not able to understand I end up with errors and cannot build the application.\r\n\r\n Things done before building the application:\r\n---\r\n\r\n- I have an installed Java 1.8.0_77 and if I execute the command `java -version` on a console, I get the following: \r\n\r\n          java version \"1.8.0_77\"\r\n          Java(TM) SE Runtime Environment (build 1.8.0_77-b03)\r\n          Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode)\r\n- Cloned UstadMobile from the repository at [github](`https://github.com/UstadMobile/UstadMobile`)\r\n- Downloaded and installed Wireless Toolkit (WTK) 2.5.2_1 from [Java's website](http://www.oracle.com/technetwork/java/download-135801.html). In addition, added the directory to my pc's PATH under `WTK_HOME`.\r\n- Downloaded and unpacked *apache-ant-1.9.5*. Additionally, added `ANT_HOME` to the PATH.\r\n- Downloaded stable JAR file for `antenna-bin-1.0.2.jar` from [Source Forge](https://sourceforge.net/projects/antenna/files/antenna/).\r\n \r\nBuilding the J2ME application through ant and antenna:\r\n--\r\n\r\nAs per the Readme file within the `ports>j2me` folder I did the following:\r\n\r\n - Ran the command\r\n \r\n `cp ustadmobilemicro-build.default.properties ustadmobilemicro-build.properties`\r\n\r\n - On the next step, for setting the path to WTK its indicated to execute the command `export WTK_HOME=/path/to/WTK` on the console. But since I have already added the path for WTK to the `System properties > Advanced > Environment variables > System variables`, `echo`ing out `$WTK_HOME` shows me the added path.\r\n\r\n - In order to build the app I executed the following command (as per the instructions): \r\n\r\n   `ant -f antenna-build.xml -lib /x/antenna/antenna-bin-1.0.2.jar`\r\n\r\n  Initially I get the following error log from the console:\r\n\r\n        Buildfile: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\antenna-build.xml\r\n            [echo] wtk.home Set to /path/to/WTK2.5.2\r\n        \r\n        clean:\r\n        [delete] Deleting directory x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\src-preprocessed-ANTENNA\r\n        [delete] Deleting directory x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\classes-ANTENNA\r\n        \r\n        preprocess:\r\n        [wtkpreprocess] **************************************************************\r\n        [wtkpreprocess] * Antenna 1.0.1 initialized for project \"UstadMobileMicro\"   *\r\n        [wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0)        *\r\n        [wtkpreprocess] **************************************************************\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\lib\\capabilities.xml not found\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\.\\capabilities.xml not found\r\n        [wtkpreprocess] Devices: loading capabilities.xml from classpath\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\lib\\groups.xml not found\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\.\\groups.xml not found\r\n        [wtkpreprocess] Devices: loading groups.xml from classpath\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\lib\\devices.xml not found\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\.\\devices.xml not found\r\n        [wtkpreprocess] Devices: loading devices.xml from classpath\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\lib\\custom-devices.xml not found\r\n        [wtkpreprocess] Devices: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\.\\custom-devices.xml not found\r\n        [wtkpreprocess] Devices: loading custom-devices.xml from classpath\r\n        Warning: unknown device \"Antenna\"\r\n        Symbols:\r\n        [wtkpreprocess] Preprocessing 105 file(s) at x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\src\r\n        \r\n        build:\r\n            [mkdir] Created dir: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\classes-ANTENNA\r\n        \r\n        BUILD FAILED\r\n        x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\antenna-build.xml:84: x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\lib does not exist.\r\n        \r\n        Total time: 0 seconds\r\n\r\n    As you may notice, it's saying that the `..\\ports\\j2me\\lib` folder does not exist. \r\n\r\n - To deal with the previous issue I created an empty `lib` folder manually (not sure if appropriate) and re-ran the command. Now I get around a _hundred errors_ indicating things like:\r\n  \r\n   *  `[wtkbuild] x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\src-preprocessed-ANTENNA\\com\\ustadmobile\\port\\j2me\\app\\FileUtils.java:24: error: package com.ustadmobile.core\r\n.util does not exist`\r\n   *  `[wtkbuild] x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\src-   preprocessed-ANTENNA\\com\\ustadmobile\\port\\j2me\\app\\HTTPUtils.java:44: error: cannot find symbol\r\n[wtkbuild] import com.ustadmobile.core.impl.UMLog;\r\n[wtkbuild]                                 ^\r\n[wtkbuild]   symbol:   class UMLog\r\n[wtkbuild]   location: package com.ustadmobile.core.impl`\r\n   * `[wtkbuild] x:\\Software\\UstadMobile\\UstadMobile\\ports\\j2me\\src-preprocessed-ANTENNA\\com\\ustadmobile\\port\\j2me\\view\\UstadViewFormJ2ME.java:40: error: cannot find symbol\r\n[wtkbuild] import com.ustadmobile.core.impl.UstadMobileSystemImpl;\r\n[wtkbuild]                                 ^\r\n[wtkbuild]   symbol:   class UstadMobileSystemImpl\r\n[wtkbuild]   location: package com.ustadmobile.core.impl`\r\n\r\nHope you can help me in solving this problem. Thanks.\r\n\r\nNOTE:\r\n--\r\n _I will provide you with the whole error log but I avoided adding it here so as to keep the problem description concise. So if you know of any online markdown drafting site, please let me know so that I can add it there._"},"comment":{"url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/comments/213995422","html_url":"https://github.com/UstadMobile/UstadMobile/issues/28#issuecomment-213995422","issue_url":"https://api.github.com/repos/UstadMobile/UstadMobile/issues/28","id":213995422,"user":{"login":"mikedawson","id":4280622,"avatar_url":"https://avatars.githubusercontent.com/u/4280622?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedawson","html_url":"https://github.com/mikedawson","followers_url":"https://api.github.com/users/mikedawson/followers","following_url":"https://api.github.com/users/mikedawson/following{/other_user}","gists_url":"https://api.github.com/users/mikedawson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedawson/subscriptions","organizations_url":"https://api.github.com/users/mikedawson/orgs","repos_url":"https://api.github.com/users/mikedawson/repos","events_url":"https://api.github.com/users/mikedawson/events{/privacy}","received_events_url":"https://api.github.com/users/mikedawson/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T16:18:34Z","updated_at":"2016-04-24T16:18:34Z","body":"Hi,\r\n\r\nThe build is not set to run the emulator itself.. maybe an idea for the future.  For now you need to use the generated jad/jar file with the emulator that comes along with the WTK.  Alternatively you can use NetBeans (which is what I use) to run / develop on it.  If you use NetBeans you'll need to add the required jars to Netbeans so it knows about them.\r\n\r\n-Mike"}}