Import

Hi Experts,

Canoot import : import org.apache.fop.*;  Why ?
LVL 1
fpoyavoAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
does that package exist in the jar?
you can use the following to list the contents of a jar:
jar tvf <jarfilename>
0
 
fpoyavoAuthor Commented:
It works fine on one server and importes "org.apache.fop.apps*" but does not on another one. ??????  
0
 
copyPasteGhostCommented:
are you sure you have that jar downloaded in within this directory structure

web-inf/lib/JAR FILES

Ghost
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
copyPasteGhostCommented:
make sure the files that you have are .class files..

import requires that you specifiy where the .class files are..

I tried to find somewhere to download the files and I was unsuccessful but I did notice that all the files are .java files these must be complied before imported.

also a reason why the server imports this is org.apache.fop.apps because the apps floder contains .class files whereas the
org.apache.fop does not.

Cheers,
Ghost
0
 
fpoyavoAuthor Commented:
I have copied the whole content of WEB-INF and tried to use "org.apache.fop.apps" from one server to another but ....nothing

What are these jars that are a part of org.apache.fop.apps ? Which directory of WEB-INF they are in ?

/opt/myapp/tomcat/webapps/WEB-INF or in individual one /opt/myapp/tomcat/webapps/someapp/WEB-INF ?
0
 
copyPasteGhostCommented:
I just searched the web

http://www.unixsoft.org/apache/xml/fop/

I found this...I'm not sure it's the right one..
but if you want to do some imports make sure you have the fies that you want to import.
and you need the .class files of the .java classes that you want to import :)

hope that helps you out,
Ghost
0
 
objectsCommented:
:)
0
All Courses

From novice to tech pro — start learning today.