You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Thomas Zastrow <li...@thomas-zastrow.de> on 2007/03/10 20:08:57 UTC

Again: Problem with the sources

Hi there,

it's again me :-)

When compiling a new class with the imports:

import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.MimeConstants;

I got a lot of errors of this kind:

/home/zastrow/fop/source/trunk/src/java/org/apache/fop/fonts/FontSetup.java:23: 
package org.apache.fop.fonts.base14 does not exist
import org.apache.fop.fonts.base14.Helvetica;

And, yes there aren't any classes like org.apache.fop.fonts.base14 ... ??

(Btw, is it OK to post questions regarding the code here on this list?)

Best,

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Again: Problem with the sources

Posted by Thomas Zastrow <li...@thomas-zastrow.de>.
Andreas L Delmelle schrieb:
> On Mar 10, 2007, at 21:03, Thomas Zastrow wrote:
>
> Hi Tom,
>
>>> <snip />
>> Andreas, I'm not sure that I understand you ... I followed the 
>> instructions on 
>> file:///home/zastrow/fop/fop-0.93/docs/0.93/compiling.html
>>
>> So, I just started the command "ant" in the root-directory of FOP.
>
> OK, that should do it. FOP was definitely recompiled and repackaged 
> after that.
> The compiled versions of those generated sources should now be 
> available in build/fop.jar
>
> Now, if you make sure that /that/ fop.jar is the one that you 
> reference, all should be fine.
>
> I hope... :/
>
>
Andreas, that's it,  I didn't included the build/fop.jar, now it works fine!

Thank you very much!


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Again: Problem with the sources

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 10, 2007, at 21:03, Thomas Zastrow wrote:

Hi Tom,

>> <snip />
> Andreas, I'm not sure that I understand you ... I followed the  
> instructions on file:///home/zastrow/fop/fop-0.93/docs/0.93/ 
> compiling.html
>
> So, I just started the command "ant" in the root-directory of FOP.

OK, that should do it. FOP was definitely recompiled and repackaged  
after that.
The compiled versions of those generated sources should now be  
available in build/fop.jar

Now, if you make sure that /that/ fop.jar is the one that you  
reference, all should be fine.

I hope... :/

Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Again: Problem with the sources

Posted by Thomas Zastrow <li...@thomas-zastrow.de>.
Andreas L Delmelle schrieb:
> On Mar 10, 2007, at 20:36, Andreas L Delmelle wrote:
>
>> On Mar 10, 2007, at 20:08, Thomas Zastrow wrote:
>>> <snip />
>>> I got a lot of errors of this kind:
>>>
>>> /home/zastrow/fop/source/trunk/src/java/org/apache/fop/fonts/FontSetup.java:23: 
>>> package org.apache.fop.fonts.base14 does not exist
>>> import org.apache.fop.fonts.base14.Helvetica;
>>>
>>> And, yes there aren't any classes like org.apache.fop.fonts.base14 
>>> ... ??
>>
>> Those should have been generated by the 'codegen' step in your 
>> previous post...
>> Are you using the same source tree in both cases?
>
> This just occurred to me:
> Did you recompile after running 'ant codegen'? (ant compile)
> If you're referencing FOP as a compiled JAR in your own project:
> Did you recreate the JAR? (ant package)
>
Andreas, I'm not sure that I understand you ... I followed the 
instructions on file:///home/zastrow/fop/fop-0.93/docs/0.93/compiling.html

So, I just started the command "ant" in the root-directory of FOP.

But, yes, now I see that in build/gensrc/org/apache/fop/fonts/base14 
there _are_ the *.java-files ... ?

Best,

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Again: Problem with the sources

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 10, 2007, at 20:36, Andreas L Delmelle wrote:

> On Mar 10, 2007, at 20:08, Thomas Zastrow wrote:
>> <snip />
>> I got a lot of errors of this kind:
>>
>> /home/zastrow/fop/source/trunk/src/java/org/apache/fop/fonts/ 
>> FontSetup.java:23: package org.apache.fop.fonts.base14 does not exist
>> import org.apache.fop.fonts.base14.Helvetica;
>>
>> And, yes there aren't any classes like  
>> org.apache.fop.fonts.base14 ... ??
>
> Those should have been generated by the 'codegen' step in your  
> previous post...
> Are you using the same source tree in both cases?

This just occurred to me:
Did you recompile after running 'ant codegen'? (ant compile)
If you're referencing FOP as a compiled JAR in your own project:
Did you recreate the JAR? (ant package)


Cheers,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Again: Problem with the sources

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 10, 2007, at 20:08, Thomas Zastrow wrote:

Hi Tom,

> When compiling a new class with the imports:
>
> import org.apache.fop.apps.FopFactory;
> import org.apache.fop.apps.Fop;
> import org.apache.fop.apps.MimeConstants;
>
> I got a lot of errors of this kind:
>
> /home/zastrow/fop/source/trunk/src/java/org/apache/fop/fonts/ 
> FontSetup.java:23: package org.apache.fop.fonts.base14 does not exist
> import org.apache.fop.fonts.base14.Helvetica;
>
> And, yes there aren't any classes like  
> org.apache.fop.fonts.base14 ... ??

Those should have been generated by the 'codegen' step in your  
previous post...
Are you using the same source tree in both cases?

> (Btw, is it OK to post questions regarding the code here on this  
> list?)

It depends.
If they're questions about your code, using FOP embedded in another  
Java application, there is of course no objection whatsoever to  
posting your questions here. In that case, you are 'using' FOP.
If they're questions related to FOP's own source code, we'd rather  
see you subscribe to fop-dev@.

Questions about implementing extension elements maybe also belong  
more on fop-dev@ than here, but that's a bit of a grey area.

I think your question is about trying to use FOP in an embedded  
context, so keep them coming here... :)


Cheers,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org