Tips on installing JBuilder - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Tips on installing JBuilder

Description:

unzip the 4 files into some temporary folder (e.g. c:temp). This requires PKUnzip or similar ... For each in turn (foundation, docs, samples and opentools) ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 11
Provided by: cspee
Category:

less

Transcript and Presenter's Notes

Title: Tips on installing JBuilder


1
Tips on installing JBuilder
  • ...

2
Installing JBuilder
  • Jbuilder 3.5 is provided on your CD
  • Open the MyComputer icon, and use right-click to
    explore
  • Double click JB35?windows
  • unzip the 4 files into some temporary folder
    (e.g. c\temp). This requires PKUnzip or similar
  • For each in turn (foundation, docs, samples and
    opentools), find the install.exe file and double
    click. This installs everything into
    C\JBuilder35 by default
  • The executable is in C\JBuilder\bin\JBuilder.exe
    (or use your start menu to launch)

3
Running JB for the first time
  • When running JB for the first time, you will be
    asked for a serial number and a key
  • shhhhhh...........
  • Serial number xa32-?5n6h-5398g
  • Access key zd4-?7a

4
Using JBuilder
  • A group of files are collected together into a
    project.
  • Each project has its own .jpr file
  • For each project, make a folder and put the Java
    files you need in there, e.g.
  • C\fred\java\MyFirstProject
  • ...Instrument.java
  • ...MyInput.java
  • ...Saxophone.java
  • ...InstrumentTest.java etc

5
Making a new project
  • Choose File?New Project
  • Follow the wizard.
  • Replace ....\untitled\untitled.jpr with, e.g.
    ...\MyProject\MyProject.jpr
  • Do not mess with the rest of the path here
  • You have the option of preparing some
    documentation for your project here (optional)

6
Adding files to your project
  • Use the 'AddFile' icon () to add all the java
    files you will work with
  • Under Project?Project Properties?Paths, add the
    Folder containing your code to the Source Path
  • Under Project?Project Properties?Run, choose the
    file containing your main method
  • Build or make your project
  • Run your project

7
Avoiding problems
  • Keep all files and only files associated with one
    project in a single folder
  • Make sure that folder is listed as one of the
    sources in the project properties list
  • Make sure you have chosen which file contains the
    main method

8
Why bother?
  • With practice, managing multiple files becomes
    much easier
  • Documentation is immediately available (right
    click on any identifier to browse its
    documentation)
  • Building graphical interfaces is greatly
    simplified
  • Finding out what classes are available is greatly
    simplified
  • Syntax highlighting! Helps debugging.
  • A debugging tool is also included

9
Error messages you may meet 1
  • Warning 908 check sourcepath. source X.Java
    cannot be found.....by appending X.java to each
    sourcepath entry
  • Solution project?project properties?paths and
    add the folder containing your source code to the
    source path

10
Error messages you may meet 2
  • Code compiles, but when you run it, you get the
    message
  • Exception in thread 'main'
  • Solution project?project properties?run set the
    Main class to the file with your main method in it
Write a Comment
User Comments (0)
About PowerShow.com