Re: java/util/Hashmap
Matthew Lancashire wrote: Its 1.3.1_06. What do I need to do to get the class in to my classes folder. To be sure of the version, put System.out.println( System.getProperty( "java.version" ) ); in the same code as were you use FOP. Then you can be sure that it is really the version of the java used to run FOP that you see. If you dont have java.util.HashMap, then the version is below 1.2, and there isnt really anything you can do about it, other than changing JDK. There is a possibility to add the collections classes to a pre 1.2 jdk, but these classes exist in a different package, which means that you would have to modify FOP and probably every library that FOP relies on. My humble advice would be to ditch J++. -Original Message- From: Johan Åbrandt [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:34 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: VJ++ 6.0 Yeah. I have both Sun JDK and MS JDK. Is it in there? If the Sun JDK is above version 1.2 then yes. Try java -version on the command line, or print System.getProperty( "java.version" ) in a program. i.e public class Prop { public static void main( String[] args ) { System.out.println( System.getProperty( "java.version" ) ); } } -Original Message- From: Johan Åbrandt [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:26 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: I keep getting the noclassdeffounderror for hashmap. Where is this MS VM? Are you using VJ++? Isnt that JDK 1.1? HashMap was introduced in JDK 1.2 . Matthew Lancashire IT Project Manager Intitial Electronic Security Ltd Tel: +44 1282 473554 Fax: +44 1254 267552 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/Hashmap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, Am Freitag, 31. Januar 2003 17:44 schrieb Matthew Lancashire: > Just looked in the JDK folder and there is an src.zip that contains the > .java for hashmap but you're not supposed to do that for a) SUN's copyright. b) It must work without extracting the class. By the way, if you already got that far, you could also extract java/util/HashMap.class from rt.jar. But really, you're not supposed to do that. And, I ask again: > 1. How do you start your java program? What's the command line you type? Bye - -- ITCQIS GmbH Christian Wolfgang Hujer Geschäftsführender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: [EMAIL PROTECTED] WWW: http://www.itcqis.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+OqmQzu6h7O/MKZkRAs1YAJ9HIoF8rfWv8FM5QvHs3aKOnM9FNwCfUrbM l+2kOe8usYugDx2Kts2LVeQ= =U4Op -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java/util/Hashmap
Just looked in the JDK folder and there is an src.zip that contains the .java for hashmap -Original Message- From: Herr Christian Wolfgang Hujer [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 16:14 To: [EMAIL PROTECTED]; Matthew Lancashire Subject: Re: java/util/Hashmap -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, > I keep getting the noclassdeffounderror for hashmap. Yes. > What do I need to do to get the class in to my classes folder. You're not supposed to extract system classes from their library and include them with your code. 1. How do you start your java program? What's the command line you type? 2. Are you sure you don't get confused by your path settings? Sometimes on Windows the JRE's java takes precedence over the JDK's java. So if you compile a class, you might compile with javac from e.g. 1.3.1_06, but if you run it, the VM in use might be a much older one. How did you find out you're using 1.3.1_06? Is it just the name of the folder, e.g. C:\j2sdk1.3.1_06, or have you executed java -version as suggested? Bye - -- ITCQIS GmbH Christian Wolfgang Hujer Geschäftsführender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: [EMAIL PROTECTED] WWW: http://www.itcqis.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+OqDNzu6h7O/MKZkRAoQ+AKCb+TENQgeRuDsbx6RF4D3ReO4PxwCeIo9a si3dasPoQPI/8Ahn2mLGgoI= =aHiz -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java/util/Hashmap
I used the command java -version -Original Message- From: Herr Christian Wolfgang Hujer [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 16:14 To: [EMAIL PROTECTED]; Matthew Lancashire Subject: Re: java/util/Hashmap -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, > I keep getting the noclassdeffounderror for hashmap. Yes. > What do I need to do to get the class in to my classes folder. You're not supposed to extract system classes from their library and include them with your code. 1. How do you start your java program? What's the command line you type? 2. Are you sure you don't get confused by your path settings? Sometimes on Windows the JRE's java takes precedence over the JDK's java. So if you compile a class, you might compile with javac from e.g. 1.3.1_06, but if you run it, the VM in use might be a much older one. How did you find out you're using 1.3.1_06? Is it just the name of the folder, e.g. C:\j2sdk1.3.1_06, or have you executed java -version as suggested? Bye - -- ITCQIS GmbH Christian Wolfgang Hujer Geschäftsführender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: [EMAIL PROTECTED] WWW: http://www.itcqis.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+OqDNzu6h7O/MKZkRAoQ+AKCb+TENQgeRuDsbx6RF4D3ReO4PxwCeIo9a si3dasPoQPI/8Ahn2mLGgoI= =aHiz -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/Hashmap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Matthew, > I keep getting the noclassdeffounderror for hashmap. Yes. > What do I need to do to get the class in to my classes folder. You're not supposed to extract system classes from their library and include them with your code. 1. How do you start your java program? What's the command line you type? 2. Are you sure you don't get confused by your path settings? Sometimes on Windows the JRE's java takes precedence over the JDK's java. So if you compile a class, you might compile with javac from e.g. 1.3.1_06, but if you run it, the VM in use might be a much older one. How did you find out you're using 1.3.1_06? Is it just the name of the folder, e.g. C:\j2sdk1.3.1_06, or have you executed java -version as suggested? Bye - -- ITCQIS GmbH Christian Wolfgang Hujer Geschäftsführender Gesellschafter Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: [EMAIL PROTECTED] WWW: http://www.itcqis.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+OqDNzu6h7O/MKZkRAoQ+AKCb+TENQgeRuDsbx6RF4D3ReO4PxwCeIo9a si3dasPoQPI/8Ahn2mLGgoI= =aHiz -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java/util/Hashmap
What about the sun one? -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: > VJ++ 6.0 Yeah. > I have both Sun JDK and MS JDK. Is it in there? MS JDK is ancient java 1.1.4, you cannot use it with FOP. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java/util/Hashmap
Its 1.3.1_06. What do I need to do to get the class in to my classes folder. -Original Message- From: Johan Åbrandt [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:34 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: > VJ++ 6.0 Yeah. > I have both Sun JDK and MS JDK. Is it in there? If the Sun JDK is above version 1.2 then yes. Try java -version on the command line, or print System.getProperty( "java.version" ) in a program. i.e public class Prop { public static void main( String[] args ) { System.out.println( System.getProperty( "java.version" ) ); } } > > -Original Message- > From: Johan Åbrandt [mailto:[EMAIL PROTECTED] > Sent: 31 Jan 2003 15:26 > To: [EMAIL PROTECTED] > Subject: Re: java/util/Hashmap > > > Matthew Lancashire wrote: > > >>I keep getting the noclassdeffounderror for hashmap. >>Where is this MS VM? >> > > > Are you using VJ++? Isnt that JDK 1.1? HashMap was introduced in JDK 1.2 . > > >>Matthew Lancashire >>IT Project Manager >>Intitial Electronic Security Ltd >> >>Tel: +44 1282 473554 >>Fax: +44 1254 267552 >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > -- > Johan Åbrandt > > Technical Project Manager > (Tekninen projektipäällikkö) > Tel. +358 9 6817 3342 > Mobile. +358 40 848 8068 > [EMAIL PROTECTED] > > Profit Software Oy > Meritullinkatu 11 C > 00170 Helsinki, Finland > > > __ > > This message and its attachments have been found clean from known viruses > with three different antivirus programs. > __ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/Hashmap
Matthew Lancashire wrote: VJ++ 6.0 Yeah. I have both Sun JDK and MS JDK. Is it in there? MS JDK is ancient java 1.1.4, you cannot use it with FOP. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/Hashmap
Matthew Lancashire wrote: VJ++ 6.0 Yeah. I have both Sun JDK and MS JDK. Is it in there? If the Sun JDK is above version 1.2 then yes. Try java -version on the command line, or print System.getProperty( "java.version" ) in a program. i.e public class Prop { public static void main( String[] args ) { System.out.println( System.getProperty( "java.version" ) ); } } -Original Message- From: Johan Åbrandt [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:26 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: I keep getting the noclassdeffounderror for hashmap. Where is this MS VM? Are you using VJ++? Isnt that JDK 1.1? HashMap was introduced in JDK 1.2 . Matthew Lancashire IT Project Manager Intitial Electronic Security Ltd Tel: +44 1282 473554 Fax: +44 1254 267552 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java/util/Hashmap
VJ++ 6.0 Yeah. I have both Sun JDK and MS JDK. Is it in there? -Original Message- From: Johan Åbrandt [mailto:[EMAIL PROTECTED] Sent: 31 Jan 2003 15:26 To: [EMAIL PROTECTED] Subject: Re: java/util/Hashmap Matthew Lancashire wrote: > I keep getting the noclassdeffounderror for hashmap. > Where is this MS VM? Are you using VJ++? Isnt that JDK 1.1? HashMap was introduced in JDK 1.2 . > > Matthew Lancashire > IT Project Manager > Intitial Electronic Security Ltd > > Tel: +44 1282 473554 > Fax: +44 1254 267552 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/Hashmap
Matthew Lancashire wrote: I keep getting the noclassdeffounderror for hashmap. Where is this MS VM? Are you using VJ++? Isnt that JDK 1.1? HashMap was introduced in JDK 1.2 . Matthew Lancashire IT Project Manager Intitial Electronic Security Ltd Tel: +44 1282 473554 Fax: +44 1254 267552 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johan Åbrandt Technical Project Manager (Tekninen projektipäällikkö) Tel. +358 9 6817 3342 Mobile. +358 40 848 8068 [EMAIL PROTECTED] Profit Software Oy Meritullinkatu 11 C 00170 Helsinki, Finland __ This message and its attachments have been found clean from known viruses with three different antivirus programs. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java/util/HashMap error
This is what I have in my java file to generate a PDF file: Logger log; Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); log = hierarchy.getLoggerFor("fop"); log.setPriority(Priority.WARN); Driver dr=new Driver();// * this is where it is failing ** dr.setLogger(log); dr.setRenderer(Driver.RENDER_PDF); InputHandler ih=new XSLTInputHandler(xmlFile,xslFile); XMLReader p=ih.getParser(); dr.setOutputStream(new FileOutputStream(pdfFile)); dr.render(p,ih.getInputSource()); Mathy V Arumugam wrote: > What can I do to get rid of the following error? I am using JDK1.3... > > java.lang.NoClassDefFoundError: java/util/HashMap > at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:85) > > Thanks > Mathy