Archive

Archive for the ‘Java’ Category

Guide to installing 3rd party JARs in Maven

June 17th, 2011 No comments

Often times you will have 3rd party JARs that you need to put in your local repository for use in your builds. The JARs must be placed in the local repository in the correct place in order for it to be correctly picked up by Maven. To make this easier, and less error prone, we have provide a goal in the install plug-in which should make this relatively painless.

To install a JAR in the local repository use the following command:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

 

For example, to install jbilling_api.jar (API for connecting to JBilling application), use the following command:

mvn install:install-file -Dfile=/opt/jbilling_api.jar -DgroupId=jbilling \ -DartifactId=jbilling -Dversion=2.0 -Dpackaging=jar

Then, on the project’s POM file, add the following external dependency, so that Maven will include this jar while compiling:

<dependencies>

   <dependency>
           <groupId>jbilling</groupId>
           <artifactId>jbilling</artifactId>
           <version>2.0</version>
    </dependency>

</dependencies>

  • Share/Bookmark

Creating GPS Tracker Application on J2ME Phones

August 17th, 2010 17 comments

This article describes how to create the J2ME tracking application to be installed on J2ME capable phones with an internal GPS receiver. The application will utilize the Location API available on GPS enabled phones, read the GPS location data at a specified interval, send the data via HTTP connection to a specified server.

Here is the application looks like.

image

Read more…

  • Share/Bookmark

J2ME Current date and Time

August 17th, 2010 No comments

This simple J2ME application shows you how to get the current date ant time in J2ME and do the formatting of what format you want it to. Like core Java, J2ME too use the same java.util package to show the current date as well as current time on the screen.

The middlet we create here will show the current date and time when we started it. Each time we press the start button, the it will display the current date and time the button pressed. Here is the look of the finished application:

Read more…

  • Share/Bookmark
Categories: Java Tags:

How to Send Email on Java Application using JavaMail API

July 2nd, 2010 1 comment

This article explain how to use JavaMail API for sending email through our Java application. This will cover simple email, HTML email, and email with attachments.

The required JavaMail API can found here. Put it on a directory accessible by CLASSPATH setting. It’s a good idea to read the JavaMail FAQ.

Read more…

  • Share/Bookmark

NetBeans IDE 6.8 Released

December 15th, 2009 No comments

NetBeans™ IDE 6.8 offers best-in-class support for the entire Java™ Platform Enterprise Edition 6 specification and the Sun GlassFish™ Enterprise Server v3 platform. Simplify Java application development with Java EE 6 language features: less XML configuration and more POJO-like development; easily target and deploy to GlassFish v3.

NetBeans IDE continues to be the tool of choice for top development languages, and this release includes new features and improved support for PHP 5.3 and the Symfony framework, the latest JavaFX™ SDK 1.2.1, C/C++, Ruby, Maven and more. Integration with Project Kenai, a collaborative environment for hosting open-source projects, now offers full support for JIRA, as well as improved issue tracker integration. As always, the NetBeans Platform provides a rock-solid application framework that can save years of development time.

Supporting Java EE 6 improvements first, NetBeans IDE 6.8 boosts developer productivity and lets developers take advantage of today’s latest languages and platform features.

NetBeans IDE 6.8 is available in English, Brazilian-Portuguese, Japanese and Simplified Chinese.

Get Tomorrow Today with NetBeans IDE 6.8!

Read more…

  • Share/Bookmark

How to Sign a MIDlet

December 14th, 2009 1 comment

These are the required steps in summary to sign MIDlets with a certificate.

  1. Generate public/private key pairs.
  2. Generate Certificate Signing Request (CSR) and submit it to CA .
  3. Sign the MIDLet with the certificate.

Here are the list of software required to accomplish the steps:

  1. Sun Java 2 SDK or JRE
  2. Sun Wireless Tool Kit (WTK)

Generate public/private key pairs

Create a Keystore

From the command line navigate to Java 2 SDK bin directory (if it is not in the PATH yet) and type the below command :

keytool -genkey -keyalg rsa -keystore <keystore_filename> -alias <alias_name>

It prompts you to enter a password for your keystore, your name, organization, and address. For example:

Read more…

  • Share/Bookmark

001 Adempiere Opensource ERP Installation

In order to be successfully installing Adempiere, you must do the following steps on the right order.

  1. Fulfill the prerequisites
  2. Installing Java Development Kit (JDK)
  3. Installing Database (Oracle 10g, 11g, or XE, or PostgreSQL)
  4. Setup Adempiere
  5. Create Adempiere Database
  6. Complete Server Setup

Prerequisites

Adempiere ERP requires the following item to be configured properly:

Sun Java 1.5.0 JDK (not just JRE)

One of the database

  • Oracle 10g
  • Oracle 11g
  • Oracle XE
  • Postgresql 8.1 and above

The latest version of ADempiere

Read more…

  • Share/Bookmark
Categories: Adempiere ERP, Java, Oracle Tags: , , , ,
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.