Categories
Java

Sample layout pom.xml for Java project

To make you get into Maven 2 project easily, let’s have a look to pom.xml general layout for Java project, here it is: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.osify.training</groupId> <artifactId>sample-java-training</artifactId> <packaging>jar</packaging> <name>Osify Training Sample</name> <description>Osify Training Sample</description> <version>1.0.0-SNAPSHOT</version> <parent/> <prerequisites /> <repositories/> <scm/> <properties/> <dependencies> <dependency/> </dependencies> <build> <sourceDirectory>src/main/java</sourceDirectory> <outputDirectory>target/classes</outputDirectory>…

Categories
Apache Tomcat

Tomcat java.lang.OutOfMemoryError: PermGen space

In Java application, PermGem memory is very important, it is used to compile and optimize classes. You might also face this issue during deployment application in tomcat, in my case, I faced it with Tomcat 6 and 7 with message of: <code>java.lang.OutOfMemoryError: PermGen space</code> Solutions Increasing the PermGem memory in “catalina.bat” for windows or “catalina.sh”…

Categories
Java Tools

Add log4j to your Java project

Log4j is a logging mechanism that is in Apache foundation project. Log4j is for Java project. Here, to add logging feature to your Java project, you can use one as following ways: Manually Visit http://logging.apache.org/log4j/ Download the Log4j jar library Manually include it into your project dependency All manage by yourself, you need to do…

Categories
Java

បំលែង Jar ឬ Java project ទៅជា EXE file ដោយ​របៀប​ណា?

ខ្ញុំមាន​ Project in Java បន្ទាប់ពី Compile និង​ Package វាជា Jar file ហើយ​។ តើ​ត្រូវ​ធ្វើយ៉ាង​ម៉េច អាច​ប្រើវា ជា EXE file ប្រើ​ក្នុង Windows XP or Windows 7 បាន? សូមជួយ​ប្រាប់ពីរបៀបផង និងពិសេស តើមាន Freeware ឬ Free software សំរាប់ធ្វើការងារនេះអត? អរគុណទុកជាមុន។