> -----Original Message-----
> From: online user [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, May 29, 2003 8:49
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Compile errors on HP-UX
> 
> Hello,
>    We are trying to use iText on HP-UX 11 with java version "1.2.2.14"
> Classic VM (build 1.2.2.14-02/11/20-PA_RISC1.1, native threads, HP),
> all of the required HP java patches have been installed.
>  
> We are using the following command to compile the sample Chap0101.java
> source file - but unfortunately we get three errors as listed below.
> What can we do to overcome this?
>  
> We can compile and run the sample Chap0101.java source file OK on Windows
> 2000. If we use the .class file compiled on Windows on HP-UX we get
> ""SIGSEGV   11*  segmentation violation" errors.
> 
        Compile it with the same version.
>  
>  
> # /opt/java1.2/bin/PA_RISC/native_threads/javac -sourcepath
> /software/data/java -classpath ./itext-0.99.jar Chap0101.java
> 
> /software/data/java/com/lowagie/text/pdf/PdfEncodings.java:279:
> Incompatible type for array. Explicit cast needed to convert char to byte.
>     public static final byte CRLF_CID_NEWLINE[][] = new byte[][]{{'\n'},
> {'\r', '\n'}};
>                                                                  ^
> /software/data/java/com/lowagie/text/pdf/PdfEncodings.java:279:
> Incompatible type for array. Explicit cast needed to convert char to byte.
>     public static final byte CRLF_CID_NEWLINE[][] = new byte[][]{{'\n'},
> {'\r', '\n'}};
>                                                                          ^
> /software/data/java/com/lowagie/text/pdf/ByteBuffer.java:75: Incompatible
> type for array. Explicit cast needed to convert char to byte.
>     private static final byte[] bytes = new byte[] {'0', '1', '2', '3',
> '4', '5', '6', '7', '8', '9',
>                                                    ^
> 3 errors
>  
        The error you get are bugs in the compiler. You can always
automatically convert a literal to another type as long as it fits. If it
didn't work that way you could write:

        byte b = 0;

        as 0 is an int and not a byte. The workaround is to make the casts
and try to get a more recent compiler.

        Best Regards,
        Paulo Soares
>  
> Regards;
> MP
> 
>   _____  
> 
> Do you Yahoo!?
> Free online calendar
> <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com> with sync
> to Outlook(TM).


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to