문제

Trying to use Gson in ADF Mobile project,

Downloaded the Jar files from Google https://code.google.com/p/google-gson/

Created A library in JDEV (Tools => Manage Libraries )

Added it to the ViewController project in my application ( Project Properties => Libraries and Classpath)

So now the library appears in (Application Resources => Libraries )

Added it to the Application Deployment Profile

Creates the below simple method to test

    public void AlertCart2(ActionEvent actionEvent) {

         Gson gson = new Gson();

    }

Created a button to invoke that method (but i get Invocation error)

Did i miss any thing?

Thank you.

도움이 되었습니까?

해결책

Without specifying the error you get it is hard to know where the problem is. But my guess would be that the library doesn't work with the JDK 1.4 used by ADF Mobile.

다른 팁

Dont start method with uppercase and paste stacktrace.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top