Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.

Slides:



Advertisements
Similar presentations
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Advertisements

1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
20-Jun-15 Eclipse. Most slides from: 2 About IDEs An IDE is an Integrated Development Environment.
Eclipse Introduction Dwight Deugo Nesa Matic
Eclipse Begin at the Beginning. Where to Find it:
Introduction to CVS 7/3/20151UMBC CMSC 341. Outline Introduction to Source Code Management What is CVS? CVS for Project Submission Basic commands Checkout,
Views Dwight Deugo Nesa Matic
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Getting started with Eclipse By Alexander Butyaev.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
1 IMPORTANT NOTE  IMPORTANT NOTE not  As of this writing the default project you will download, import and use in this class is not enabled for Tomcat.
C OMP 401 E CLIPSE S ETUP Instructor: Robert Mills. John Hansen.
Workbench Overview Dwight Deugo Nesa Matic
Java Environment CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 1 - Spring 2008 Instructor: Prof. Richard N. Taylor.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
C OMP 401 E CLIPSE S ETUP Graduate TA’s: Wade Gobel, Ben Newton.
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Eclipse 3.1 IDE Overview.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Dr. Gina Green Class Setup.
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Download and Install: 1.Java Development Kit (JDK) bin/INTERSHOP.enfinity/WFS/CDS- CDS_Developer-Site/en_US/- /USD/ViewProductDetail-Start?ProductRef=jdk-
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
How to Download and Install the Naper eReader and eBook Naper Publishing Group.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Page 1 | | ©2009 Installation of Selenium IDE and RC Amit Maheshwari 20 th Sep’10.
How to Install Eclipse Click hereClick here to download Eclipse.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
Chapter 3 Servlet Basics. Contents A.Installing Eclipse WTP and configuring Tomcat B.Prime Number Problem C.Multiplication Table Problem.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 5.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
Eclipse 27-Apr-17.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
CF Eclipse Nick Kwiatkowski Michigan State University, Physical Plant 8/8/2006.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
Java IDE Dwight Deugo Nesa Matic
Day 1 Session 2. Setup & Installation
Debugging RTC CLI in Eclipse
ATS Application Programming: Java Programming
ETL Validator + ALM = Data Delivery. Faster and Better
Setting up Eclipse Locally
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Working with Libraries
Java Code Review with CheckStyle
Presentation transcript:

Plug-in Development Environment

Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging

Tools Install a JDK (if needed) – J2SE downloadsJ2SE downloads Install Integrated Development Environment (IDE) –Using Eclipse as an example Free Fully featured Eclipse download –Other IDEs available JBuilder NetBeans IntelliJ

Installation Use an application that handles zip files, such as WinZip or Windows Explorer, to extract the Eclipse files into a folder.

Installation Install Tomcat plug-in for Eclipse –Tomcat plug-in.Tomcat plug-in –Allows Tomcat to run in the context of the IDE. –Configure the plug-in to use CenterView’s Tomcat installation.

Installation Unzip the Tomcat plug-in into the Eclipse dropins folder.

Configuration Start Eclipse (eclipse/eclipse.exe). Choose a workspace.

Configuration Go to the workbench.

Configuration Select Preferences from the Window menu.

Configuration Select the Tomcat preferences, set Version 5.x, and browse to the Tomcat of your CenterView installation. Then click OK.

New Project Create a new project in Eclipse –Plug-in source code is part of this project. –Builds the CenterView plug-in (class files). –Set as a Tomcat project (if needed).

New Project Select Java Project from the drop-down.

New Project Type the project name and click Finish.

New Project Create a CenterView plug-in file –Configure the external JARs. –Create the package. –Create the new class.

New Project Select Properties > Java Path from the Project menu, then add the API JARs using Add External JARs and navigating to CenterView folder/Server/plugins/lib/api.

New Project Create a new package by expanding the project, right-clicking src, then clicking New > Package.

New Project Type the package name and click Finish.

New Project Two options with class file location –Local to Project Already configured for it. Must copy to another directory to use. –Local to CenterView Advanced configuration. No need to copy class files.

Basic Debugging Start the database. Start the Eclipse IDE. Start Tomcat from the IDE. Put a breakpoint in the plug-in code. Display the dashboard item that is associated with the plug-in (preview in browser or select in Builder). Control returns to the IDE to allow debugging.

Basic Debugging Since you are not using the batch file to start CenterView Server, you need to start the database separately. To start Postgres separately: –Navigate to CenterView folder/Pgsql. –Run postgresql start. If you are using another database, it needs to be running.

Basic Debugging Alternately, you can set up an External Tool Configuration.

Basic Debugging Browse the file system to locate the postgresql script file, add start to the Arguments list, give it a name, then click Apply.

Basic Debugging Start Tomcat by selecting the Tomcat Start button on the tool bar.

Basic Debugging Select a Java file in your package, then double-click in the gray bar to add a breakpoint at a specific line in the code.

Basic Debugging The IDE switches to a Debug perspective when a breakpoint is hit.

Remote Debugging IDEs also have the ability to remotely debug a process –Requires the JVM of the process to be debugged to start with certain flags set (Tomcat Startup script). –IDE needs to connect to this process to debug.

Remote Debugging Tomcat Startup (Windows version) SET INSTALLDIR=C:\PDE\CenterView3 SET JAVA_HOME=%INSTALLDIR%\jre SET CATALINA_HOME=%INSTALLDIR%\Tomcat SET CATALINA_BASE=%INSTALLDIR%\Tomcat SET JAVA_OPTS=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties - Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed - Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% - Djava.io.tmpdir=%CATALINA_BASE%\temp SET JAVA_DEBUG=-Xdebug - Xrunjdwp:transport=dt_socket,address=8787,suspend=n,server=y %JAVA_HOME%\bin\java -cp %CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\commons- logging-api.jar %JAVA_OPTS% %JAVA_DEBUG% org.apache.catalina.startup.Bootstrap

Remote Debugging Optionally, you can modify the CenterView3/Tomcat/TomcatLauncher.properties file and add the following line: Application.commandline.options=-Xdebug;- Xrunjdwp:transport=dt_socket,server=y,suspend=n, address=8787

Remote Debugging Select Debug Configurations from the Debug tool bar drop-down.

Remote Debugging Select Remote Java Application from the list. Click the New button in the Content pane. Change the configuration name and the port, then browse for the current project. Click Apply to save the changes.

Remote Debugging

When debugging remotely: –Start the database. –Start Tomcat using the script. –Start the IDE. –Select Debug Configuration from the Debug tool bar drop-down. –Set breakpoints in code. –Display the dashboard in the browser.

Additional Resources Corda Connection – Visual Evolution 2008 –Go to portal.corda.comportal.corda.com –Login –Resources –Visual Evolution 2008 Other VE topics