”Java and JMLfor Dummies” The Java source code is written in a text file using your favourite editor (Notepad) and is saved with extension.java. Be careful.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
T ESTING WITH J UNIT IN E CLIPSE Farzana Rahman. I NTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find.
How to Create a Java program CS115 Fall George Koutsogiannakis.
Java Tutorial – Building GUIs Java with Added Swing Daniel Bryant
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Microprocessor Simulation
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
01 Introduction1June Introduction CE : Fundamental Programming Techniques.
Scite Scintilla integrated text editor. Click here.
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
Computer Science A 5: 17/2. JCreator IDE: Integrated Development Editor Features: Compile and run from editor Manage multiple files Can look up api documentation.
Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
Using the Java programming language compiler. Review of relevant material from previous lectures From previous lectures: A computer can only execute machine.
The Basic Java Tools A text editor to write Java program source code. A compiler to translate source code into bytecode. An interpreter to translate.
Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!
Installation Process: Step 1 Step1: Login in to Unix Host name or IP address type in douglass User name type in user name Password type in user password.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
A First Program Using C#
CS413: Java Programming language Applications Applets
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
1 Creating File Access Services Presented by Ashraf Memon Hands-on Ashraf Memon, Ghulam Memon.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Java Environment CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
Python From the book “Think Python”
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
IDLE An IDE for Python bundled with the program release Click on IDLE (Python GUI) in the Start menu under the Python program group  Get the IDLE Python.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Compiling and running Java programs with BlueJ. Successfully compiled files program files in BlueJ You can tell from the shade of a program icon in BlueJ.
Documentation Javadocs. Design/Documentation An essential ingredient of good Object Oriented programming is known as design by contract. This means that.
This shows CIS17 and the first day introduction..
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Objects First With Java A Practical Introduction Using BlueJ Using Java without BlueJ 1.0.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Verificare şi Validarea Sistemelor Soft Tem ă Laborator 1 Tools for JML jmlc & jmlrac Dat ă primire laborator: Lab 1 Dat ă predare laborator: Lab 2.
Getting Eclipse for C/C++ Development
Writing, Compiling and Running a C program
A Short DOS Presentation
Download TPL.zip to some directory
CS1101 : Using Course Marker
Programming without BlueJ Week 12
Software Development Jar Files for Applications and Libraries
Essentials of HTML.
Essentials of HTML.
How to Run a Java Program
ms vısual studıo 2008-Introductıon TUTORIAL
HOW TO CREATE A CLASS Steps:
Java Intro.
Our Environment We will exercise on Microsoft Visual C++ v.6
Scripts In Matlab.
Getting Eclipse for C/C++ Development
Running a Java Program using Blue Jay.
HEADLINE GOES HERE. Directions to save header as JPEG:
Compile and run c files.
Presentation transcript:

”Java and JMLfor Dummies” The Java source code is written in a text file using your favourite editor (Notepad) and is saved with extension.java. Be careful not to save with extension.java.txt, but as.java. I use the JML directory (next slide). The JML-specification is written as special comments in the source code using

”Java and JML for Dummies” I save source in a directory in the JML- directory. Be careful not to save with extension.java.txt, but as.java. My bat-file starts this GUI. In order to compile my JML-specs, I choose JML Runtime Assertion Checker Compiler And the RacGUI on next slide opens.

”Java and JML for Dummies” Choose Open File A file browser opens, the wanted source- (.java) files in your project are selected and added. In order to compile (to generate a.class file) and to get my JML-specs checked, I click the ”run”- button. Note the settings: Output on the next slide.

”Java and JML for Dummies” During compilation a long series of messages are issued. If everything goes well, it ends with ”Done”. Are there errors in the spec, error messages are issued.

”Java and JML for Dummies” Errors in the Java code also result in error messages.

”Java and JML for Dummies” Everything went well. An executable (.class) file has been generated. It is executed using the command ”jmlrac ” from a prompt. The command must be issued from the directory were source and class files are placed. Note: the extension (.class) is omitted. From here the process is described on the slides ‘JML-1.ppt’.