Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:39:01+00:00 2026-05-26T21:39:01+00:00

The version of Ubuntu I use provides FOP 0.95. Its having problems, so I

  • 0

The version of Ubuntu I use provides FOP 0.95. Its having problems, so I wanted to try the latest version of FOP. I successfully downloaded and built the sources.

Unfortunately, I can’t figure out how to install FOP 1.0. The build instructions (https://xmlgraphics.apache.org/fop/1.0/compiling.html) did not cover the topic, and the README does not offer any instructions.

I naively tried ant install --prefix=/usr/local which failed. Ant listed its flags and switches, but did not include an install option. Next, I performed sudo cp ./fop /usr/local/bin, which resulted in the following

$fop -V
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/cli/Main
Caused by: java.lang.ClassNotFoundException: org.apache.fop.cli.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.fop.cli.Main. Program will exit.

How does one install a program with Ant?

Jeff

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:39:01+00:00Added an answer on May 26, 2026 at 9:39 pm

    Uncompress the download to a directory.

    Add that directory to your path.

    export PATH=~/tech/lang/java/fop/fop-1.0/:$PATH
    

    That’s it:
    Daves-MacBook-Pro:~ Dave$ fop -V

    USAGE
    fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>
     [OPTIONS]  
      -version          print FOP version and exit
      -d                debug mode   
      -x                dump configuration settings  
      # etc...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use skipfish on ubuntu latest version that I just downloaded. I'm
Use eclipse-cdt (latest version ) on Ubuntu. I create new project with one line
I'm running Ubuntu 11.10 and GNU Screen version "4.00.03jw4", and I'm trying to use
I am using C++ under Ubuntu 11.10 and the latest version of NetBeans. Let's
i'm use sublime text2 dev on ubuntu 12.04. My current version is 2207 build,but
How can I set a development environment for PHP on my Ubuntu (latest version)
I just installed the boost 1.49 version on ubuntu and the process went smooth.
I have a mystery here: I'm using Ubuntu SCons (package version 1.2.0.d20100117-1). I have
I am using the most recent version of GHC distributed with Ubuntu 11.10 (7.0.3).
I have Eclipse SDK Version: 3.5.2 with EPIC 0.5.46 installed on Ubuntu Linux .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.