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>
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.
Read more…
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…
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…
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.

Read more…
These are the required steps in summary to sign MIDlets with a certificate.
- Generate public/private key pairs.
- Generate Certificate Signing Request (CSR) and submit it to CA .
- Sign the MIDLet with the certificate.
Here are the list of software required to accomplish the steps:
- Sun Java 2 SDK or JRE
- 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…
In order to be successfully installing Adempiere, you must do the following steps on the right order.
- Fulfill the prerequisites
- Installing Java Development Kit (JDK)
- Installing Database (Oracle 10g, 11g, or XE, or PostgreSQL)
- Setup Adempiere
- Create Adempiere Database
- 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…
Recent Comments