SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Java особенно хороша с
малиновым десертом!
Андрей Дмитриев
andrei-dmitriev@yandex.ru
Александр Белокрылов (@gigabel)
Alexander.belokrylov@oracle.com
Умный город
& Контроль трафика
Source: http://www.flickr.com/photos/epsos/5591761716/
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.4
Автоматизация
производства
Source: Rockwell Automation
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.5
Вендинг машины
Source: http://www.flickr.com/photos/61360523@N04/7183848790/
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.6
Телеметрия
Source: http://www.flickr.com/photos/9979792@N04/2984873350/
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.7
Удаленный контроль
пациентов
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.8
Умный дом
=
Java и малиновый десерт
 Raspberry Pi
http://elinux.org/File:Raspi-Model-AB-Mono-2-699x1024.png
http://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/09/Raspberry-Pi-GPIO-Layout-Revision-2.png
А это еще зачем?
http://i.imgur.com/k0Puu.jpg
Chalkboard Electronics Touchscreen
 10" or 7" Form Factor
 Connects via HDMI/USB
 Tested with JavaFX 8
 10% Exclusive Discount:
G1F0U796Z083
http://www.element14.com/community/servlet/JiveServlet/showImage/146291/picamera.bmp
SPI
ds1722
HDMI
Java ME Embedded 3.3
Java SE 8 + JavaFX
Java ME Embedded
Java ME Embedded и Raspberry Pi
 IMP-NG
– MIDP 2.0 без UI и Game API
– Размер Run-time менее 4 Мб
 API для доступа к GPIO, UART, SPI, I2C
– Device access API (DAAPI)
– Нужен root
http://docs.oracle.com/javame/config/cldc/rel/3.3/rasp/gs/html/getstart_raspi/toc.htm
http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html
Device Access API permissions
Подпиши или разреши
Разреши, но только для себя
$JavaME_HOME/appdb/_policy.txt
В секции:
domain untrusted, unsecured
domain minimum, unsecured
Добавить:
allow: device_access
DAAPI
GPIOPinConfig pin4Config = new GPIOPinConfig(
0, // Port number
4, // Pin number
GPIOPinConfig.DIR_OUTPUT_ONLY,
GPIOPinConfig.DEFAULT,
GPIOPinConfig.TRIGGER_NONE,
false); // Initial state
Демо
Java SE и JavaFX на
Raspberry Pi
https://bitbucket.org/stephanj/tweetwall
Где взять JavaFX для Raspberry
Download Java 8 for Linux ARM, Developers Preview
https://jdk8.java.net/fxarmpreview/index.html
Как писать на JavaFX
 Используйте любимую IDE
Создай GUI за 15 минут
 JavaFX Scene Builder
Демо
Спасибо
Вопросы

Weitere ähnliche Inhalte

Empfohlen

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Java&raspberry

Hinweis der Redaktion

  1. Feel free to reuse this presentation for your local user groups. Some helpful comments are in the notes section, but feel free to embellish.For more details on JavaFX/Raspberry Pi hacking, check out this post:http://javafx.steveonjava.com/javafx-on-raspberry-pi-3-easy-steps/
  2. A visualization of the node and routing information of a part of the Internet, in 2003. By the Opte Project. If this was a part of the Internet in 2003, imagine what it would look like today.
  3. Automatic number plate recognitionRed-light violation detectionTraffic jam detectionVehicle location systemGeo-fences
  4. High-speed data collection and analysisLocal storage and historical analysisFiltering, correlation and pattern matching of real-world data
  5. Demand-based refrigeration to conserve energyDynamically changing prices based on weather and demandInventory management
  6. Location trackingContainer contents monitoringIntrusion detectionTemperature and pressure monitoring
  7. Data evaluation for potential health problemsAutomatic alerts to caregivers and healthcare providersHistorical data analysis
  8. Real-time pricing with adaptive intelligence for carbon footprint reductionAutomatic water usage metering enables conservationIntrusion detection
  9. The Raspberry Pi is a consumer-focused, low-cost board. It has a slightly slower ARM processor (ARMv6 700Mhz), but a better GPU than the BeagleBoard. Connectivity is via HDMI/Component, USBx2, Ethernet, and Audio out.
  10. And do cool stuff with the Pi like this pic of the digital signage for Devoxx, which was running on HDMI monitors at 1920x1080 off of a Raspberry Pi.
  11. And getting JavaFX is as simple as downloading Java 7 (it has been bundled since Java 7u4). Also, it is supported across different desktop platforms (shown in the picture).
  12. And you can use your favorite IDE… IntelliJ, Eclipse, NetBeans, Oracle JDeveloper, etc. Many IDEs have special support, but all you need to do is create a generic Java project and add in the jfxrt.jar file from the jre/lib directory.
  13. You can build JavaFX applications visually using Scene Builder. This is a good time to show aNetBeans/Scene Builder live demo where you can build a custom application for the audience you are working with, such as this app done for the Linux Users' Group of Davis in 15 minutes or so:https://github.com/steveonjava/LUGOD-Pi-Test