Wednesday, March 14, 2012

ExtJS 4: Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class:

if you get the error:

Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: SIBismark.view.Viewport


Add the following line at the beginning of your js file

Ext.Loader.setConfig({enabled:true});


In Example in the app.js :



Ext.Loader.setConfig({enabled:true});
Ext.application({
    name: 'SI'
    ,requires:['SI.view.Viewport']
    ,autoCreateViewport: true
    ,launch: function() {        
        // This is fired as soon as the page is ready
    }
}); 


Reference:
http://www.sencha.com/learn/architecting-your-app-in-ext-js-4-part-3/

Tuesday, March 6, 2012

Configuring Netbeans Java Project with IBM WebSphere MQ Libs

1. Download and Install IBM MQ (http://www-01.ibm.com/software/integration/wmq/)
In NetBeans,
2. Create a Java Application Project.
3. go to Tools > Librarias option
4. Create a new Library
5. Click the "Add Jar/Folder" Button and select all the jars present in the route: mq_installation_dir\java\lib
6. Click "ok" button
7. Go to YourProject > Libraries, right click and "Add Library"
8. Select the library that you have just created
9. Click the  "Add Library" button