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…
Tag: Java
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…
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…
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…
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…
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…
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…
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…
Here I would like to give some basic code conventions in Java that mostly we need in our daily programming life: Indentation Use 4 spaces for indentation. No tabs! If you are using Eclipse, you can configure this at With Eclipse 3.7: Window->Preferences->Java->Code Style->Formatter Edit on one selected convention, example: Java Conventions [built-in] and go…
There is a java application execute via shell script or deployed on application server like Tomcat, Jboss. How to set debugging manually for eclipse with Java remote application?