Run Java file with Window cmd

Slides:



Advertisements
Similar presentations
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Advertisements

Working Environment - - Linux - -.
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.
Vi Editor TA for ITIS3100: Xu Fei
UnixUnix Basic. Convention Italic text indicates text displayed by the computer system. For example, login: indicates a login prompt displayed by the.
CS 202 Computer Science II Lab Fall 2009 September 3.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Introduction to Java.
CS0007: Introduction to Computer Programming Setting Up Java.
IB Computer Science II Paul Bui
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
Introduction to Java Tonga Institute of Higher Education.
Set up the Environment for leJOS NXJ. Required Software Software –JDK 1.6 –leJOS NXJ –USB driver for NXT Mindstorm nxt USB driver Libusb MMN Lab.
The UNIX development environment CS 400/600 – Data Structures.
Vim Editor and Unix Command gcc compiler Computer Networks.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
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.
UNIX Introduction CSCE 221H Texas A&M University.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
DOS and the Command Line CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University.
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
DOS and the Command Line CS 21a: Introduction to Computing I First Semester,
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
How to Run Java Applications using the Windows Command Prompt. Julian Falasca May 11 th, 2010 ENGL 393.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
 Simple UNIX commands  I/O techniques in C++  Solutions to Lab#0 problems  Solutions to Lab#1 problems 1.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
 CSC 215 : Procedural Programming with C C Compilers.
CS:414 introduction to Unix and Linux
Yep, you need to know this
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
2. Java language basics (1)
GRID COMPUTING.
How to Program.
CS1010: Intro Workshop.
How to Start Programming in Linux Environment
CS306 Lab Workout 2 Fall 2017.
Getting started with CentOS Linux
Using Vi(m) This presentation on using the Vi(m) editor will cover:
Guide To UNIX Using Linux Third Edition
By Jonathan Rinfret CREATING A BASH SCRIPT By Jonathan Rinfret
Linux 104 Training Module File Editing.
Practice #0: Introduction
Linux.
Linux System Administration Editors
Unix Systems Administration
Perl A simple test.
Users and Accounts Lab 0.1. Users and Accounts Lab 0.1.
The Linux Command Line Chapter 12
Basic gvim commands.
IOTA HOW TO START BUILDING.
C151 Multi-User Operating Systems
LAB 9 – INTRUSION DETECTION AND PREVENTION SYSTEMS
Getting started with CentOS Linux
Chapter 2 Basic vi Editor.
Using emacs and G++ at U. W.
IB Computer Science II Paul Bui
Java Tutotrial for [NLP-AI] 2
Linux Operations and Administration
Compile and run c files.
The Linux Command Line Chapter 12
Presentation transcript:

Run Java file with Window cmd Create a source code file (.java) Save & Remind the saved directory Open ‘cmd ‘ and change directory to where java file is located Check java jdk is installed in your computer. ($ java –version) Compile and run java file (javac HelloWorld.java  java HelloWorld)

Run Java file with Linux terminal Create a source code file (using vi editor) ($ vi HelloWorld.java)

Run Java file with Linux terminal <How to use vi editor>

In Command mode (escape)  i : insert mode (can insert letter)  x : erase one letter  :wq! : save file and exit editor

Ex) Press ‘Esc’ key  Press ‘i’ to insert letters Press ‘Esc’ key  Press ‘x’ to erase a letter Press ‘Esc’ key  Press ‘h, j, k, l’ to move cursor Press ‘Esc’ key  Press ‘:wq!’ to save and exit editor

Run Java file with Linux terminal 2. Write a source code file (using vi editor) 3. Check .java file

Run Java file with Linux terminal 4. Check Java version 5. Compile and Run ‘HelloWorld.java’

<Window cmd command> cd: change directory dir: Display a list of files and folders <Linux terminal command> ls: Display a list of files and folders