Categories
Java

It’s time to move to JDK 1.8

Early morning, I got this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project center-core: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.8 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [ERROR] -> [Help 1] Yeah, it’s…

Categories
Java

Java: No compiler is provided in this environment [Maven]

Project created via the archtype and got error could not built mvn archetype:generate -DgroupId=com.dmsys.frmk -DartifactId=frmk -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Java Maven Project, pom.xml <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.dmsys.frmk</groupId> <artifactId>frmk</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>frmk</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>2.5.0</version> <type>pom</type> </dependency> </dependencies> </project> Error Message: No compiler is provided in…

Categories
Java

Error: Could not create the Java Virtual Machine [Vaadin]

Vaadin built and received an error as error log: [INFO] Using com.vaadin:vaadin-client-compiler version 7.2.7 [INFO] Error occurred during initialization of VM [INFO] Could not reserve enough space for object heap [ERROR] Error: Could not create the Java Virtual Machine. [ERROR] Error: A fatal exception has occurred. Program will exit. [ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:7.2.7:update-widgetset…

Categories
Java

Monitor Java Application with JConsole

You might need to monitor your java application in order to examine the memory or CPU usage. JConsole is free and available in your JDK from version JDK 5 up. About JConsole Jconsole is a JMX-compliant monitoring tool.  It uses the extensive JMX instrumentation of the Java virtual machine to provide information on performance and…

Categories
Java

LockObtainFailedException: Lock obtain timed out: SimpleFSLock@ [Issue/Explain]

Let’s me start from a scenario of a Java (Hibernate, Spring App)/tomcat application that would give you as myself, the error as stated in the subject above. To reproduce In some cases, as you do as following steps: Build with clean install Start Tomcat as normal Stop Tomcat And Start Tomcat again You got an…

Categories
Java

Eclipse Kelper – Be careful with trailing space remove automatically

On my Eclipse Java EE IDE for Web Developers. Version: Kepler Service Release 1 Build id: 20130919-0819 When open existing file on my project, all of the trailing spaces are removed that make me difficult to synchronize with other users on the old projects. The issue because of AnyEdit Tools in Preferences > Editors So…

Categories
Java

Create Openoffice document with template in Java Solution

POI is not supported well to create open office document (calc, spreadsheet), it’s working fine for MS Excel (only). I would clarify my point with POI, it’s not working to set Khmer Unicode font to Openoffice document that could block us to use it well in JODConverter. So another solution should be applied for manipulate…

Categories
Java

Using libsvm with Java, Compiling, Training, Predicting – Test

I try to understand and learn to use libsvm to training, classify and recognize thing but first time, it’s hard to understand it without reading well about SVM. Then I face again the issue understanding the libsvm that I’m going to use, here the way I go: I choose Java to use with libsvm so…

Categories
Java

When do we use maven-compiler-plugin ?

Overview The Compiler Plugin is used to compile the sources of your project. Setup Place following the maven pom structure, please add following lines to plugins block: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.6</source> <target>1.6</target> <encoding>UTF-8</encoding> </configuration> </plugin> The version, you need to define according to the maven2 version you installed. All versions, you can find…

Categories
Java

iText supports Khmer Unicode issue

About Last iText opensource license is in version 4.2.0 5.5.1 which is until now we can not find the way to make it work with Khmer Unicode yet. After the free version, iText now goes to commercial and I don’t find any test with Khmer Unicode with it yet as well. So iText is not…