Can't run Sybase Central on Windows 7

Error Message:

All visual sybase tools aborts after the initial splash screen.

                         +-----------------+
                              |   Stack Trace   |
                              +-----------------+

Current thread: main
java.lang.NullPointerException
        at javax.swing.border.EmptyBorder.<init>(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
$XPDefaultRenderer.getTableCellRendererComponent(Unknown Source)
        at com.sybase.util.SybWindowsTableHeaderUI
$XPRendererFix.getTableCellRendererComponent
(SybWindowsTableHeaderUI.java)
        at com.sybase.central.viewer.DetailsList
$ImageHeaderRenderer.getTableCellRendererComponent(DetailsList.java:
1392)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer
(Unknown Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown
Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown
Source)
        at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown
Source)
        at javax.swing.JComponent.getPreferredSize(Unknown Source)
        at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
        at java.awt.Container.preferredSize(Unknown Source)
        at java.awt.Container.getPreferredSize(Unknown Source)
        at javax.swing.JComponent.getPreferredSize(Unknown Source)
        at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
        at java.awt.Container.layout(Unknown Source)
        at java.awt.Container.doLayout(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validateTree(Unknown Source)
        at java.awt.Container.validate(Unknown Source)
        at java.awt.Window.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at com.sybase.central.viewer.SybaseCentral.run(SybaseCentral.java:
144)
        at com.sybase.central.viewer.SybaseCentral.main(SybaseCentral.java:
232)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sybase.central.viewer.SCLoader.callMethod(SCLoader.java:207)
        at com.sybase.central.viewer.SCLoader.main(SCLoader.java:107)

                             +--------------------+
                             |   Sybase Central   |
                             +--------------------+

Version: 4.3.0.2387

                               +---------------+
                               |   Classpath   |
                               +---------------+

C:\Sybase\Shared\Sybase Central 4.3\sybasecentral.jar
    Timestamp=2004-10-13 13:02:04.0
    Length=599987

C:\Sybase\Shared\java\jsyblib142.jar
    Timestamp=2004-10-13 12:55:20.0
    Length=264627

C:\Sybase\Shared\java\HelpManager11.jar
    Timestamp=2004-10-13 12:56:12.0
    Length=56457

C:\Sybase\Shared\java\SCEditor142.jar
    Timestamp=2004-10-13 12:58:36.0
    Length=344763

C:\Sybase\Shared\Sun\JavaHelp-1_1\jh.jar
    Timestamp=2002-06-24 09:36:00.0
    Length=347246

C:\Sybase\Shared\Sybase Central 4.3\jcchart400K.jar
    Timestamp=2003-10-08 10:38:32.0
    Length=1060404

                                +-------------+
                                |   Java VM   |
                                +-------------+

Total memory: 2994176
Free memory: 634224
System properties:
    asa.location=C:\Sybase\Shared\SYBASE~1.3\
    awt.toolkit=sun.awt.windows.WToolkit
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\Sybase\Shared\SYBASE~1.3\SYBASE~1.JAR;C:\Sybase
\Shared\java\JSYBLI~1.JAR;C:\Sybase\Shared\java\HELPMA~1.JAR;C:\Sybase
\Shared\java\SCEDIT~1.JAR;C:\Sybase\Shared\sun\JAVAHE~1\jh.jar;C:
\Sybase\Shared\SYBASE~1.3\JCCHAR~1.JAR;
    java.class.version=48.0
    java.endorsed.dirs=C:\Sybase\Shared\sun\jre142\lib\endorsed
    java.ext.dirs=C:\Sybase\Shared\sun\jre142\lib\ext
    java.home=C:\Sybase\Shared\sun\jre142
    java.io.tmpdir=C:\Users\OLAF~1.OCS\AppData\Local\Temp\
    java.library.path=C:\Sybase\Shared\Sybase Central 4.3\win32;.;C:
\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows
\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\SQL Anywhere 10\x64;C:\Program Files (x86)\SQL Anywhere
10\win32;C:\Program Files (x86)\SQL Anywhere 10\Sybase Central
5.0.0\win32;C:\Program Files (x86)\Sybase\Shared\PowerBuilder;C:
\Program Files (x86)\Sybase\PowerBuilder 11.0;C:\Program Files
(x86)\Sybase\Shared\Web Targets;C:\Windows\Microsoft.NET\Framework
\v2.0.50727;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn
\;C:\Program Files (x86)\Ipswitch\Common;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\Program Files (x86)\PreMaster\PreMaster
PRO\ASA\win32;C:\Program Files (x86)\PreMaster\PreMaster PRO\ASA\shared
\win32;C:\Program Files (x86)\PreMaster\PreMaster PRO\ASA\drivers;C:
\Program Files (x86)\PreMaster\PreMaster PRO\ASA\shared\Sybase Central
4.3\win32;C:\Program Files (x86)\Sybase\SQL Anywhere 9\shared\win32;C:
\Program Files (x86)\Sybase\SQL Anywhere 9\shared\Sybase Central
4.3\win32;C:\Sybase\SQL Anywhere 9\win32;C:\Sybase\Shared\win32;C:
\Sybase\SQL Anywhere 9\drivers;C:\Sybase\Shared\Sybase Central
4.3\win32
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.4.2_02-b03
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.4

java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactor­y
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.4.2_02
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.4.2_02-b03
    line.separator=

    os.arch=x86
    os.name=Windows NT (unknown)
    os.version=6.1
    path.separator=;
    sun.arch.data.model=32
    sun.awt.exception.handler=com.sybase.util.ExceptionHandler
    sun.boot.class.path=C:\Sybase\Shared\sun\jre142\lib\rt.jar;C:
\Sybase\Shared\sun\jre142\lib\i18n.jar;C:\Sybase\Shared\sun\jre142\lib
\sunrsasign.jar;C:\Sybase\Shared\sun\jre142\lib\jsse.jar;C:\Sybase
\Shared\sun\jre142\lib\jce.jar;C:\Sybase\Shared\sun\jre142\lib
\charsets.jar;C:\Sybase\Shared\sun\jre142\classes
    sun.boot.library.path=C:\Sybase\Shared\sun\jre142\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    sun.io.unicode.encoding=UnicodeLittle
    sun.java2d.d3d=false
    sun.java2d.fontpath=
    sun.java2d.noddraw=true
    sun.os.patch.level=
    sybase.jsyblib.dll.location=C:\Sybase\Shared\win32\
    user.country=NO
    user.dir=C:\Sybase\Shared\Sybase Central 4.3\win32
    user.home=C:\Users\olaf.OCSPREMASTER
    user.language=no
    user.name=olaf
    user.timezone=GMT
    user.variant=

                             +-------------------+
                             |   Java Packages   |
                             +-------------------+

Package: com.sun.java.swing
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.java.swing.plaf.windows
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.java.swing.plaf.windows.resources
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sun.swing.internal.plaf.basic.resources
    Implementation title: Java Runtime Environment
    Implementation vendor: Sun Microsystems, Inc.
    Implementation version: 1.4.2_02
    Specification title: Java Platform API Specification
    Specification vendor: Sun Microsystems, Inc.
    Specification version: 1.4

Package: com.sybase.central
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2387
    Specification title: Sybase Central
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2387

Package: com.sybase.central.editor
    Implementation title: Sybase Central Editor
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2197
    Specification title: Sybase Central Editor
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2197

Package: com.sybase.central.lang
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version: 4.3.0.2387
    Specification title: Sybase Central
    Specification vendor: Sybase, Inc.
    Specification version: 4.3.0.2387

Package: com.sybase.central.viewer
    Implementation title: Sybase Central
    Implementation vendor: Sybase, Inc.
    Implementation version:
...

Solution:

Version 9 uses an older version of the Java JDK not compatible with Windows
7. 
Tturn off "Use visual styles on windows and buttons" in Windows
performance
options located in: Control Panel -> System -> Advanced tab.->Performance settings->Turn off "Use visual styles on windows and buttons".

 

你可能感兴趣的:(java,windows,Sybase,System,sun,X86)