i want to call a java class from the worklight adapter

后端 未结 2 495
滥情空心
滥情空心 2020-12-12 07:38

i have followed this document module 5.5 in this url \"http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#authentication\" or ftp://public.dhe.ibm.com

相关标签:
2条回答
  • 2020-12-12 07:52

    Make sure that login() function is public and static. Check out a sample code of the training module you're working with.

    0 讨论(0)
  • 2020-12-12 08:15

    I just figured this out. It's funny how everyone went silent on this issue for two months. For me it wasn't obvious at all because it works in some projects and simply doesn't in others. The same is true for machines. It'll work one place, but not another (if you're not aware of what's going on).

    Check your .project file and make sure it has the right buildCommand tags in it.

    <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.worklight.studio.plugin.WorklightProjectBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    

    Read more at: ECMA TypeError calling Java class from Worklight adapter

    0 讨论(0)
提交回复
热议问题