Java9 – new features

  • More Module System, e.g.  self-describing collection of code and data
    • Using jlink, to introduce a new optional phase, link time, which is in-between compile time and run time, during which a set of modules can be assembled and optimized into a custom runtime image
    • The modular JAR file with module-info.class file in its root directory.
    • Using jmod tool, the New JMOD format can be created. (new packaging format similar to JAR)
  • New version schema ($MAJOR.$MINOR.$SECURITY.$PATCH)
  • java shell: jshell
  • Compile for old java version (6 – java6)
    javac -source 6 -target 6 HelloWorld.java
  • More Diagnostic Commands: jcmd (jcmd pid help command)
  • Multi-Release JAR Files: Extends the JAR file format to enable multiple, Java release-specific versions of class files to coexist in a single archive
  • Removes the hprof, jhat from the JDK
  • More Security: DTLS, TLS,  disable X.509 certificate chains with SHA-1-based signatures,  PKCS12 keystores by default, SHA-3 cryptographic hash functions
  • The Garbage-First Garbage Collector (G1 GC) is the default garbage collector in JDK 9.
  • JavaDB, which was a rebranding of Apache Derby, isn’t included in JDK 9.
  • The launchers java-rmi.exe from Windows and java-rmi.cgi from Linux and Solaris have been removed.
  • In JDK 9, the Windows 32–bit client VM is not available. Only a server VM is offered.
  • Java VisualVM isn’t bundled with JDK 9.
  • The AppleScript engine is removed in JDK 9.

Windows Registry Key Changes

The Java 9 installer creates these Windows registry keys when installing the JRE:

  • “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE”
  • “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9”

The Java 8u152 installer creates these Windows registry keys when installing the JRE:

  • “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment”
  • “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8”
  • “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_152”
Advertisements

Powershell For windows Users

PowerShell – Windows Management Framework.

powershell_4_0_snapshot

Powershell 5

https://www.microsoft.com/en-us/download/details.aspx?id=50395

Windows 10

  • Build-in;

Windows 7

  • Install Windows 7 SP1;

http://www.microsoft.com/en-us/download/details.aspx?id=5842

  • Install .NET 4.5;

http://www.microsoft.com/en-us/download/details.aspx?id=30653

  • Install/Reinstall Powershell 4.0;

64bits
http://www.microsoft.com/en-us/download/details.aspx?id=40855


32bits
http://www.microsoft.com/en-us/download/details.aspx?id=40855

Windows 8

  • Upgrade to Windows 8.1;

Windows 8.1

  • Build-in