How To Get Java ScriptEngine By MimeType

java-thumbnail

This example shows how to get the script engine by using the mimetype. This is the first step when you are using the Java script engines for executing the scripts. Before your run the scripts, you must get the javax.script.ScriptEngine instance from javax.script.ScriptEngineManager. The engines are registered using the Names ,Extensions and Mimetype. This example […]

How To Get Java ScriptEngine By Extension

java-thumbnail

This example shows how to get the script engine by using the extension. This is the first step when you are using the Java script engines for executing the scripts. Before your run the scripts, you must get the javax.script.ScriptEngine instance from javax.script.ScriptEngineManager. The engines are registered using the Names ,Extensions and Mimetypes. This example […]

How To Get Java ScriptEngine By Name

java-thumbnail

This example shows how to get the script engine by using the name. This is the first step when you are using the Java script engines for executing the scripts. Before you run the scripts, you must get the javax.script.ScriptEngine instance from javax.script.ScriptEngineManager. The engines are registered using the Names ,Extensions and Mimetypes. This example […]

PrimeFaces + EclipseLink / JPA + MongoDB Integration

primefaces-thumbnail

This tutorial explains the PrimeFaces + JPA + MongoDD integration. We are going to create a Pie Chart application using the PrimeFaces component library with the additional software JPA and MongoDB for the persistence mechanism. Before writing any snippet of code, you should have a proper installation and configuration for both the database (MongoDB) and the […]

JQuery Delegate Event Example

jquery

The delegate() method attaches one or more event handlers to child elements of specified selector. When selector is provided, the event handler is referred to as delegated. The selector can be button selector which selects elements of type button, checkbox selector which selects elements of type checkbox, child selector which selects child elements specified by […]

Eclipse Tips : How To Create JAR File In Eclipse

eclipse-thumbnail

This example demonstrates how to create the JAR file within your Eclipse environment. If you are working with Eclipse IDE, it is easy to right click on the project and export the project contents to a JAR files. The export wizard takes input as the various parameters to create the JAR file. Lets look st […]

Java ScriptEngine Example

java-thumbnail

This example demonstrates how to access the Java object from JavaScript statements. Java support the JavaScript access with the ScriptEngineManager class and ScriptEngine interface. Here you will see how we can execute the JavaScript code using the Java API’s. Create ScriptEngineManager which tracks the states of all the script engines. Create ScriptEngine by using the […]

How To Get Supported Image Formats Using Java

java-thumbnail

This example is for how to list read/write image formats in the Java applications. If you are working with the image processing applications, it is necessary to know the supported formats to inform the user. Lets look at the example on how to list read/write image formats. SupportedImageFormatsExample.java Output…

How To Compress Image Using Java

java-thumbnail

Compression of image file is one of the important task when it comes to save the large number of image files. It saves lot of space if you could compress the images when it is necessary. This example demonstrates how to compress the the JPEG file and reduce the size. ImageWriteParam class is mainly used […]

How To Get Image Format Using Java

java-thumbnail

Java provides the ImageIO to work with image files. This example demonstrates how to get the type or format of the image file. It is necessary to know the type of the file when you are processing the images. Java has ImageReader which stores the type of image file. One image can have more that […]

Close
Please support the site
By clicking any of these buttons you help our site to get better