Coder Social home page Coder Social logo

java-starter-kit's Introduction

Java-Starter-Kit Build Status

Overview

I often find myself struggling, after not working with java for many moons, on how to start a simple project. I am so spoiled after working with node.js for so long :)

To use this, start by cloning this project to your machine.

Note on gradle

The build scripts are built around gradle. You can install gradle or use the provided version (gradle wrapper).

To install using brew, run brew install gradle.

To install manually, goto gradle.

To use the provided version, instead of running gradle, run ./gradlew

Opening in Eclipse

If you use Eclipse, the gradle scripts are nice enough to create your project and classpath files.

The first time you open the project, first create the eclipse project files:

gradle eclipse

Now you can import the project into eclipse.

If you change dependencies, update the classpath:

gradle cleanEclipseClasspath eclipseClasspath

Opening in Idea

To use Idea with this project, do one of the following

Option 1

Opening Idea, start new project, and import using the build.gradle file

Option 2

Run the following command to setup the idea project

gradle cleanIdea idea

TODO: fix the run part of this How to Run, Method 1

Compile

To compile:

gradle fatjar

Run

java -cp build/libs/jar-starterkit.jar jayray.net.hello.HelloWorld

How to Run, Method 2

Compile

To compile:

gradle installApp

Run

build/install/jar-starterkit/bin/jar-starterkit

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.