Borland JBuilder - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Borland JBuilder

Description:

Borland JBuilder. Features of JBuilder. Integrated development environment. IDE ... Borland site 200M zip. Addons for mobile development. JB6 in UoS. Package ... – PowerPoint PPT presentation

Number of Views:324
Avg rating:3.0/5.0
Slides: 26
Provided by: Jo66
Category:
Tags: borland | jbuilder

less

Transcript and Presenter's Notes

Title: Borland JBuilder


1
Borland JBuilder
2
Features of JBuilder
  • Integrated development environment
  • IDE
  • Editor, Compiler, Debugging tools
  • Development tools
  • Context sensitive help
  • Highlight text press ctrl F1 or F1
  • Automatic syntax check
  • Object.function

3
IDE
  • Object dot functions parameters
  • Colour coded text error in red
  • Help related standard library functions
  • Support for projects
  • Latest code style Java 2
  • Templates for corporate code dev
  • Corba, Databases, Servlets

4
Platform
  • Ideal - CPU 1GHz, RAM 1G
  • Min CPU 400MHz, RAM 256M
  • Disk space required 400M
  • JBuilder X free personal user edition
  • Borland site 200M zip
  • Addons for mobile development
  • JB6 in UoS

5
Package
  • Used to manage a group of source files
  • Group of class files
  • Compile to class files or
  • Produce Java archive jar
  • Jar file - type zip file
  • package mypack
  • Avoid duplication definitions

6
Project
  • Use project to set up the IDE environment
  • File dependencies
  • Add and remove files
  • Templates created
  • (1) Applets and
  • (2) Applications
  • Standard development procedure

7
JB file structure
  • proj/bak
  • proj/classes/mypack/.class
  • proj/src/mypack/runme.java.java
  • proj/classes/runme.html
  • Proj/arc/
  • proj/doc

8
Applet
  • Small applications
  • Normally started by a browser
  • Hypertext file
  • Compile a Java program
  • Class file byte code
  • Java virtual machine JVM
  • Browser loads hypertext class
  • Reduces load on server

9
Browser
  • Browser requirement
  • Runtime environment installed
  • Runtime typically 20M byte
  • Interpreter for class file
  • Applet may also be tested in IDE
  • Do not double click on runme.html

10
JB on Terraces
  • JB is installed on all cells except
  • L3 and M9
  • JB runs on Solaris in cells U3 and U4
  • Practical sessions to be held in
  • RV208 in Business School
  • Boot using Drive 3
  • L3 PCs have just 64M RAM

11
Online applet
  • http//www.sunderland.ac.uk/ts0jti/frind/stframe.
    htm
  • To make a webpage
  • Click on makweb
  • Run a terminal session
  • Use telnet to access your website
  • Run from command window (dos)
  • Enter user id and password

12
Set mode
  • mkdir public_html
  • Change mode chmod
  • Set directory and file rights
  • chmod 755 . - space dot
  • chmod 755 public_html
  • Upload files using winscp or gftp

13
File uploading
  • To move files between your home and the
    university
  • Secure file transfer using
  • Windows XP winscp
  • Linux gftp
  • ftp ony works within the UoS
  • Firewalls block normal ftp

14
Set access rights
  • Change directory cd
  • cd public_html
  • chmod 755 runme.html or
  • chmod 755 . - all sub dir
  • Remember that
  • Windows is not case sensitive
  • Unix/Solaris is case sensitive

15
Applet files
  • Required files
  • html file
  • All class files
  • JB puts html file above class directory
  • Runme.htm above package
  • Mypack/runme.class .class
  • File and class names perfect match
  • E.g. Myfile and myfile problem

16
RV208
  • Borland JB version 6
  • User files c\temp or
  • Applet in H\public_html
  • C\work only in Edin Bldg

17
JB6 screenshot 1
18
JB6 screenshot 2
19
Menus
  • File
  • New project
  • New application
  • Close project
  • Project
  • Compile - make and rebuild
  • Add and remove files
  • Project properties - run - app/applet

20
Menus 2
  • Run
  • Run project F9
  • Step over F8
  • Step into F7
  • Add breakpoint
  • Tools
  • Configure JDK
  • Configure libraries

21
Runme.html
  • codebase "."
  • code "TandJgrad.TandJ.class
  • name "TestApplet"
  • width "400"
  • height 300
  • TandJgrad package - dir
  • TandJ.class class file

22
File types
  • Project file name
  • Project.jpx or project.jpr (old)
  • Dependencies file
  • Classes\package cache\project.dep2
  • All source files in
  • src/package/f1.javaf2.java src
  • Remove unused or extra files

23
Applet screenshot
24
Threads
  • Close down threads after use
  • Depress red button bottom
  • Left hand corner
  • Right mouse button
  • Remove all message tabs
  • Frees up RAM faster response
  • Save project - persistence

25
Browser Test
  • Run MS Internet Explorer
  • Open File
  • Select C/proj/classes/runme.html
  • Note service pack 2 may block
  • Applet from loading
  • Remember Java Runtime environment must also be
    installed
Write a Comment
User Comments (0)
About PowerShow.com