How to Build jFLAC using NetBeans.

Prerequisites

  • You have NetBeans installed.
  • You have a Java Development Kit version 1.4 or higher installed.

Steps

  1. Download or retrieve the jFLAC source code from CVS .
  2. From NetBeans "File" menu, choose "New Project" then choose "Java Project with Existing Sources", and name it as you'd like.
  3. For existing sources, select the directory with the sources you downloaded or retrieved with CVS."
  4. Choose build jar file project properties build packaging.
  5. Build it.

How to build jFLAC using Maven2

Pre-requisites

  • You have downloaded and installed Maven2.
  • You have a working Java Development Kit version 1.4 or better.

Steps

  1. Download or retrieve the jFLAC source code from CVS .
  2. Using a shell, run your desired Maven target from the base jFLAC directory (where pom.xml is located)
    mvn jar:jar

Maven2: A step-by-step guide to installing

Pre-requisites

  • You have a working Java Development Kit version 1.4 or better.

Steps

  1. Download Maven 2.0.8.zip (Windows) or Maven 2.0.8.tar.gz ('nix) [http://maven.apache.org/start/download.html )].
  2. Extract the downloaded zip to your chosen target directory. Resulting in something like:
    /usr/java/Maven 2.0.8
    or
    c:\java\Maven 2.0.8
  3. Create a M2_HOME Environment Variable and set it to the target directory created in the previous step. 'nix: add an entry to a shell startup script, e.g. ~/.bash_profile

    Windows: set this as a 'User Variable' in your 'Environment Variables' via the Control Panel.

  4. Add M2_HOME\bin to your 'Path' Environment Variables similar to above. 'nix: if 'Path' Variable already exists, add ":$M2_HOME/bin" to the end of it.

    Windows: 'Path' Variable must be in 'User Variables'. If a Path Variable already exists, add ";%M2_HOME%\bin" to the end of it.

  5. Open a shell (known as Command Prompt in Windows) and run 'set' or 'env' to check that the Environment Variables are set correctly. Windows: an easy way to open a Command Prompt is 'Start\Run...', enter 'command' and press 'ok').

  6. From the shell run 'install_repo.bat YOURHOMEPATH/.maven/repository'. Windows:
    install_repo.bat %HOMEPATH%\.maven\repository
    (On some boxes the environment variable is %HOME%, you can check this by running the 'set' command and looking for which entry points to 'C:\Documents and Settings\YOURUSERNAME'

    'nix:
    install_repo.bat ~/.maven/repository

Eclipse CVS Repository Explorer: How to generate the jFLAC project

I'm not using Eclipse, so I don't want to say how to do this. Other developers are building this with Eclipse, so I imagine that if you use Eclipse you won't have any trouble figuring it out. I will add this section as soon as I'm able to.