EPICS and Java Michael Dorin Metropolitan State University St. Paul, MN.

Slides:



Advertisements
Similar presentations
X platform A solution making PLM better. Outline Mobile trend and app market rising Looking for my data at any time Making a decision everywhere A easy.
Advertisements

Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Brief Introduction to Java and C# Dahai Guo Oracle Certified Java Programmer (SCJP) Associate Professor and Program Director Software Engineering Program.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
By: James Ondecko  What is Android?  Helpful backgrounds for Android development  Tools & Installs  Android Virtual Devices  Helpful references.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
MOBILE APP DEVELOPMENT Presented by Md. Zakaria Chowdhury CEO, Webcraft Bangladesh Director, Sylhet IT Academy.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SCERSIG: Creating Android Apps with App Inventor 26 October 2011 Ric Paul, Health Services Library, Southampton.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Sayed Ahmed BSc. Eng. In Computer Sc. and Eng. (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just.
Programming Your Android App Gourav Khadge
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Android 2: Introduction to the Technology Kirk Scott 1.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
GeoADE - Geometric Algorithm Development Environment Tsai-Yeh Tung 2010/3/9 Web-based Collaboratory Lab, IIS, Academia Sinica, Taiwan Algorithmic Theory.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni August 26, 2015 *Based on slides from Paresh Mayami.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Java Mobile Apps with GWT & PhoneGap Josh Marinacci, webOS Developer Advocate.
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Introduction to Android Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
Sayed Ahmed Computer Engineering (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just et cetera) Technologies.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
DUE Hello World on the Android Platform.
Android for Java Developers Denver Java Users Group Jan 11, Mike
Presented By: Muhammad Tariq Software Engineer Android Training course.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Setting up Cygwin Computer Organization I 1 May 2010 ©2010 McQuain Cygwin: getting the setup tool Free, almost complete UNIX environment emulation.
Introduction to Android
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
How to Install Eclipse Click hereClick here to download Eclipse.
Android. What is Android? A mobile device operating system. Seen primary in tablets and Cellphones. Based on a Linux kernel. Applications are Java Based.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Installation of Visual Studio Android emulator and Android Studio
Downloading a Visual C compilers (try it yourself at home) Visual Studio 2012 can be found at:
 Can access all API’s made available by OS vendor.  SDK’s are platform-specific.  Each mobile OS comes with its own unique tools and GUI toolkit.
Best 5 Mobile App Development Tools for Developer's to think beyond the Limitation.
JavaFX on Mobile and Embedded: Status and Future Plans
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Introduction to Android Programming
跨平台 Hybrid App 開發簡介 - 使用 Visual Studio Tool for Apache Cordova + HTML/JavaScript 陳葵懋 (Ian)
COM594: Mobile Technology Practical – Week 1 Android and Android Studio.
Mobile App Development for Multiple Platforms with Visual C++, 2016
Mobile Device Development
CLOUD
SEEM4570 Tutorial 1:Software Installation
Introducing ‘Show my Homework’
Android development with RAD Studio
Development-Introduction
Hybrid Mobile Applications
Developing applications using Chromium
Mobile App Development
The Most Popular Android UI Automation Testing Tool Andrii Voitenko
Cygwin: getting the setup tool
MOBILE PROGRAMMING Meriska Defriani, S.Komp, M.Kom Introduction
Running C# in the browser
Presentation transcript:

EPICS and Java Michael Dorin Metropolitan State University St. Paul, MN.

Metropolitan State University

Inspiration We have both undergraduate and graduate computer science students Computer Science in the 80’s (and before) was tied to math and engineering Now it is tied to the web and business

Computer Science Metro State’s teaching language is Java Virtual Linac bootable image on Ubuntu Starting this teaching experiment in 2 weeks – Sophomore level design class – My class goal: A ‘Cool’ GUI for the Virual Linac

JCA It seemed natural to start here: It has a JNI component and the available dll was 32 bits 64-bit java required a 64 bit dll

Challenge: VS 2012 Visual Studio 2012 Express – No cost and easily attainable Tools for generating x64 binaries don’t always install – ‘Repair’ the visual studio installation – I don’t know why, but this seems to work

If you don’t get 64 bit Control Panel, Programs, “Repair” 64-bit tools will be installed during repair

Now build EPICS Base Create a Win64.bat – Not very different from win32.bat – substitute vcvarsall.bat with x86_amd64\vcvarsx86_amd64.bat – set EPICS_HOST_ARCH=windows-x64 – Setup Perl if you need to – Setup path to gnu make if you need to Build via the “ VS2012 x64 Cross Tools Command Prompt” Go get a coffee

Continuing to JCA Get ‘ant’ and JCA Source Within JCA source tree – config.windows-x64.properties – config.properties – build.windows-x64.properties – Edit build.xml – Edit Jni.cpp and add #include

Build JCA run ‘ant’ Seems easy enough now…

Process too challenging Thank you Matej Sekoranja for information on CAJ and examples I should have asked earlier!

CAJ SURPRISE!!! NO NEED for JCA’s.DLL You still need jca.jar – You need a caj jar – Download, simply add to your eclipse project – Mercurial ‘plugin’ for eclipse might help too! For desktop apps, you are in business.

What about Android? Very easy Download android sdk – Download JCA source and CAJ sources

Create a Android Library Project

Import the libraries I downloaded – caj sources.jar – jca sources-a.jar Extract jar files – jar -xvf jca sources-a.jar – Jar –xvf caj sources.jar Re-zip – zip -r caj.zip *

Import into eclipse

Android Pitfalls Android UI thread wants everything run to completion “When the thread is blocked, no events can be dispatched, including drawing events.”

Android Pitfalls Permissions – Threads – es-and-threads.html es-and-threads.html Android activity lifecycle

Conclusion Ready, but more work to do After GUI work, inspire student created simulations More work needed on mobile devices – Android NDK gives a gnu ‘c’ compiler easily – IOS is happy(ish) with ‘c’ programs

Thank you!