thx! i have installed full jdk and when i write ant compile-hyphenation in
fop folder i have error about build.xml


C:\fop-0.95>ant compile-hyphenation
Buildfile: build.xml does not exist!
Build failed

if i try 
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apache.fop.hyphenation.SerializeHyphPattern patterns patterns
i have this output - 
C:\fop-0.95>java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
org.apac
he.fop.hyphenation.SerializeHyphPattern patterns patterns
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/fop/hyphen
ation/SerializeHyphPattern
Caused by: java.lang.ClassNotFoundException:
org.apache.fop.hyphenation.Serializ
eHyphPattern
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class:
org.apache.fop.hyphenation.SerializeHyphPattern.
 Program will exit.

what to do??
hope for you help





J.Pietschmann wrote:
> 
> On 30.04.2010 09:38, lexa2009 wrote:
>>
>> i try Check Installation in http://ant.apache.org/manual/install.html
>> all work good. i go to fop.0.95 directory in cmd and write
>> C:\fop-0.95>ant
>> ant compile-hyphenation
>> Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre6\li
>> b\tools.jar
>> Buildfile: build.xml does not exist!
>> Build failed
>>
>> i have this error. last post i use my own build.xml which i find in fop
>> directory. it was my mistake.
>>
>> i google and find that  tools.jar do not need for hyph, so i can ignore
>> this
>> message. but why i have error Buildfile: build.xml does not exist! ?
>>
> The error messages comes from ant which tries to load its built-in
> tasks, and some of them use tools.jar from the JDK.
> Either get a full JDK and point the JAVA_HOME there rather than to a
> JRE, or use command line based on the following in your FOP directory:
> java -classpath build/fop.jar;lib/commons-logging-1.0.4.jar
>     org.apache.fop.hyphenation.SerializeHyphPattern hyph hyph-dest
> Undo the linebreak, maybe adjust the directory and filename of the
> FOP jar, and you may also have to change the "java" command into
> "jre" depending on what you have installed. The "hyph" is the directory
> your hyphenation pattern file is in. If you get errors about missing
> classes, guess and add the appropriate jar which should be in the lib/
> directory (I can't test this right now).
> 
> J.Pietschmann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/FOP%2C-hypenation.-How-to-compile-hyph-pattern--my-own-tp28340019p28470641.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to