$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Install XDoclet on Gnu/Linux

June 29, 2022 | By the+gnu+linux+evangelist.

GNU/Linux Installing XDoclet – QuickStart Guide

Hi! The Guide shows you Step-by-step How to Install and Setup the XDoclet Java Tool in GNU/Linux.

XDoclet is an Open Source Code generation Engine that enables Attribute-Oriented Programming for Java.

In short, this means that you can add more significance to your code by adding Meta Data (attributes) to your Java Sources. This is done in special JavaDoc Tags.

How to Install XDoclet on GNU/Linux
  1. Prerequisites Check-Up

    1. Java
      Copy
      which java

      Here If Java is Not Installed then:

      Installing Oracle Java JDK on Linux
  • Apache-Jakarta Ant
    Copy
    which ant

    If Apache-Jakarta-Ant is Not Installed then:

    Here How to Install Ant On Linux
    How to Install Apache-Jakarta Ant Java Tool on Linux
  • Download XDoclet Java-Tool:

    Here Latest XDoclet Tool bin.zip
    Link to Download Latest XDoclet Java Tool bin.zip Release
  • Unzip Archive

  • Relocate XDoclet

    1. Open a Terminal Window
      (Press “Enter” to Execute Commands)
    2. Login as SuperUser
      Copy
      sudo su
      If Got “User is Not in Sudoers file” then see: How to Enable sudo
    3. Move XDoclet Folder
      Copy
      mv /xdoclet-1.2.3 /opt

  • Set Environment Variable

    1. Logout from SuperUser
      Copy
      exit
    2. Edit User .bashrc File Settings
      Copy
      nano ~/.bashrc
      Append:
      Copy
      export XDOCLET_HOME=/opt/xdoclet-1.2.3
    3. Load New Environment Set-Up
      Copy
      bash

  • Verify XDoclet Installation on Terminal

    Copy
    cd $XDOCLET_HOME/samples
    Copy
    ant

    The Output should Resemble to this Here Below:

    Testing XDoclet Installation