Web Tutorial

Web School - Web Development

Introduction

Developer Tools

  • Eclipse with Oracle Plug-in
  • Oracle XE Database Release 10.2.0.1.0
  • Apache Tomcat 9.0
  • Java Development Kit 1.8

Installation Guide (Release Directory)

    • Install jdk to program files for eclipse jdk 1.8.1
    • Unzip eclipse.zip to program files eclipse 4.0
    • Read JInstallWizard instructions for Home Office, Journey Life application installation

Eclipse (Getting Started)

  • Eclipse | Windows Preferences | Java | Installed JRE | Add | jdk1.8.1
  • Eclipse Project Configurations:
  • Window | Open Perspective | Java
  • Window | Open Perspective | Debug
  • Window | Open Perspective | Database Development
  • Window | Open Perspective | XML
  • Window | Open Perspective | Web
  • Window | Open Perspective | JavaScript
  • Import project (C:\Developer\Test\workspace)
  • Double click build.xml
  • Right click run target
  • Right click default target for distribution files (desktop/web application)

Desktop application

  • Import project (JourneymanSoftware)
  • Double click build.xml
  • Right click run target
  • Right click default target for distribution files

Web Project

    • Import project (JourneyLife)
    • Right click default target for distribution files (desktop/web application)

Web Application Deploy

    • Install Apache Tomcat
    • Copy dist/web - Web Archive to ApacheTomcat/webapps directory
    • http://localhost:8080/JourneyLife

Projects and Applications

  • Applications
  • Desktop application: JourneymanSoftware.jar
  • Web application: JourneymanSoftware.war
  • Install applications to eclipse\workspace
  • Install JourneymanSoftware to eclipse\workspace\JourneymanSoftware

Web application

  • Import project (Journey Life)
  • Right click default target for distribution files
  • Install Apache Tomcat from Release Directory
  • Right click deploy to publish:
  • Start Apache Tomcat Server (default 8080)
  • Right click test target
  • Open JourneyLife (web browser: http://localhost:8080/JourneyLife)

Apache Tomcat Service

  • Right click on :
  • Tomcat7.exe
  • Properties:
  • Compatibility
  • Run this program as administrator
  • Right click on :
  • Tomcat7w.exe
  • Properties:
  • Compatibility
  • Run this program as administrator
  • Open command prompt:
  • cd C:\Developer\apache-tomcat-9.0.11\bin
  • service install
  • Double click Tomcat7w.exe:
  • Logging Settings:
  • Log path: C:\Program Files\Apache\apache-tomcat-7.0.37\logs
  • Java:
  • Java Virtual Machine: C:\Program Files\Java\jre7\bin\client\jvm.dll
  • Java Classpath:
  • C:\Developer\apache-tomcat-9.0.11\bin\tomcat-juli.jar;C:\Developer\apache-tomcat-9.0.11\bin\bootstrap.jar
  • Open Services:
  • Tomcat 7
  • Startup Type: Automatic
  • Click Start