Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
pedro93
Posts: 3
Registered: ‎05-21-2012
My Carrier: Three UK

Creating a HTML app

Hi everyone.

 

I will admit, I am a total noob to Blackberrys and Java.

 

I am  a full time website developer. I work with HTML, CSS, JavaScript and PHP.

 

My brother asked me if I could write him a Blackberry App for his company.

 

I am using a HTML website which the App will load on request.

 

Everything is okay apart from one thing. When I simulate the App the webpage doesn't load. I get a warning in eclipse saying:
Warning!: method 'mypackage.MyApp.main(String[])' not invoked.

 

This is the functions the error refers to:

    public static void main(String[] args)
    {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        MyApp theApp = new MyApp();
        theApp.enterEventDispatcher();
    }

 

and finally when I load the app it only loads this function:

    public static void main(String[] args)
    {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        MyApp theApp = new MyApp();
        theApp.enterEventDispatcher();
    }

 

Help will be great

 

Thanks guys!

 

Please use plain text.
Developer
Hithredin
Posts: 344
Registered: ‎06-03-2010
My Carrier: Free

Re: Creating a HTML app

Definitly, have a look at webworks on developer.blackberry.com, no need of java for you
Please use plain text.
New Contributor
pedro93
Posts: 3
Registered: ‎05-21-2012
My Carrier: Three UK

Re: Creating a HTML app

Hi thanks for the reply

Firstly WebWorks requires ripple, and ripple won't work on my 64 bit PC? I have installed it but nothing appears in my installed programs.

Secondly, I releaized that the method I was using above isn't quite right, so I am using the broswer field method. I am just getting the following errors in the BlackBerry SDK 9930 simulator:

Local connection timeout after 120000 on simulator

Error displaying content: Error message java.lang.RuntimeException: ApplicationRegistry.waitFor(0xd0fe7d73384d7f0d)

and I can't figure out how to change the MDS-CS version?
Please use plain text.
Developer
Hithredin
Posts: 344
Registered: ‎06-03-2010
My Carrier: Free

Re: Creating a HTML app

If you have a BlackBerry device, it's even better than Ripple.

Your requirement are completly in the scope of Webworks instead of Java

Please use plain text.
New Contributor
pedro93
Posts: 3
Registered: ‎05-21-2012
My Carrier: Three UK

Re: Creating a HTML app

Hi there. As I said I am a total noob to blackberrys as I don't actually own one. My brother uses a blackberry curve. Ripple won't install on my PC, how would I develop a HTML app and test it on a device or simulator then?
Please use plain text.