Applet font problem between linux and windows

I just want to share my experience in several project i've taken part.
In some projects, where all are developed under linux environment (suse 9.2),
we use jasper report for report generation and use the web applet for our clients to print.
They print ok in linux env, with the netscape 7.1, courier 10 font and jvm 1.4.2_06b version.
But when accessed from windows env, with the same browser and the same jvm version, the applet and the print out are different from those of lin env. The headers and footers are missing. When the we edit/lower the header and footer size at the jasper report file, then they appears @ the window env.
So strange that the font handling between win and lin differ (still my assumption). I'vent been able to solve this problem totally since the client must stick with one OS else the print out will be different.
Quite dissatisfied, coz i really think i could code once the report and run it anywhere in the applet and behaves in the same way.
Could anybody help ? T-T
Regards,
Albert Gan

hi!
this is my first post and i would like to ask if how did you create the web applet printing. im totally new to java and i dont know where to start.
i hope that you can guide me or give me some instructions. thanks in advance =)

Similar Messages

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

  • Connect as sysdba between Linux and Windows without using password

    hello
    Hello
    I need to connect as sysdba between Linux and Windows without using password for the sys user
    Sqlplus /@string_connection
    Plz help me

    Duplicate post:
    Connect as sysdba between Windows and Linux
    Actually you have been given the answer in your above thread. You need to read the Oracle documentation. Search password file at tahiti.oracle.com
    regards

  • Different stringWidth between Linux and Windows

    When I use Ms Windows Arial Font in my Java Program running on Linux
    I found out the rendering result of the Font is different with same program running on Windows
    The Arial Font in Linux become wider, and this cause problem because i used absoule position.
    I am using Java 1.3.1, How can solve this problem??

    The Arial under Linux and Windows are not the same. Firts, they may be different font files, second, both systems uses different rendering engines to draw them. Also, some systems, as mine, won't have Arial font at all - substitute font will be used then. So, I would expect, you will have similar problems with any other font, any other operating system or even in some specific locales which uses reversed (right-to-left) line ordering. You will also be not able to do internationalization properly.
    Simply your application is not portable and written with breaking may portability rules. I hope, you are not doing it for money. The layout managers is the only existing aswer to your problem. The closest to absolute is a SpringLayout introduced in 1.4.x.
    The absolute location problem is not a bad thing in Java only - it can screw C, VisualC and CBuilder applications. Take some of them and tweek your system settings - use large fonts for buttons, tiny fonts for menu, change whatever OS provides you to be able to change in L&F and look what will happen with some of those applications. I would be really happy to have layout managers in CBuilder.
    regards,
    Tomasz Sztejka.

  • Font differs from Linux and Windows ?

    Hi, i just want to ask, are fonts different from windows and linux in applet. I use a standard courier font.
    For example, if i make an applet with courier font texts in linux, and make the texts wrap themselves, they will run ok in linux. But if i run the compiled applet in windows, the wrapped text somewhow got truncated.
    But if i compile the applet in windows, it will look ok in linux and windows.
    I've tried replacing my courier fonts in my /usr/java/jdk/jre/lib/fonts/cour*.ttf with the cour*.ttf from c:\windows\fonts with no effects .. Applets compiled and run ok in linux doesnt work in windows. They must be compiled in windows to run ok in both.
    Why is that ?
    Does the compilation use the fonts in the jdk lib or the system fonts ?
    I'm so confused T_T
    Please Help

    How do I get Mac OS 10.4.4 and Word X for Mac to see
    all the characters in the Word for PC document
    formatted in Times New Roman?
    There's no way with Office X, which can't do Unicode Greek. You need to upgrade to Office 2004 which is Unicode-savvy and installs in your Mac the same Times New Roman with Greek, Cyrillic, Hebrew, and Arabic which is used by WinXP. An alternative might be AbiWord or NeoOffice/J.

  • Oracle weirdness between Linux and Windows........Any ideas??

    Hi,
    I'm connecting to the same database which is on a linux server.....
    This is the weirdness I'm getting...
    ---Connecting via SQLDeveloper in Linux (ubuntu), I'm running the following:
    desc message_instance_attr
    Name                           Null     Type                                                                                                                                                                                         
    INSTANCE_NO                    NOT NULL NUMBER(10)                                                                                                                                                                                   
    A_NAME                              NOT NULL VARCHAR2(32 CHAR)                                                                                                                                                                            
    A_VALUE                            VARCHAR2(1024 CHAR)                                                                                                                                                                          
    OWNER                              NOT NULL VARCHAR2(3 CHAR)                                                                                                                                                                             
    LAST_UPDATED_DATE       DATE                                                                                                                                                                                         
    UPDATE_COUNT                NOT NULL NUMBER(8)                                                                                                                                                                                    
    6 rows selected----Connecting via SQL plus to the same database in Windows:
    SQL> desc message_instance_attr
    Name                                      Null?    Type
    INSTANCE_NO                               NOT NULL NUMBER(10)
    A_NAME                                        NOT NULL VARCHAR2(128)
    A_VALUE                                      VARCHAR2(4000)
    OWNER                                        NOT NULL VARCHAR2(12)
    LAST_UPDATED_DATE                 DATE
    UPDATE_COUNT                          NOT NULL NUMBER(8).
    Why is the Datatype limit different between the two even thoughI'm connected to the same database? for example why is A_VALUE on Linux VarChar2 (1024) and in Windows VarChar2 (4000)
    Thanks!

    Check this link -
    http://download.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm
    DESC is not standard SQL. It is SQL*Plus specific.
    Many tools may allow desc commands to describe the table structure - but not sure whether they act the same way.
    Why don't you use DESC from SQL*Plus from both windows & linux and let us know the output?
    Regards.
    Satyaki De.

  • Time zone problem between mac and windows

    i'm running os x snow leopard on one partition and windows 7 on another on a 2008 mbp. whenever i log into windows and then get back onto mac, my time is completely off. i can temporarily fix it by removing the local time file, which resets it, but every time i log into windows and back i get the same problem. i've tried turning off the automatic time zone, tried turning off auto everything and just setting the time myself and it always goes back to being messed up after a trip to the windows partition.
    anybody got a fix?

    For windows users can you create a connection key in Windows machine and send the same.

  • Differing behavior loading external swfs between Linux and Windows

    I have a swf that loads several different swfs that implement the same basic class, some of these external
    swfs also import different resources from library swfs, such as font, video, and graphic assets.
    This seems to work perfectly well on both windows and Linux with using the font and graphic assets in
    the flash player (debug v 10r32), everything works as I'd expect.  I am added everything into the main swf's
    appdomain when using the loader (with loadercontext, etc).
    When I am loading the video asset class in the external swfs, it works fine on both systems for the first swf
    loaded that uses the video class.  On windows, whenever the second swf using the video library loads up, it
    gives a #1065 Reference error pointing to one of the variables used in the video asset swf.  It runs fine on Linux.
    I've tried playing around with the different AppDomain settings to no avail.  I am stumped as to why it would
    function perfectly well in Linux, but fail on Windows.  Any pointers as to where to look next?
    Thanks for any and all help,
    RP.

    In this case, it appears to be differing versions of the flexsdk that was being used to compile the application.
    Windows was using the default tarball from the adobe site,
    Linux was using a more up to date version from svn.
    I updated the svn snapshot, recompiled, set the Windows box to use it, and the error messages have disappeared.
    I can still crash the flashplayer doing other things, but it's more or less working exactly as expected now.
    RP.

  • Problem between itunes and windows 8.

    I installed iTunes 11 on Windows 8, but i noticed a serious problem.
    On the surface it seems to work fine, but when i turn off iTunes processes SERVER SYNC and DISTONOTED  continue to work tirelessly, putting enormous effort the CPU forced to work 100% endlessly.
    The only way to stop them is to kill processes manually.
    Can someone help me, please?

    IMHO
    try this:
    Edit - Preferences - Store
    - Disable the following
    - "Show itunes in the cloud ...."
    - "Sync playback .... "
    - "Automatically download missing ...."
    - "Share Details about your Library ..."
    And try again

  • Font problems between Word and MAC

    I used MS Word on Windows PC and created lot of documents using TSCu Inaimathi tamil font. When I open those files in my MAC, its all weird characters. How do i fix this? Also, when I create new files in MAC, using the same font, I can read it in Windows.
    Can someone help?
    Thanks
    dheepa
    Macbook Pro   Mac OS X (10.4.5)  

    When I
    open those files in my MAC, its all weird characters.
    There could be two issues:
    If the text is Unicode, then MS Word for Mac can't handle it (MS Mac products can't do any Unicode Indic script yet). Try opening the doc with TextEdit instead.
    If the text is not Unicode, but TSCII encoding, then you must install the exact font that produced it on your Mac. OS X only includes Unicode fonts, not old legacy encodings.
    All Tamil produced on OS X with the Inamathi font that comes with it will be Unicode and should be readable in Word 2004 OK.
    http://discussions.apple.com/message.jspa?messageID=1200527#1200527

  • Conversion Problems between Mac and Windows

    I work in a school district that is running an old version of Adobe Photoshop CS3 in a Macintosh environment.  The Macs are old 10.4.11 machines that would not print.  So, I set up a Windows Server with Macintosh accessible folders and copied files to this server.  I then had newer Windows 7 client machines availabe and copied the files over to their client machines.  Some of the files came over to Windows as CS3, but others didn't.  They show up as "File" in the format and not as CS3.  Is there a workaround for this, or another way to get these files to Windows?
    Thanks.

    Make sure proper file extensions (e.g., .psd, .jpg, .png, etc.) are put on each file.  Depending on settings, Mac users don't always do that.
    On your Windows systems, disable the [ ] Hide file extensions for known file types setting in Folder Options, then the problem will become obvious.
    -Noel

  • Connection key compatibility problem between Mac and Windows

    I'm wondering if anyone has had this problem and came up with a work-around?
    We are rolling out Contribute CS5 to some employees.
    The designers (I'm one of them) are all on Macs. Everyone else is on Windows XP.
    We are connecting to our sites via local/network. IT didn't want to set up FTP (I won't go into why right now).
    So, here is where the problem is... We set up the site and do the first connection on our Macs. Then when we send out a site key, to a Windows user, the key is no good. This is because Macs handle paths to network shares differently than Windows does.
    I thought the solution would be to customize the key with the Windows share path before sending it to the Windows users. However, Contribute wants to verify the path before letting me continute to make a customized key. And that is where I'm stuck. Is there a solution to this - besides switching to FTP?
    Thanks,
    Ward

    For windows users can you create a connection key in Windows machine and send the same.

  • How can I fix a problem between Firefox and my printer? When I try to print a window appears Save as ,then another saying Firefox not responding and printing does not work

    I used to be able to print correctly using Firefox as my browser,but something changed in the last month or so,possibly after a Firefox update. I`m not really sure how it happened but there seems to be a problem between Firefox and my printer. So I have been using Internet Explorer as my default so I can print. I would prefer to use Firefox again since that is where my bookmarks are. Is there a way to get the connection between Firefox and my printer back?

    '''Save as''' = sounds like you don't have your printer selected, or you have ''Print to file'' selected
    http://kb.mozillazine.org/Problems_printing_web_pages

  • How to set owner-only access file permissions both on Linux and Windows

    Hi everybody.
    I have the following problem. I need to store some private user information in file system. So I need to set owner-only access permissions for some directory in user home. I did not find API for doing this. As I understand this is platform specific thing. Could anybody tell me how can I do this both on Linux and Windows?
    Thank you in advance.

    More ideas just came back to me (of something I did before)
    Each OS requires a different control.
    For Windows you will need to set the .policy file for each user (a pain if you have more than a dozen of clients) granting access (R or RW) to files/directories.
    Then you have to write some native code (access via JNI) to access/modify your authorization.
    A more professional solution that I used was J-Integra (other similar tool exist).
    Basically it is a bridge between Java and COM. It magically give you access to the COM API from Java (and vice versa).
    In my case it was to read/write/modify Winword documents transfered between PC and server.
    From memory you have to run the com2java.exe to build the bridge (classes in Java language) between the 2 families. Compile those classes and you have a "driver" for the COM (Microsoft Objects).
    Here I must confess my ignorance on Microsoft.
    Those COM objets must give you some easy/integrated access to the API for LDAP or Microsoft Active Directory Service (for centralize control with more complex setup).

  • Reset() of ObjectOutputStream diff in Linux and Windows

    From the previous post and my test, it is better to call ObjectOutputStream oos.reset() to clean up buffer.
    But I notice that it works all fine in Linux, but if the remote site is a Windows machine, if you call oos.reset(), the remote site will throw socket.reset Exception and close the socket, which is not good at all.
    So I have to disable oos.reset() call to avoid remote java socket in Windows close, but I get OutOfTheMemory error after running a while, I suspect it is caused by not calling reset() and clean up buffer. So what should I do to avoid this problem?
    Thanks

    It sounds like you are running different versions or a buggy of the JDK.
    What versions are you using?
    This works fine with 1.4.2_05 (between Solaris and Windows)

Maybe you are looking for