Saturday, August 29, 2015

JavaFX on Mobile

When JavaFX Script was released, the mobile component was an important part. It was also one of the reasons many people and analysts believed in JavaFX as a real cross-platform client-side framework. For a number of reasons, JavaFX on mobile disappeared from the official Java roadmap. Fortunately, the OpenJFX team at Oracle made all the required sources available, and the JavaFXPorts initiative worked on providing JavaFX SDK's for the mobile platforms. In this session, it will show the current state of JavaFX on Mobile. This video will show how to create a real cross-platform JavaFX Application using an IDE, and how easy it actually is to deploy that application on Android and iOS devices. Also will show some of the features and limitations, and talk about the eco-system that is starting to take shape.

Get info of running jvm, os and cpu - tested on Windows 10

Java example to display information of running jvm, os and cpu:

package java_systemproperties;
 
/**
 * @web http://java-buddy.blogspot.com/
 */
public class Java_SystemProperties {
 
    public static void main(String[] args) {
        System.out.println("java.vm.name:\t" 
                + System.getProperty("java.vm.name"));
        System.out.println("java.vm.specification.name:\t" 
                + System.getProperty("java.vm.specification.name"));
        System.out.println("java.vm.specification.version:\t" 
                + System.getProperty("java.vm.specification.version"));
        System.out.println("java.vm.specification.vendor:\t" 
                + System.getProperty("java.vm.specification.vendor"));
        
        System.out.println("os.name:\t" + System.getProperty("os.name"));
        System.out.println("os.version:\t" + System.getProperty("os.version"));
        System.out.println("os.arch:\t" + System.getProperty("os.arch"));
        System.out.println("sun.arch.data.model:\t" 
                + System.getProperty("sun.arch.data.model") + " bit");
        
        System.out.println("PROCESSOR_IDENTIFIER:\t" 
                + System.getenv("PROCESSOR_IDENTIFIER"));
        System.out.println("PROCESSOR_ARCHITECTURE:\t" 
                + System.getenv("PROCESSOR_ARCHITECTURE"));
        System.out.println("NUMBER_OF_PROCESSORS:\t" 
                + System.getenv("NUMBER_OF_PROCESSORS"));

    }
}


Run on Windows 10, with Intel i5 64 bit CPU
Related: Get system properties with System.getProperties()

Install NetBeans IDE on Windows 10

This video show how to install NetBeans IDE (currently 8.0.2) on Microsoft Windows 10.




To download NetBeans IDE, visit https://netbeans.org/


Friday, August 28, 2015

Install JDK 8 on Windows 10, and set Path

Browse to Oracle Java SE Downloads (http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download the latest JDK.


Check the option to Accept License Agreement, and select the download file. "jdk-8u60-windows-x64.exe" in my case.


Run the downloaded file after download completed. And follow the steps.


After installed JDK, you have to set Path to it.

To set path, search "Environment Variables", click "Edit the system environment variables".

Click on "Environment Variables..."

Select and edit Path

Add the  path of the bin folder of your JDK, "C:\Program Files\Java\jdk1.8.0_60\bin" in my case.


After path set, you can run javac in command prompt.

Sunday, August 16, 2015

JavaFX Essentials

Create amazing Java GUI applications with this hands-on, fast-paced guide


About This Book
  • Develop amazing gestures –based applications and an interactive JavaFX application powered by leap motion devices
  • Get in touch with the right tools to rapidly develop your JavaFX application and give you essential hands-on experience with JavaFX 8
  • A step-by-step guide with examples to help you develop applications
Who This Book Is For
If you are a Java developer, an experienced Java Swing, Flash/Flex, SWT, or web developer looking to take your client-side applications to the next level, this book is for you.

What You Will Learn
  • Deliver complex, compelling, and high performance JavaFX 8 applications with new impressive Java SE 8 core features and enhancements
  • Run JavaFX applications on embedded devices such as Raspberry Pi
  • Use Scene Builder to create and define UI screens graphically and save them as JavaFX FXML-formatted files
  • Develop amazing gesture-based applications and an interactive touchless JavaFX application with Leap motion devices
  • Get hands-on knowledge about mobile development and create native JavaFX applications for Apple iOS and Android platforms
  • Use JavaFX with an Arduino board to develop desktop applications to monitor data coming from the real world or control real devices
In Detail
JavaFX is a software platform to create and deliver rich Internet applications (RIAs) that can run across a wide variety of devices.

JavaFX Essentials will help you to design and build high performance JavaFX 8-based applications that run on a variety of devices.

Starting with the basics of the framework, it will take you all the way through creating your first working application to discovering the core and main JavaFX 8 features, then controlling and monitoring your outside world. The examples provided illustrate different JavaFX and Java SE 8 features.

This guide is an invaluable tutorial if you are planning to develop and create JavaFX 8 applications to run on a variety of devices and platforms.