Git Product home page Git Product logo

g5's Introduction

How to build

You can build this project one at the command line with Apache Ant or through the NetBeans GUI.

Building with NetBeans:

You only need to use the NetBeans configuration menus to switch between building or running the client and the server.

In order to build the project through NetBeans:

  1. Use the "Open Project" menu item and point it to the cloned project.
  2. Set the config to "Server" and click build.
  3. Set the config to "Client" and click build.

In order to run the project through NetBeans:

  1. Set the config to "Server".
  2. Right Click the project and click run.
  3. Set the config to "Client".
  4. Right click the project and click run.
  5. Repeat steps 3 and 4 to get a second client.

Building on the Command Line with Apache Ant:

Building the client or server with Apache Ant requires you to set a configuration variable. This variable will be set to the last NetBeans build target by default

In order to build

  1. Change to the directory of the cloned project.
  2. Run "ant -Dconfig=Server" to build the server.
  3. Run "ant -Dconfig=Client" to build the client.

In order to run the project on the command line:

  1. Open 3 shells and cd to the directory of the cloned project.
  2. Run "java -jar dist/Server/BattleshipServer.jar" in one shell.
  3. Run "java -jar dist/Client/BattleshipClient.jar" in the other shells.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.