Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Monday, March 19, 2012

Blackberry Webworks Build and Load Build to Smartphone Device

Blackberry create Build

è Make a zip file of you blackberry code which has the configuration.xml file.

è Open command prompt

è Go to C:\BBWP

è Enter the following command BBWP E:\Path\to\Your\AppName.zip /g SigningPassword

è Now this will create two folders of bin\StandardInstall\ and bin\OTAInstall

è To load these files to device enter below command

Bin\javaloader –u load E:\Path\to\Your\www\ bin\StandardInstall\AppName.cod

è Now you can access the application in the device.

Some other ways of build creation

Load COD file into the device

1) Start the MDS server from C:\BBWP\mds\run.bat

2) Open command prompt and go to C:\BBWP\bin

3) Now type javaloader –USB load C:\filepath\and\name.cod

è Make Blackberry build using latest Phonegap 1.3:

1) Go to E:\Latest\CBQUAT

2) There will be four mandatory files of

lib,

www,

blackberry.xml,

build.xml,

project.properties

3) Open cmd then cd to to E:\Latest\CBQUAT

4) Run below command to make a build

E:\Latest\CBQUAT>ant blackberry build

5) After build successful

6) Cd to webworks installation directory C:\BBWP>

7) Type below command to sign the build

C:\BBWP>bbwp E:\Latest\CBQUAT\build\CBQUAT.zip /g SymphonySV

8) Now go to E:\Latest\CBQUAT\build\bin\StandardInstall

9) Copy .cod file and paste it to c:\

10) The from cmd cd to C:\BBWP\bin>

11) Type below command

C:\BBWP\bin>javaloader -u load c:\CBQUAT.cod

Log of installed version:

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\msubra02>e:

E:\>cd E:\Latest\CBQUAT

E:\Latest\CBQUAT>ant blackberry build

Buildfile: E:\Latest\CBQUAT\build.xml

blackberry:

build:

generate-cod-name:

[echo] Generated name: CBQUAT.cod

clean:

package-app:

[mkdir] Created dir: E:\Latest\CBQUAT\build\widget

[copy] Copying 41 files to E:\Latest\CBQUAT\build\widget

[zip] Building zip: E:\Latest\CBQUAT\build\CBQUAT.zip

build:

[exec] [INFO] Parsing command line options

[exec] [INFO] Parsing bbwp.properties

[exec] [INFO] Validating application archive

[exec] [INFO] Parsing config.xml

[exec] [INFO] Populating application source

[exec] [INFO] Compiling BlackBerry WebWorks applicatio

n

[exec] [INFO] Generating output files

[exec] [INFO] BlackBerry WebWorks application packagin

g complete

BUILD SUCCESSFUL

Total time: 34 seconds

E:\Latest\CBQUAT>c:

C:\Users\msubra02>cd\

C:\>cd bbwp\bin

C:\BBWP\bin>cd..

C:\BBWP>bbwp E:\Latest\CBQUAT\build\CBQUAT.zip /g SymphonySV

[INFO] Parsing command line options

[INFO] Parsing bbwp.properties

[INFO] Validating application archive

[INFO] Parsing config.xml

[INFO] Populating application source

[INFO] Compiling BlackBerry WebWorks application

[INFO] Starting signing tool

[INFO] Signing complete

[INFO] Generating output files

[INFO] BlackBerry WebWorks application packaging complete

C:\BBWP>cd bin

C:\BBWP\bin>javaloader -u load c:\CBQUAT.cod

RIM Wireless Handheld Java Loader

Copyright 2001-2009 Research In Motion Limited

Connected

Loading CBQUAT Done

1558408 bytes sent at ~623363 bps

Disconnected

C:\BBWP\bin>

How to take screenshot of blackberry smartphone

javaloader -u screenshot c:\[name].jpg

http://www.blackberrycool.com/2006/03/10/taking-screenshots-of-your-actual-blackberry/

Tuesday, July 12, 2011

Complete Liferay Learning Process

To create environment for liferay follow the steps

Step L :
Before you go create a directory called java(any name you prefer) in any location you prefer. Also you must be installed java 1.6 or grater and you must defined the environment variable as follows.



Step I :
Download Liferay latest version here bundled with tomcat and extract it into the folder java/liferay/

Step F :
Download Liferay plug-ins SDK latest version here and extract it into the folder java/liferaysdk/

Step E :
Download Eclipse Java EE IDE for Web Developers and unpack into a directory java/eclipse/

Step R :
Now click on the below link and follow the steps for installing the Liferay into Eclipse.
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Installation+Guide

Step A :
Click here to expand your development environment and install liferay plugin SDK into eclipse.
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Getting+Started+Tutorial

Step Y :
How to create or connect mysql with liferay portal?
Step A :
Goto the below path
MY_JAVA_PATH\liferay-portal-6.0.6\data\hsql\
delete lportal.script and lportal.properties

Step B :
Goto
MY_JAVA_PATH\liferay-portal-6.0.6\tomcat-6.0.29\webapps\
delete the folders sevencogs-hook, sevencogs-mobile-theme and sevencogs-theme

Step C :
Create mysql database called lportal.

Step D :
Goto
MY_JAVA_PATH\liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\classes\
create file called portal-ext.properties
and edit with following lines:

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?
useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=MYSQL_USERNAME
jdbc.default.password=MYSQL_PASSWORD

Now save the file and start the server.

External useful links to develop good Liferay portal.

How to create Liferay theme using eclipse?
Liferay theme development part 1
Liferay theme development part 2

How to create and install PHP portlet?
Step A :
create a file called index.php
Step B :
Edit index.php with
<?php

echo "This not the usual Hello world.
Here is the new PHP liferay portlet";

?>
Step C :
Make a zip of index.php to phpportlet.zip
Step D :
From control panel plugins installation upload the phpportlet.zip and give context name same phpportlet and click on install
Step E :
Now add this porlet to any of your page just like drag and drop.

That's it finish.

How to add JavaScript(JS) into Liferay portlet?
Liferay JavaScript into portlet