JavaRMI example is good betwen windows but dont work under linux

Hello all, this is my first post here, Im from mexico, then, my english is not good, but i will try to explain my problem and I hope you undertand. Well, first all, Im using ubuntu 8.04 and version of JDK: java-6-sun-1.6.0.10.
I have this code on the server:
public class RmiServidor extends UnicastRemoteObject implements     InterfazReceptorMensajes {     
     private Registry registro;
          public RmiServidor() throws RemoteException {
          try {
// System.setProperty("java.security.policy", "/home/gerardo/Escritorio/msdos/java.policy");
// System.setProperty("java.rmi.server.codebase", "file://home/gerardo/Escritorio/msdos/");
// if (System.getSecurityManager()==null)
// System.setSecurityManager(new RMISecurityManager());
     registro = LocateRegistry.createRegistry(3232);
               registro.rebind("rmiServidor192.168.1.2", this);
               System.out.println("Server ok");
          } catch (RemoteException e) {
               throw e;
     public String recibirMensaje(String cadena) throws RemoteException {
     System.out.println("El cliente dice "+cadena);
     return "Hola "+cadena;
     public static void main(String[] args) {
          try {
               new RmiServidor();
          } catch (Exception e) {
               e.printStackTrace();
               System.exit(1);
this code on the client:
public class RmiCliente{
InterfazReceptorMensajes rmiServidor;
Registry registro;
public RmiCliente() throws IOException {
     conectarseAlServidor();
public void conectarseAlServidor() {
try {
// System.setProperty("java.security.policy", "/home/gerardo/Escritorio/msdos/java.policy");
// System.setProperty("java.rmi.server.codebase", "file://home/gerardo/Escritorio/msdos/");
// if (System.getSecurityManager()==null)
// System.setSecurityManager(new RMISecurityManager());
registro = LocateRegistry.getRegistry("192.168.1.2",3232);
rmiServidor = (InterfazReceptorMensajes) (registro.lookup("rmiServidor192.168.1.2"));
} catch (RemoteException e) {
System.out.println("Remote Exception");
} catch (NotBoundException e) {
e.printStackTrace();
this code on the interface:
public interface InterfazReceptorMensajes extends Remote
     String recibirMensaje(String cadena) throws RemoteException;
and another class with a bite of code:
try{
RmiCliente rmi = new RmiCliente();
System.out.println(rmi.rmiServidor.recibirMensaje(" como estas "));
}catch(IOException es){
System.out.println("there is a exception");
Then, when i run the server on the first windows machine, and the client on the linux machine, all works ok!
on the server:
-El cliente dice como estas
on the client:
-Hola como estas
but, when I run the server on the linux machine, and the client on the windows machine,
on the server:
on the client
-there is a exception
I hope you can help me.
I have the same problem when I work with 2 linux machines, dont works the client and neither the server
but with 2 windows, the 2 machines work ok!

Thanks a lot!!!
well, the exception is the further:
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested excepti
on is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unkn
own Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
at $Proxy0.recibirMensaje(Unknown Source)
at RmiCliente.main(RmiCliente.java:32)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
... 8 more
I read that making something like: System.setProperty("java.rmi.server.hostname", "192.168.1.2"), but i dont know how to apply it.
I tried to do this:
System.setProperty("java.security.policy", "java.policy");
System.setProperty("java.rmi.server.codebase", "");
System.setProperty("java.rmi.server.hostname", "192.168.1.2");
if (System.getSecurityManager()==null)
System.setSecurityManager(new RMISecurityManager());
where java.police have :
grant {
permission java.security.AllPermission;
I run my application with:
javac *.java
java RmiServidor
and i tried to do
javac *.java
rmic RmiServidor
java RmiServidor
but dont work, the exception is same.
Why windows works ok with the same code?, is something related with the SO?
Thanks in advance, and an apologize for my bad english.

Similar Messages

  • 5.0.1 Update Block my carryer unlocked and itunes says unlocked, but dont work on itunes

    5.0.1 Update Block my carryer unlocked and itunes says unlocked, but dont work  itunes.
    if i restore "again and again"  itunes display carries unlock, but dont work on my iphone 4 whit ios 5.0.1.
    now only works on carrier VIVO ( where buyed this iphone). and this carrier can't offer support  ( please, say your imei, remove the batery of your iphone and say to me ) lol.
    my iphone works only this carrier.
    AND NOW?

    I can use 3G any carrier. but voice call, i cant.

  • HT1926 iTunes will not install on my computer (Windows 8) and i tried everything in "Issues installing iTunes or QuickTime for Windows" but nothing worked. any help?

    iTunes will not install on my computer (Windows 8) and i tried everything in "Issues installing iTunes or QuickTime for Windows" but nothing worked. any help?

    Many thanks.
    Error 7 (Windows error 127)
    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Yesturday i bought a brand new iphone 4 and i got home and the guy i bought it from had alot of pictures and apps on it so i tried reseting it and whean i was reseting it it went black and hasnt came in since ive tride to hold power and home but dont work

    yesturday i bought a brand new iphone 4 and i got home and the guy i bought it from had alot of pictures and apps on it so i tried reseting it and whean i was reseting it it went black and hasnt came in since ive tride to hold power and home but dont work plz help

    kawasaki-boss wrote:
    yesturday i bought a brand new iphone 4 and i got home and the guy i bought it from had alot of pictures and apps on it s
    How could it have been a brand new phone if there were already pictures on it?
    I'd ask for your money back.
    Matt

  • I purchase full version of this game (triple star 2000-developer Antonio Lattanzio) but dont work full.What happent,i paid the app??PLS help

    i purchase full version of this game (triple star 2000-developer Antonio Lattanzio) but dont work full.What happent,i paid the app??PLS help

    Hi Tatae55,
    I think that your purchase failed for some connectivity reason but it will be restored as soon as you try to 'Restore' the purchase or 'Re-Buy' the Non-consumable product.
    Don't worry, you will not be charged again if your purchase was successfull before.
    Kind Regards,
    Antonio Lattanzio.

  • ARIAL FONT IN REPORTS(WINDOWS), NOT SHOWN CORRECTLY UNDER LINUX

    Our Reports are developed under Windows (Report Builder 9.0.4.0.33 and Windows 2000/Windows XP) and generated under Linux (IAS 10.1.2.0.2 with Red Hat Advanced Server). The Report Output is a PDF, that will be downloaded by the user with WEB.SHOW_DOCUMENT. This works fine, but fonts are not shown correctly in the PDF, especially ARIAL, which is the font we use.
    I have run the Fontsolution Configuration Script from Metalink, but we still have a problem.
    When you look at the font.pdf, wich is the testreport from fontsolutions, some sizes and styles of Arial are printed correctly others not.
    Arial 8 is ok, but Arial 10 and Arial 12 are something like Times New Roman.
    Arial 12 Bolded is correct, but Arial 12 italic and Arial 12 bold italic are also not
    the Arial Font.
    How can we correct this problem?
    Regards
    Udo
    These are the files changed by Fontsolution Configuration Script:
    uifont.ali
    # uifont.ali provided in fontsolutions.tar for developer 9.0.2
    # $Header: uifont.ali@@/main/22 \
    # Checked in on Tue Jan 8 15:32:42 PST 2002 by idc \
    # Copyright (c) 1999, 2002 by Oracle Corporation. All Rights Reserved. \
    # $
    # $Revision: /main/22 $
    # Copyright (c) Oracle Corporation 1994, 2002.
    # All Rights Reserved.
    # DESCRIPTION:
    # Each line is of the form:
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet> = \
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet>
    # The <Face> must be the name (string/identifier) of a font face. The
    # <Style>, <Weight>, <Width>, and <CharSet> may either be a numeric
    # value or a predefined identifier/string. For example, both US7ASCII
    # and 1 are valid <CharSet> values, and refer to the same character set.
    # The <Size> dimension must be an explicit size, in points.
    # The following is a list of recognized names and their numeric
    # equivalents:
    # Styles Numeric value
    # Plain 0
    # Italic 1
    # Oblique 2
    # Underline 4
    # Outline 8
    # Shadow 16
    # Inverted 32
    # Overstrike 64
    # Blink 128
    # Weights Numeric value
    # Ultralight 1
    # Extralight 2
    # Light 3
    # Demilight 4
    # Medium 5
    # Demibold 6
    # Bold 7
    # Extrabold 8
    # Ultrabold 9
    # Widths Numeric value
    # Ultradense 1
    # Extradense 2
    # Dense 3
    # Semidense 4
    # Normal 5
    # Semiexpand 6
    # Expand 7
    # Extraexpand 8
    # Ultraexpand 9
    # Styles may be combined; you can use plus ("+") to delimit parts of a
    # style. For example,
    # Arial..Italic+Overstrike = Helvetica.12.Italic.Bold
    # are equivalent, and either one will map any Arial that has both Italic
    # and Overstrike styles to a 12-point, bold, italic Helvetica font.
    # All strings are case-insensitive in mapping. Font faces are likely to
    # be case-sensitive on lookup, depending on the platform and surface, so
    # care should be taken with names used on the right-hand side; but they
    # will be mapped case-insensitively.
    # See your platform documentation for a list of all supported character
    # sets, and available fonts.
    # BUGS:
    # o Should accept a RHS ratio (e.g., "Helv = Arial.2/3").
    #===============================================================
    [ Global ] # Put mappings for all surfaces here.
    # Mapping from MS Windows
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    #Modern = helvetica
    #"MS Sans Serif" = helvetica
    #"MS Serif" = times
    #"Small Fonts" = helvetica
    "Sadvocra" = helvetica..Oblique.Medium
    "sAdC128d" = helvetica..Plain.Medium
    "CarolinaBar-B39-25F2" = helvetica...Bold
    #"IDAutomationSMICR" = helvetica
    # Mapping from Macintosh
    #"New Century Schlbk" = "new century schoolbook"
    #"New York" = times
    #geneva = helvetica
    #===============================================================
    [ Printer ] # Put mappings for all printers here.
    #===============================================================
    [ Printer:PostScript1 ] # Put mappings for PostScript level 1 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    # MICR font
    #helvetica=IDAutomationSMICR
    #===============================================================
    [ Printer:PostScript2 ] # Put mappings for PostScript level 2 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #===============================================================
    [ Printer:PCL5 ] # Put mappings for PCL 5 printers here.
    helvetica = univers
    times = "cg times"
    clean = "antique olv"
    fixed = courier
    lucida = univers
    lucidabright = "cg times"
    lucidatypewriter = courier
    "new century schoolbook" = univers
    terminal = "line printer"
    #===============================================================
    [ Display ] # Put mappings for all display surfaces here.
    #===============================================================
    [ Display:Motif ] # Put mappings for Motif displays here
    # Fix for bug no 778937 DO NOT MOVE!
    Roman.....sjis = lucida.....jeuc
    Script.....sjis = lucidabright.....jeuc
    FixedSys.....sjis = fixed.....jeuc
    System.....sjis = lucida.....jeuc
    .....sjis = .....jeuc
    # Mapping from MS Windows
    Roman = lucida
    Script = lucidabright
    FixedSys = fixed
    System = lucida
    # Mapping from Macintosh
    "Avant Garde" = helvetica
    "Bookman" = times
    #===============================================================
    [ Display:CM ] # Put mappings for all CM displays here.
    # These are DEC-specific, and may need localization
    *..Blink = Blinking
    *..Inverted+Underline.Bold = ReverseBoldUnderline
    *..Inverted+Underline. = UnderlineReverse
    *..Underline.Bold = UnderlineBold
    *..Inverted.Bold = ReverseBold
    *...Bold = Bold
    *..Underline = Underline
    *..Inverted = Reverse
    * = Plain # The font of last resort
    # Oracle Report PDF sections
    # Three new sections have been added:
    # [ PDF ] - Used for font aliasing and Multibyte language support
    # [ PDF:Embed ] - Used for Type 1 font embedding
    # [ PDF:Subset ] - Used for True Type Font subsetting
    [ PDF ]
    # This example shows how to rename helvetica font to Courier font
    # helvetica = Courier
    # You can Alias specific styles of font as below
    # helvetica.12..Bold.. = Courier.14....
    # "Lucida Bright".12..Bold = "New Century Schoolbook"
    # Support for Far Eastern Languages:
    # PDF section can be additionally used to enable Multibyte language support
    # built into Reports. To use this feature with Adobe (r) Acrobat (c), you
    # need to install the Asian font pack available online at the Adobe web site.
    # .....SJIS = "HeiseiKakuGo-W5-Acro"
    # A Japanese report run with Shift-JIS character set is replaced to
    # HeiseiKakuGo-W5-Acro CID font.
    arial = Arial
    "arial" =Arial
    "arial narrow" = "Arial Narrow"
    "courier new" = "Courier New"
    tahoma = Tahoma
    "microsoft sans serif" = "Microsoft Sans Serif"
    "ms sans serif" = "MS Sans Serif"
    "times new roman" = "Times New Roman"
    [ PDF:Embed ]
    # This example shows how to embed Type 1 helvetica font into the PDF file:
    # helvetica = "helvetica.afm helvetica.pfa"
    # You need to specify the .afm file before the .pfa file.
    # The font files must exist in one of the folders specified in REPORTS_PATH.
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file:
    # helvetica = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    helvetica..Oblique.Medium = "Sadvocra.ttf"
    helvetica..Plain.Medium = "Sadc128d.ttf"
    helvetica...Bold = "CarolinaBar-B39-25F2-Normal.ttf"
    # NOTES ON PRECEDENCE OF PDF SECTIONS:
    # If you have entries for a same font in many PDF sections, then Font
    # Aliasing entry will take precedence over Font Embedding entry. Entries
    # in Font Embedding will take precedence over the entries in Font Subsetting
    # section.
    # Generic entries for a font must follow more specific entries for the same
    # font. For instance, if you want to subset helvetica Plain, helvetica Bold,
    # helvetica Italic and helvetica Bold-Italic fonts, your entries must be:
    # [ PDF:Subset ]
    # helvetica..Italic.Bold.. = "Arialbi.ttf"
    # helvetica...Bold.. = "Arialb.ttf"
    # helvetica..Italic... = "Ariali.ttf"
    # helvetica..... = "Arial.ttf"
    # If helvetica..... entry appears in the top of the list, all the styles of
    # helvetica font in the layout will be subset as helvetica Plain font.
    uiprint.txt
    # This is the printer configuration file.
    # The format for entries in this file is:
    # <OSName>:<Type>:<Version>:<Long Name>:<Description File>:
    # The first field is the name of the printer. It is the name you give
    # to lpq.
    # The second field is the type of driver to be used for the printer.
    # Currently, "PostScript" and "ASCII" are the only types of driver for
    # printers supported for now. But in future we may be supporting
    # drivers for other printer types.
    # The third field is the version of the type of printer driver. It's 1
    # or 2 for all PostScript printers; or 1 for ASCII printers.
    # The fourth field is a long description of the printer. This will be
    # presented to the user in the "Choose Printer" dialog window.
    # The fifth field is the printer description file to be used. For
    # PostScript printers it is the PPD file of the printer. (This field is
    # currently unused for ASCII printers.)
    # You can use default.ppd for the description file if you don't have a
    # PPD file for the printer, but it's best to use the correct PPD file
    # for the printer.
    # You must fill in at least the first two fields (printer name and
    # type). If the version is empty, it defaults to "1"; if the long name
    # or description are empty, they will default to empty strings. A
    # version of 1 or an empty long name is fine, but, for PostScript
    # printers, you must fill in the description file name.
    # You don't have to update this file to use any printer. The printer
    # chooser interface let's you select a printer and driver at run time,
    # as well as associate a printer description file to the printer. You
    # should list all printers accessible to users here, however, to
    # simplify selecting a printer.
    # The first entry in this file will be used as the default printer, if
    # no printer was selected in the operating system. (For Unix, the
    # following environment variables will be used in turn to get the
    # default printer's name:
    # TK2_PRINTER
    # ORACLE_PRINTER
    # PRINTER
    # For other platforms, see the Installation and User's Guide for your OS
    # for information on setting the default printer.)
    # WARNING: Do not define multiple entries for the same printer by the
    # same name. Selecting a printer with multiple entries will always result
    # in the first entry being selected. Instead, see if your OS allows you
    # to create an alias for the printer, and use an alias for the second type.
    # The following are examples; replace them with printers accessible from
    # this machine.
    # hqunx15:PostScript:1:The really slow printer on 12th floor:dcln03r1.ppd:
    # hqdev2_pos:PostScript:1:The fast ScriptPrinter in 1281:dclps321.ppd:
    # hqunx106:ASCII:1:LNO printer in the 11th floor printer room:none:
    # hqdev9:PostScript:1:Bogus printer for Reports ASCII QA:default.ppd:
    # hqunx121:PostScript:1:APO printer in 500OP for NLS QA:ok800lt1.ppd:
    # --- Note that the following two printers are aliases for the same
    # --- physical printer, with different names for different types:
    # tk2hp4m:PCL:5:HP printer in 771 for testing PCL:ui4.hpd:
    # tk2bw1ps:PostScript:1:HP printer in 771 for testing PS:hp4mp6_1.ppd:
    # Not A Printer:ASCII:1:Configure your uiprint.txt file:none:
    fontprinter:PostScript:1:printer for fonting fixes:default.ppd:
    datap462.ppd
    *PPD-Adobe: "4.0"
    *% Adobe Systems PostScript(R) Printer Description File
    *% Copyright 1987-1992 Adobe Systems Incorporated.
    *% All Rights Reserved.
    *% Permission is granted for redistribution of this file as
    *% long as this copyright notice is intact and the contents
    *% of the file is not altered in any way from its original form.
    *% End of Copyright statement
    *FormatVersion: "4.0"
    *FileVersion: "3.1"
    *PCFileName: "DATAP462.PPD"
    *LanguageVersion: English
    *Product: "(Dataproducts LZR 2665)"
    *PSVersion: "(46.2) 1"
    *ModelName: "Dataproducts LZR-2665"
    *NickName: "Dataproducts LZR-2665 v46.2"
    *% ==== Options and Constraints =====
    *OpenGroup: InstallableOptions/Options Installed
    OpenUI Option1/Optional Lower Tray: Boolean
    *DefaultOption1: False
    *Option1 True/Installed: ""
    *Option1 False/Not Installed: ""
    CloseUI: Option1
    *CloseGroup: InstallableOptions
    UIConstraints: Option1 False *InputSlot Lower
    *% General Information and Defaults ===============
    *ColorDevice: False
    *DefaultColorSpace: Gray
    *FreeVM: "178744"
    *LanguageLevel: "1"
    *VariablePaperSize: False
    *FileSystem: False
    *Throughput: "26"
    *Password: "0"
    *ExitServer: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot perform the exitserver command.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    *End
    *Reset: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot reset printer.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    systemdict /quit get exec
    (WARNING : Printer Reset Failed.) = flush
    *End
    *DefaultResolution: 300dpi
    *?Resolution: "
    save
    initgraphics
    0 0 moveto currentpoint matrix defaultmatrix transform
    0 72 lineto currentpoint matrix defaultmatrix transform
    3 -1 roll sub dup mul
    3 1 roll exch sub dup mul
    add sqrt round cvi
    ( ) cvs print (dpi) = flush
    restore
    *End
    *% Halftone Information ===============
    *ScreenFreq: "50.0"
    *ScreenAngle: "54.0"
    *DefaultScreenProc: Dot
    *ScreenProc Dot: " {dup mul exch dup mul add sqrt 1 exch sub } "
    *ScreenProc Line: "{ pop }"
    *ScreenProc Ellipse: "
    { dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }"
    *End
    *DefaultTransfer: Null
    *Transfer Null: "{ }"
    *Transfer Null.Inverse: "{ 1 exch sub }"
    *% Paper Handling ===================
    *% Use these entries to set paper size most of the time, unless there is
    *% specific reason to use PageRegion.
    *OpenUI *PageSize: PickOne
    *OrderDependency: 30 AnySetup *PageSize
    *DefaultPageSize: Letter
    *PageSize Letter: "statusdict /lettertray get exec letterR"
    *PageSize Letter.Transverse: "statusdict /lettertray get exec letter"
    *PageSize Legal: "statusdict /legaltray get exec"
    *PageSize Ledger: "statusdict /ledgertray get exec"
    *PageSize Statement: "statusdict /statementtray get exec"
    *PageSize Tabloid: "statusdict /11x17tray get exec"
    *PageSize A3: "statusdict /a3tray get exec"
    *PageSize A4: "statusdict /a4tray get exec a4R"
    *PageSize A4.Transverse: "statusdict /a4tray get exec a4"
    *PageSize A5: "statusdict /a5tray get exec"
    *PageSize B4: "statusdict /b4tray get exec"
    *PageSize B5: "statusdict /b5tray get exec b5R"
    *PageSize B5.Transverse: "statusdict /b5tray get exec b5"
    *CloseUI: *PageSize
    *% These entries will set up the frame buffer. Usually used with manual feed.
    *OpenUI *PageRegion: PickOne
    *OrderDependency: 40 AnySetup *PageRegion
    *DefaultPageRegion: Letter
    *PageRegion Letter: "letterR"
    *PageRegion Letter.Transverse: "letter"
    *PageRegion Legal: "legal"
    *PageRegion Ledger: "ledger"
    *PageRegion Tabloid: "11x17"
    *PageRegion A3: "a3"
    *PageRegion A4: "a4R"
    *PageRegion A4.Transverse: "a4"
    *PageRegion A5: "a5"
    *PageRegion B4: "b4"
    *PageRegion B5: "b5R"
    *PageRegion B5.Transverse: "b5"
    *PageRegion Statement: "statement"
    *CloseUI: *PageRegion
    *% The following entries provide information about specific paper keywords.
    *DefaultImageableArea: Letter
    *ImageableArea Letter: "20 16 591 775 "
    *ImageableArea Letter.Transverse: "18 19 593 773 "
    *ImageableArea Legal: "18 19 593 990 "
    *ImageableArea Ledger: "18 16 1205 775 "
    *ImageableArea Tabloid: "16 19 775 1206 "
    *ImageableArea A3: "18 21 823 1170 "
    *ImageableArea A4: "18 18 576 823 "
    *ImageableArea A4.Transverse: "18 19 577 823 "
    *ImageableArea A5: "18 19 401 577 "
    *ImageableArea B4: "19 15 709 1017 "
    *ImageableArea B5: "20 19 495 709 "
    *ImageableArea B5.Transverse: "20 19 495 709 "
    *ImageableArea Statement: "22 19 374 594 "
    *?ImageableArea: "
    save
    /cvp {(                ) cvs print ( ) print } bind def
    /upperright {10000 mul floor 10000 div} bind def
    /lowerleft {10000 mul ceiling 10000 div} bind def
    newpath clippath pathbbox
    4 -2 roll exch 2 {lowerleft cvp} repeat
    exch 2 {upperright cvp} repeat flush
    restore
    *End
    *% These provide the physical dimensions of the paper (by keyword)
    *DefaultPaperDimension: Letter
    *PaperDimension Letter: "612 792"
    *PaperDimension Letter.Transverse: "612 792"
    *PaperDimension Legal: "612 1008"
    *PaperDimension Ledger: "1224 792"
    *PaperDimension Tabloid: "792 1224"
    *PaperDimension A3: "842 1191"
    *PaperDimension A4: "595 842"
    *PaperDimension A4.Transverse: "595 842"
    *PaperDimension A5: "420 595"
    *PaperDimension B4: "729 1032"
    *PaperDimension B5: "516 729"
    *PaperDimension B5.Transverse: "516 729"
    *PaperDimension Statement: "396 612"
    *RequiresPageRegion All: True
    *OpenUI *InputSlot: PickOne
    *OrderDependency: 20 AnySetup *InputSlot
    *DefaultInputSlot: Upper
    *InputSlot Upper: "0 statusdict /setpapertray get exec"
    *InputSlot Lower: "1 statusdict /setpapertray get exec"
    *?InputSlot: "
    save
    [ (Upper) (Lower) ] statusdict /papertray get exec
    (get exec) stopped ( pop pop (Unknown)} if = flush
    restore
    *End
    *CloseUI: *InputSlot
    *OpenUI *ManualFeed: Boolean
    *OrderDependency: 20 AnySetup *ManualFeed
    *DefaultManualFeed: False
    *ManualFeed True: "statusdict /manualfeed true put"
    *ManualFeed False: "statusdict /manualfeed false put"
    *?ManualFeed: "
    save
    statusdict /manualfeed get {(True)}{(False)}ifelse = flush
    restore
    *End
    *CloseUI: *ManualFeed
    *DefaultOutputOrder: Reverse
    *% Font Information =====================
    *% This datap462.ppd is provided by fontsolutions.tar
    *DefaultFont: Courier
    *Font ArialMT: Standard "(001.004)" Standard ROM
    *Font Arial-ItalicMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font ArialNarrow: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Italic: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Bold: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-BoldItalic: Standard "(001.004)" Standard ROM
    *Font CourierNewMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-ItalicMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font Courier: Standard "(001.004)" Standard ROM
    *Font Courier-Bold: Standard "(001.001)" Standard ROM
    *Font Courier-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Courier-Oblique: Standard "(001.001)" Standard ROM
    *Font Helvetica: Standard "(001.001)" Standard ROM
    *Font Helvetica-Bold: Standard "(001.001)" Standard ROM
    *Font Helvetica-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Helvetica-Oblique: Standard "(001.001)" Standard ROM
    *Font IDAutomationSMICR: Standard "(001.001)" Standard ROM
    *Font Symbol: Special "(001.001)" Special ROM
    *Font Tahoma: Standard "(001.001)" Standard ROM
    *Font Tahoma-Bold: Standard "(001.001)" Standard ROM
    *Font Times-Bold: Standard "(001.001)" Standard ROM
    *Font Times-BoldItalic: Standard "(001.001)" Standard ROM
    *Font Times-Italic: Standard "(001.001)" Standard ROM
    *Font Times-Roman: Standard "(001.001)" Standard ROM
    *Font TimesNewRomanMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldItalicMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-ItalicMT: Standard "(001.001)" Standard ROM
    *?FontQuery: "
    save
    /str 100 string dup 0 (fonts/) putinterval def
    count 1 gt
    exch dup str 6 94 getinterval cvs
    (/) print print (:) print
    FontDirectory exch known
    {(Yes)}{(No)} ifelse =
    {exit} ifelse
    }bind loop
    (*) = flush
    restore
    *End
    *?FontList: "
    FontDirectory { pop == } bind forall flush
    (*) = flush
    *End
    *% Printer Messages (verbatim from printer):
    *Message: "%%[ exitserver: permanent state may be changed ]%%"
    *Message: "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%"
    *Message: "\FontName\ not found, using Courier"
    *% Status (format: %%[ status: <one of these> ]%% )
    *Status: "idle"
    *Status: "busy"
    *Status: "waiting"
    *Status: "printing"
    *Status: "warming up"
    *Status: "PrinterError: BD check"
    *Status: "PrinterError: Paper jam"
    *Status: "PrinterError: Replace toner bag"
    *Status: "PrinterError: Warming up"
    *Status: "PrinterError: Timing error"
    *Status: "PrinterError: Fuser check"
    *Status: "PrinterError: Cover opened"
    *Status: "PrinterError: Toner empty"
    *Status: "PrinterError: Empty & reset output bin(s)"
    *Status: "PrinterError: Sorter or jogger error"
    *Status: "PrinterError: Scanner check"
    *% Input Sources (format: %%[ status: <stat>; source: <one of these> ]%% )
    *Source: "serial9"
    *Source: "serial25"
    *Source: "AppleTalk"
    *Source: "Centronics"
    *% Printer Error (format: %%[ PrinterError: <one of these> ]%%)
    *PrinterError: "BD check"
    *PrinterError: "Paper jam"
    *PrinterError: "Replace toner bag"
    *PrinterError: "Warming up"
    *PrinterError: "Timing error"
    *PrinterError: "Fuser check"
    *PrinterError: "Cover opened"
    *PrinterError: "Toner empty"
    *PrinterError: "Empty & reset output bin(s)"
    *PrinterError: "Sorter or jogger error"
    *PrinterError: "Scanner check"
    *%DeviceAdjustMatrix: "[1 0 0 1 0 0]"
    *% Color Separation Information =====================
    *DefaultColorSep: ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi
    *InkName: ProcessBlack/Process Black
    *InkName: CustomColor/Custom Color
    *InkName: ProcessCyan/Process Cyan
    *InkName: ProcessMagenta/Process Magenta
    *InkName: ProcessYellow/Process Yellow
    *% For 60 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "15"
    *ColorSepScreenAngle ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "75"
    *ColorSepScreenAngle ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "0"
    *ColorSepScreenFreq ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *% For 53 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "71.5651"
    *ColorSepScreenAngle ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "18.4349"
    *ColorSepScreenAngle ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "0.0"
    *ColorSepScreenFreq ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "50.0"
    *% For "Dataproducts LZR 2665" version 46.2
    *% Produced by "GETapd.ps" version 2.0 edit 47
    *% Converted to meet 4.0 specification
    *% Last Edit Date: Sep 15 1992
    *% The byte count of this file should be exactly 011228 or 011572
    *% depending on the filesystem it resides in.
    *% end of PPD file for Dataproducts LZR 2665

    If you want to make platform independent use of fonts, you have to use the family, such as sans serif.
    Arial is owned by monotype (http://monotype.com/). You have to contact them if you wish to redistribute it with your application. They also might have a suitable version that renders nicely under linux.
    Pete

  • JMF code working under linux but not windows XP

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

  • Some pdf & doc won't download... tried fixes under 'FF keeps opening many tabs or windows' but none worked... these files open in Safari & Google Chrome.

    Some pdf & doc files won't download. The "You Have Chosen to Open" pop-up appears but when I hit 'Save File", it goes away and the file is not saved. The corrupted files show up in mac download file as .part but don't show up in ff download file. Tried suggestions in "Firefox keeps opening many tabs or windows" on this website but none worked.

    This is most likely Firefox's new "built in" PDF Viewer giving you the trouble.
    First, in Firefox, type "about:config" (minus the quotes) in the address bar. This will open the Firefox configuration file. You'll see a warning. Click that you'll be careful, and open the configurer.
    At the top there is a search bar. Type "js" (again, minus the quotes).
    In the list of results you'll see pdfjsdisabled with a value of "false". Right click it and select Toggle to make it read "true".
    Click Firefox>Preferences and under the Applications tab, scroll down to Adobe Acrobat Document. Click the drop down on the right side and choose "Use Adobe Reader (default)".
    That should take care of it for you.

  • App. with source distributions work on XP pro but dont work on XP home

    Hello!
    We built application and a number of source distributions driving from apllication. It works fine on PC with Windows XP professional, but return error when we try to run it on XP home edition. We test it on 6 PCs. How to use application on XP home?
    PS LV 8.5

    Since you consistently cannot get this to work under XP Home, then clearly you must be using something in the OS that exists in XP Pro, but does not in XP Home. So, the question is what? You'd need to tell us more about what your application does in order to determine that.

  • Hp Envy17 3D 2090nr, change processor to Intel Core i7 2720qm and HyperXRam,​but dont work to 1600Mhz

    Hi, I bougth one laptop Hp Envy 17 3D 2090nr, and I update hardware, first had one Intel Core i7 2630qm, and 8 gb Ram to 1333Mhz, two hard drives of 750gb, and I change to one processor Intel Core I7 2720qm, Memory HyperX kingstone to 1600Mhz, and SSD HyperX kingstone 120Gb, but I check in the Aida64 Extremum and the processor say ( CPU Mobile QuadCore , 3000 MHz (30 x 100) Sandy Bridge) but all system dont work to 1600Mhz, the chipset is HM67, Why dont work to 1600mhz? is possible that problem is in the Bios?
    I put the last Bios release ( Bios F.1A)

    Turboboost is a feature which you cannot enable or disable it. Its activated when OS requests for it. Download the Intel® Turbo Boost Technology Monitor from here and see how this features gets automatically active on the Notebook. 
    There is a support document available at below link explaining what and how Turboboost feature works
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02486485&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Also, make sure the drivers for Turboboost have been installed from here for your Notebook. 
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Java Print Service dont work in Linux

    Hello
    I Having one problem when try print in linux. Will anyone help.
    The print result blank page. But in Windows print ok.
    See the code
    import java.awt.geom.*;
    import java.awt.font.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.print.PrinterJob;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.print.*;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    public class ShapesPrint extends Panel implements Printable, ActionListener {
         final static Color bg = Color.white;
         final static Color fg = Color.black;
         final static Color red = Color.red;
         final static Color white = Color.white;
         final static BasicStroke stroke = new BasicStroke(2.0f);
         final static BasicStroke wideStroke = new BasicStroke(8.0f);
         final static float dash1[] = { 10.0f };
         final static BasicStroke dashed = new BasicStroke(1.0f,
                   BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, dash1, 0.0f);
         final static Button button = new Button("Print");
         public ShapesPrint() {
              setBackground(bg);
              button.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              if (e.getSource() instanceof Button) {
                   PrinterJob printJob = PrinterJob.getPrinterJob();
                   PrintRequestAttributeSet pg = new HashPrintRequestAttributeSet();
                   printJob.setPrintable(this);
                   if (printJob.printDialog(pg)) {
                        try {
                             printJob.print(pg);
                        } catch (Exception PrintException) {
                             PrintException.printStackTrace();
         public void paint(Graphics g) {
              super.paint(g);
              Graphics2D g2 = (Graphics2D) g;
              drawShapes(g2);
         public void drawShapes(Graphics2D g2) {
              Dimension d = getSize();
              int gridWidth = 400 / 6;
              int gridHeight = 300 / 2;
              int rowspacing = 5;
              int columnspacing = 7;
              int rectWidth = gridWidth - columnspacing;
              int rectHeight = gridHeight - rowspacing;
              Color fg3D = Color.lightGray;
              g2.setPaint(fg3D);
              g2.drawRect(80, 80, 400 - 1, 310);
              g2.setPaint(fg);
              int x = 85;
              int y = 87;
              //draw Text Layout
              FontRenderContext frc = g2.getFontRenderContext();
              Font f = new Font("Times", Font.BOLD, 24);
              String s = new String("24 Point Times Bold");
              TextLayout tl = new TextLayout(s, f, frc);
              g2.setColor(Color.green);
              tl.draw(g2, x, y - 10);
              // draw Line2D.Double
              g2.draw(new Line2D.Double(x, y + rectHeight - 1, x + rectWidth, y));
              x += gridWidth;
              // draw Rectangle2D.Double
              g2.setStroke(stroke);
              g2.draw(new Rectangle2D.Double(x, y, rectWidth, rectHeight));
              x += gridWidth;
              // draw  RoundRectangle2D.Double
              g2.setStroke(dashed);
              g2
                        .draw(new RoundRectangle2D.Double(x, y, rectWidth, rectHeight,
                                  10, 10));
              x += gridWidth;
              // draw Arc2D.Double
              g2.setStroke(wideStroke);
              g2.draw(new Arc2D.Double(x, y, rectWidth, rectHeight, 90, 135,
                        Arc2D.OPEN));
              x += gridWidth;
              // draw Ellipse2D.Double
              g2.setStroke(stroke);
              g2.draw(new Ellipse2D.Double(x, y, rectWidth, rectHeight));
              x += gridWidth;
              // draw GeneralPath (polygon)
              int x1Points[] = { x, x + rectWidth, x, x + rectWidth };
              int y1Points[] = { y, y + rectHeight, y + rectHeight, y };
              GeneralPath polygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD,
                        x1Points.length);
              polygon.moveTo(x1Points[0], y1Points[0]);
              for (int index = 1; index < x1Points.length; index++) {
                   polygon.lineTo(x1Points[index], y1Points[index]);
              polygon.closePath();
              g2.draw(polygon);
              // NEW ROW
              x = 85;
              y += gridHeight;
              // draw GeneralPath (polyline)
              int x2Points[] = { x, x + rectWidth, x, x + rectWidth };
              int y2Points[] = { y, y + rectHeight, y + rectHeight, y };
              GeneralPath polyline = new GeneralPath(GeneralPath.WIND_EVEN_ODD,
                        x2Points.length);
              polyline.moveTo(x2Points[0], y2Points[0]);
              for (int index = 1; index < x2Points.length; index++) {
                   polyline.lineTo(x2Points[index], y2Points[index]);
              g2.draw(polyline);
              x += gridWidth;
              // fill Rectangle2D.Double (red)
              g2.setPaint(red);
              g2.fill(new Rectangle2D.Double(x, y, rectWidth, rectHeight));
              g2.setPaint(fg);
              x += gridWidth;
              // fill RoundRectangle2D.Double
              GradientPaint redtowhite = new GradientPaint(x, y, red, x + rectWidth,
                        y, white);
              g2.setPaint(redtowhite);
              g2
                        .fill(new RoundRectangle2D.Double(x, y, rectWidth, rectHeight,
                                  10, 10));
              g2.setPaint(fg);
              x += gridWidth;
              // fill Arc2D
              g2.setPaint(red);
              g2.fill(new Arc2D.Double(x, y, rectWidth, rectHeight, 90, 135,
                        Arc2D.OPEN));
              g2.setPaint(fg);
              x += gridWidth;
              // fill Ellipse2D.Double
              redtowhite = new GradientPaint(x, y, red, x + rectWidth, y, white);
              g2.setPaint(redtowhite);
              g2.fill(new Ellipse2D.Double(x, y, rectWidth, rectHeight));
              g2.setPaint(fg);
              x += gridWidth;
              // fill and stroke GeneralPath
              int x3Points[] = { x, x + rectWidth, x, x + rectWidth };
              int y3Points[] = { y, y + rectHeight, y + rectHeight, y };
              GeneralPath filledPolygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD,
                        x3Points.length);
              filledPolygon.moveTo(x3Points[0], y3Points[0]);
              for (int index = 1; index < x3Points.length; index++) {
                   filledPolygon.lineTo(x3Points[index], y3Points[index]);
              filledPolygon.closePath();
              g2.setPaint(red);
              g2.fill(filledPolygon);
              g2.setPaint(fg);
              g2.draw(filledPolygon);
         public int print(Graphics g, PageFormat pf, int pi) throws PrinterException {
              if (pi >= 1) {
                   return Printable.NO_SUCH_PAGE;
              Graphics g2 = button.getGraphics();
              button.printAll(g2);
              drawShapes((Graphics2D) g);
              return Printable.PAGE_EXISTS;
         public static void main(String s[]) {
              WindowListener l = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
                   public void windowClosed(WindowEvent e) {
                        System.exit(0);
              Frame f = new Frame();
              f.addWindowListener(l);
              Panel panel = new Panel();
              f.add(BorderLayout.SOUTH, panel);
              f.add(BorderLayout.CENTER, new ShapesPrint());
              panel.add(button);
              f.add(BorderLayout.SOUTH, panel);
              f.setSize(580, 500);
              f.show();
    }

    Hi, Frank.
    Thanks for your interest.
    The problem is , the browsers dont compare the certificates of webutil.jar and jacob.jar with its certificate list.
    In Linux the browser, Mozilla 1.7.8, look for the certificates in
    /usr/lib/jvm/java-1.4.2-ibm-1.4.2.0/jre/lib/security/cacerts
    In this file 'cacerts' are storing all the certificates, also exist another certs file in the home user directory the tree began in .java, but it is only a copy of the cacerts file locate in /usr/lib/jvm/java-1.4.2-ibm-1.4.2.0/jre/lib/security
    Duncan Mills resolve this question in this forun post
    Certificate in Linux
    But I have store the keystore file, named keystore, in this subdirectory , and dont work.
    Also I have copy the keystore file with the name cacerts in that subdirectory but then the java console say that it is in wrong format.
    I clean the jar cache before any test and delete the .java tree in home user too.
    Now Im trying to know what is the item in webutil*.htm that load the keystore file to see the way that I can force the webutiljpi.htm to load the certificate.
    Any idea?
    Thanks for your interest and for your help.
    Regards.

  • I use internet explorer but mozilla dont work..always says if your computer is protected by a firewall o proxy, make sure that firefox is permitted to acces the web" i change the proxy settings but dont work..

    i can use internet explorer but i cant use firefox. when i try to conect to firefox say UNABLE TO CONNECT..
    # The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    # If you are unable to load any pages, check your computer's network
    connection.
    # If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    == This happened ==
    Every time Firefox opened
    == 23 of july ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C)

    See:
    * http://kb.mozillazine.org/Error_loading_websites

  • Css work in window but not work in mac os on browser safari

    css not work properly on safari of mac os but work  safari on
    window

    Check Safari / Preferences - Extensions. Turn that off if you have any installed, quit then relaunch Safari.

  • Firewire ports work but dont work?

    my 2 external drives a burner and hd wont work or connect via firewire
    but my dv camera did work via the 1394 red chord and imovie
    so why the camera work but 2 externals in the same ports
    i need help with this
    thanks

    USB and FireWire Quick Assist
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    What to do if your computer won't recognize a FireWire device
    http://docs.info.apple.com/article.html?artnum=88338
    Dealing with FireWire problems (drives not mounting, devices unrecognized, etc.)
    http://www.macfixit.com/article.php?story=20041221081432908
     Cheers, Tom

  • I upgraded my Iphone 4 today to the new ios everything was successful except all of my apps do not work, I have rebooted, resyced, etc all day long. First when I upgraded my apps were completely gone and I had to retreive them from icloud..but dont work..

    When I try to open my apps they act like theyre loading for a second then stop. Ive still restarted my phone and resynced multiple times. Main apps work that come with the phone though.

    "Forcing a backup in iCloud" -  Went to settings/icloud/storage and backup/ back up now
    I just did what you suggested and it worked. The Test Contact showed up. So, I deleted the contact I added today and readded it and it showed up almost immediately into iCloud.com.
    Perhaps there was something wonky with the previous contact. Any ideas? It seems to be working well now. Thank you for your help.

Maybe you are looking for

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below: public class Counter      public void print()           System.out.println("counter"); package foo; public class TestCounter      public static void main(String args[])       

  • "A serious error has occurred" when I attempt to drag a video clip to my timeline.

    Hello, I'm using Premier Pro CC on Yosemite 10.10.1.  For some reason, whenever I attempt to drag a clip into a timeline - any clip in any project, new or old - Premier immediately crashes and I get an error: "Sorry, a serious error has occurred. Ado

  • Missing progess indication at bottom right of screen

    I used to get a progress indicator at the bottom right of screen particularly when downloading something. It gave an indication of how the process in question was going. It isn't there anymore. I think it disappeared when I downloaded the last Firefo

  • Two Sections in One Report

    Hello All,             I have a req wherein a Report Will Contain Two Different Sections. Section A                                               |       Section B Customer      Col1  Col2   Col3                 |      Customer  Col1 Col2 Col3 All th

  • 3D visualization of spatial data

    Hi, I am just wondering if anybody has managed to do 3d visualization of spatial data on web either vrml or x3d ? also any help on loading 3d data in oracle spaital would be really appriciated as well. Regards Vikesh