GithubHelp home page GithubHelp logo

amcquistan / openjdk11-openjfx11 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20.71 MB

Demo App for an OpenJDK11 and OpenJFX11 Project

Java 7.46% Shell 21.77% Batchfile 9.88% HTML 25.11% CSS 14.98% JavaScript 20.81%

openjdk11-openjfx11's Introduction

openjdk11-openjfx11

Demo App for an OpenJDK11 and OpenJFX11 Project with Gradle

Dependencies

Development Environment Setup

A) Mac OSX Setup mostly taken from here

  1. Download OpenJDK 11 and unzip the project then copy to location where other JDK's exist
tar xf openjdk-11+28_osx-x64_bin.tar.gz
sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines/
  1. Update your .bash_profile to easily work with different JDK version from command line
  • Add this to the bottom of your .bash_profile above the final export of PATH. Adjust accordingly based off your installs of JDKs
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)

alias java8='export PATH=$(echo "${PATH//$JAVA_HOME/$JAVA_8_HOME}") && export JAVA_HOME=$JAVA_8_HOME'
alias java10='export PATH=$(echo "${PATH//$JAVA_HOME/$JAVA_10_HOME}") && export JAVA_HOME=$JAVA_10_HOME'
alias java11='export PATH=$(echo "${PATH//$JAVA_HOME/$JAVA_11_HOME}") && export JAVA_HOME=$JAVA_11_HOME'

if [ -z ${JAVA_HOME+x} ];  then
  # JAVA_HOME is not set
  export JAVA_HOME=$JAVA_10_HOME
  java10
  echo "JAVA_HOME is $JAVA_HOME"
else
  # JAVA_HOME is set and needs removed before updating
  PATH=$(echo "${PATH//$JAVA_HOME//g}")
  export JAVA_HOME=$JAVA_10_HOME
  echo "JAVA_HOME is $JAVA_HOME"
fi

export PATH="$JAVA_HOME/bin:$PATH"
  • you can now easily switch between java versions at the command line like so.

after inital source of .bash_profile I should have JDK10

$source ~/.bash_profile
$java --version
java 10.0.1 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

switching to OpenJDK11

$java11
$java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
  1. Load project in eclipse
  • New > Java Project
  • Name it whatever
  • Select your JDK 11 you just installed
  • Select the location of the project root (ie, where the build.gradle file lives)
  • Convert project to Gradle project view in eclipse: Right Click Project > Configure > Gradle nature

B) Windows Setup

Running Gradle Project

To run on Mac OSX

./gradlew run

To run on Windows

gradlew.bat run

References

openjdk11-openjfx11's People

Contributors

sciguymcq avatar

Watchers

James Cloos avatar Adam Mcquistan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.