Posts

Showing posts with the label tutorial

Configure Netbeans for Apache TomEE and OpenJPA

Image
Apache TomEE is a nice small fully certified JavaEE 6 web profile container. In this blog I will show you how to configure netbeans IDE 7.3 beta 2 to work with TomEE Web Profile 1.5. To learn more about TomEE and to download the server you can visit the following link http://tomee.apache.org/apache-tomee.html And you can get the latest version of Netbeans from its site at http://netbeans.org Now first of all I would like to tell you both TomEE works great Netbeans. There are couple of posts which shows about creating things like EJB and CDI beans in TomEE and Netbeans. But what I could not found in the web is a guide to how to make JPA work in TomEE with Netbeans. So I would try to demonstrate the same in this post. So to begin lets just create a Java Web project in Netbeans (I am assuming you have basic working knowladge with netbeans and you know how to create and run a web project in netbeans). In the server screen we can add TomEE like the given screenshot below....

Configure Netbeans For Android development

Image
I just configured my netbook to do android development in netbeans. So just sharing my experience here. Before I start below is the details of the hardware and software Hardware: Acer Aspire One Software: OS: Ubuntu Netbook Remix 10.10 Others: Netbeans IDE 7 M2,Android SDK There is a nice plugin for Netbeans available called nbandroid and can be found at http :// kenai . com / projects / nbandroid / . I installed this plugin to my Netbeans IDE from the update center. To do so you can follow the instructions at http :// kenai . com / projects / nbandroid / pages / Install . Once installed next I need to download and install the Android SDK from http :// developer . android . com / sdk / index . html . In my case I have chosen the linux sdk. You can choose the one appropriate to your platform. Once downloaded do exract it to a folder.Next you can follow the steps given in http :// developer . android . com / sdk / installing . html . But you can easily skip all the steps ...

A Simple introduction to Ruby

Image
A Simple introduction to Ruby Hi in this simple introduction i want to give you some very brief idea on Ruby. I am going to write some very simple program here and give the description of them. The peoples who are new to ruby or just want to learn something about ruby they will get the feel of this dynamic language in here. Simple Hello (first.rb) Lets start with a simple hello world program. The code is given bellow puts "Hello World" Now this is the very simple typical hello world program in ruby. Write this lines into a text file using your favourite editor. And then save it. Run this program by typing the following command in your command prompt ruby first.rb Now fig 1 show the screenshot of the ruby program Fig 1 : The screenshot showing the execution of our typical hello world program Make it a bit interactive (second.rb) Now let us write a bit more interactive program out of ruby. Lets say a program which will take you...