Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, March 6, 2013

JBOSS Developer Studio: Pushing Update To OpenShift Server


This tutorial guides the user to use JBOSS Developer Studio to push files edited at local machine to the OpenShift Server.

PREPARATION:

A) Download JBOSS Developer Studio from https://devstudio.jboss.com/download/6.x.html .


The JBOSS Developer Studio requires JBOSS APPLICATION SERVER (or any other Web Server) to run at localhost. You need to download JBOSS APPLICATION SERVER from http://www.jboss.org/jbossas/downloads/ (select version 7.1). Unzip to c:\. From JBOSS Developer Studio, go to menu Window/Preferences/Server/Runtime Environment. Click Add. Choose JBOSS 7.1 Runtime. Add the JBOSS APPLICATION SERVER path that you have unzipped.

B) Register an account with OpenShift at https://openshift.redhat.com/app/account/new.


C) Download Git For Windows from https://code.google.com/p/msysgit/downloads/list


D) Install Ruby
You need this software to create SSH Key. Follow this tutorial, https://openshift.redhat.com/community/developers/rhc-client-tools-install

E) Create SSH Key via command line.
Follow this tutorial, http://setup-steps.blogspot.com/2013/01/interactive-setup-for-openshifts.html

MAIN STEPS
1) Log into OpenShift, click CREATE APPLICATION tab (https://openshift.redhat.com/app/console/application_types). Click JBOSS APPLICATION SERVER 7. You will be required to specify your unique application name, e.g https://jbosstest-notarazi.rhcloud.com/


2) You can check your registered Application by clicking MY APPLICATIONS tab.(https://openshift.redhat.com/app/console/applications)




3) Click your JBOSS APPLICATION (In the above example, it is Jbosstest @ http://jbosstest-notarazi.rhcloud.com. Locate the button "WANT TO LOG IN TO YOUR APPLICATION?". Click the button.


4) When you click the button, the SSH key would be displayed. Copy the whole string. You will need this string at later steps.


5) Run JBOSS DEVELOPER. Locate the OpenShift Link. Click the Link.


6)Enter your OpenShift login credentials. Click Next.



7) Choose existing application. (refer Step 2).


8) Select Create New Project. Click Next.


9) Configure the clone location at PC. Ensure the folder that you specify exists. Click Finish.


10) Click SSH Keys wizard shown in the above picture.


11) Enter details. Paste the code that you copied from Step 4 to Private Key and Public Key Field.


12) If step 10 and 11 is successful, go back to Step 9 and Click Finish. Proceed to next step.

13) Your Cloned Remote Project should appear in Project Explorer window. Explode and locate index.html file.


14) For testing purpose, I have replaced the word "Welcome To" with "Selamat Datang Ke".



15) Right-hand Click Project Name, Select Team/Commit.


16) JBOSS DEVELOPER STUDIO will communicate with the OpenShift server to updates files on the server.

17) Finally, the locally modified html file has been committed to the remote server.

Tuesday, March 5, 2013

Eclipse Juno: Configure Tomcat Server


1) Download Eclipse Juno and extract.

2) Run Eclipse Juno. Go to menu Window/Open Perspective/Web

3) Look at the bottom panel (Server tab) of the Eclipse Juno Window.

4) Click New Server Wizard...


5) Ensure that Tomcat Server, e.g XAMPP Tomcat is running. Choose your server and click Next.


6) Set your Tomcat Server path. You can use "..\" to set relative path starting from Eclipse Root. Click Finish.


7) Tomcat registered is now registered and available in Servers tab. Select the server and click Start (or Right-click and select Start) to start the server.


8) If the server started and running well, the Server Stop Button would be active and appears in red color.

Monday, March 4, 2013

VirtualBox: Setup and Extension


1) Download the Windows version of Oracle VirtualBox and corresponding Extension pack.


2) Locate the location o f the files in your computer.



3) Double-click VirtualBox-x.x.x-xxxxx-Win.exe to install VirtualBox.

4) After installation completes, double-click Oracle_VM_VirtualBox_Extension_Pack-...

5) The VirtualBox Manager will look like below.

Saturday, March 2, 2013

Netbeans IDE 7.3 For Windows (Java EE Development)


1) Download NetBeans IDE 7.3. Run the executable file.

2) Confirm packs to be installed. Click Next.


3) Accept terms in the license agreement. Click Next.


4) Accept JUnit terms of agreement.


5) Choose the installation folder and JDK. Click Next.


6) Choose GlassFish 3.1.2.2 installation path. Click Next.


7) Confirm installation. Optionally, select Check for Updates.


8) Installation process starts.




9) Once installation completed, run NetBeans. Go to menu File/New Project...


10) Choose Java EE Category and Servlet Stateless (Java EE 6) Projects. Click Next.



11) Click Finish.



12) The Project settings is displayed.


13) Right-hand click project name and select Run.

14) Unblock the program.



15) Web page automatically appears.


16) Enter your name in the text box and wait for the server to respond.


17) You can check internal messages from the Server and Servlet at the Output panel at the bottom part of NetBeans IDE Window.

Thursday, February 28, 2013

Eclipse: Install Android Developer Tools (ADT)


This tutorial guides the user to install Android Developer Tools (ADT) downloadable at http://dl.google.com/android/ADT-21.1.0.zip or Google Search it.

1) Run Eclipse (This tutorial uses Eclipse Juno).

2) Go to menu Help/Install New Software ...


3) Click Add.. . Locate the ADT-xx.x.x.zip file. Click Ok.


4) Tick Developer Tools. Optionally tick NDK Plugins.


5) Untick Contact all update sites during install to find required software. Click Next.


6) Review the items to be installed. Click Next.


7) Tick  Accept the terms of the license agreements. Click Finish.

8) Override Security Warning (if any).


9) Restart Eclipse.


10) After you have restarted, go to menu Help/About Eclipse and check Android icons.


11) Go to menu Windows/Preferences.


12) Click Android. Click Browse. Locate the SDK folder. Check that the right Android Target Platform appears in the list. Click Apply.


13) Restart Eclipse.

14) Go to menu Windows/Open Perspective/Java.


15) After Java Perspective is active, go to menu Window. You should see the item Android Virtual Device Manager. You need to setup a virtual device before testing an Android application. Follow the guide on this link, http://basic-steps.blogspot.com/2013/02/android-building-your-first-app.html .