Jasper Report: Print Column Footer only at the last page

Report designer mostly said it’s depended on the way you design the report, of course, it does but for some new or even some years report designers still need example, tips to help too. Here, I take this kind of issue/solution that finally I could make it: “printing a signature footnote to the last table […]

Jasper Report: Total Pages

To have total pages, you can do two options: To display total pages using Evaluation Time: Report On view using $V{PAGE_NUMER} flexible using evaluation time: current page with “Now”, total page with “Report”Create a variable for total pageName: TOTAL_PAGES (or any other)Variable class: IntegerCalculation: highestReset type: reportIncrement type: pageVariable expression: ${PAGE_NUMBER} Then you can use […]

របៀបបង្កើត Project Spring Boot ជាមួយ JSP

១.​សេចក្តីផ្តើម Spring Boot មានលក្ខណៈងាយស្រួលសម្រាប់កាត់បន្ថយក្នុងការសរសេរកូដបានច្រើន ដោយវារួមមាននូវ Features ដូចតទៅៈ Create stand-alone Spring applications Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) Provide opinionated ‘starter’ POMs to simplify your Maven configuration Automatically configure Spring whenever possible Provide production-ready features such as metrics, health checks and externalized configuration Absolutely no code generation and no requirement […]

How to create project with MAVEN

I. How to create project in MAVEN There are two ways for create project in MAVEN 1. Normal Java Project Step 1: cmd past below code to command prompt mvn archetype:generate -DgroupId=com.javacambodia -DartifactId=NumberGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Note: DgroupId : name of your package (whatever you want) DartifactId : name of your project Press enter Step 2: […]

[Eclipse] java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

Double click on your eclipse, and you receive error log as following (logged at: configuration/xxxxx.log) !ENTRY org.eclipse.osgi 4 0 2016-07-12 00:22:11.260 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Library.java:263) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240) at org.eclipse.swt.internal.C.<clinit>(C.java:21) at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:679) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162) at com.aptana.rcp.IDEApplication.createDisplay(IDEApplication.java:162) at com.aptana.rcp.IDEApplication.start(IDEApplication.java:94) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) […]

Execute NodeJS npm via maven pom.xml [Links]

It might be you are trying to search for “execute command npm.cmd windows via maven pom.xml”, likely you are from Java development environment that mostly love to do with maven. Here, following 3 articles would help, I don’t pick one to showup but there are some options available: 1. Building Frontend as a Part of […]

How to create maven bower grunt angularjs project

I just published an article on Webapp structure with maven, here I would like to add another structure with AngularJS project for my Quickstart series. The first procedure is the same for maven that you need to read the previous article. Install AngularJS Generator npm install -g generator-angular Generate AngularJS Webapp Structure yo angular Next, […]

Solving the recursive Json data generation in Java Spring

Let me presume a quick remark or note on the use of jsonManagedReference, jsonBackReference or JsonIdentityInfo annotation when you will manage to display json data from the entity while working on Spring 3 and Jackson. The work likely in case you need to exchange the data via Json such as developing application with AngularJS and […]

Update Eclipse failed – Can not remove : eclipse.exe

Use Eclipse Update and got fail An error occurred while uninstalling session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86_64 1.0.0.v20130521-1847 –> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file D:\Apps\eclipse\eclipse.exe failed. Can not remove : D:\Apps\eclipse\eclipse.exe The issue links to permission on file system. According to the post here, two solutions raised but for me, only following solution, the best to […]

Verify Your Java/JDK 1.8 Environment

As developer, sometimes, you need to know quickly if your environment is ready for a JDK after switch or something. Here I take a basic way to check in general, I think most of new developer always want that so I take my Windows environment as example. You need to check your JRE and JAVA_HOME […]