25 1月 2008 - 11:46:26
关于在ubuntu下无法使用Zend Studio的解决方法
There are two ways to execute Zend Studio, by running the ZDE script,
and by running the runStudio_unix.sh script, both are in the bin
direcory of zend studio
(usually /usr/local/Zend/ZendStudio-/bin)
The following workarounds may be used, but there is no guarantee how well or how long it might work for you in your environment.
modification of ZDE script for xgl:
1. Open your ZDE script with your favorite editor
2. add the next line of code at line 1693.
options="$options -Dawt.toolkit=sun.awt.motif.MToolkit"
for example:
1693:
1694: debugOut ""
1695: unset POSIXLY_CORRECT
1696: if [ $DO_NOT_FORK ]
becomes:
1693: options="$options -Dawt.toolkit=sun.awt.motif.MToolkit"
1694: debugOut ""
1695: unset POSIXLY_CORRECT
1696: if [ $DO_NOT_FORK ]
3. Save the file.
modification of runStudio_unix.sh script for xgl:
1. open the the file in your favorite editor.
2. modify the java execution line,
the line starts with: ../jre/bin/java -Xms16m -Xmx256m -cp...
change it to: ../jre/bin/java -Dawt.toolkit=sun.awt.motif.MToolkit -Xms16m -Xmx256m -cp...
^^^^^^^^^^^^^^^^^^^^^^^^^^
as you can see, the only difference is an extra parameter to the java program.
3. Save the file.
Disclaimer: The XGL-Compiz/Beryl product is experimental and highly unstable. Therefore, it is unsupported by Zend.
The information in this article applies to
Zend Studio Client
Common Problems
On some amd64 based systems, the motif toolkit will not work, complaining that "current locale is not supported in X11".
A solution for this case is to set the XLOCALELIBDIR environment variable to the X11 32 bit locale
directory of your system.
Ubuntu Distribution users will find it at: /usr/lib32/X11/locale.
Ubuntu users can use the following as a startup-script:
#!/bin/bash
export AWT_TOOLKIT=MToolkit
export XLOCALELIBDIR=/usr/lib32/X11/locale
exec ZendStudio-5.5.0/Zend_Development_Environment
(usually /usr/local/Zend/ZendStudio-/bin)
The following workarounds may be used, but there is no guarantee how well or how long it might work for you in your environment.
modification of ZDE script for xgl:
1. Open your ZDE script with your favorite editor
2. add the next line of code at line 1693.
options="$options -Dawt.toolkit=sun.awt.motif.MToolkit"
for example:
1693:
1694: debugOut ""
1695: unset POSIXLY_CORRECT
1696: if [ $DO_NOT_FORK ]
becomes:
1693: options="$options -Dawt.toolkit=sun.awt.motif.MToolkit"
1694: debugOut ""
1695: unset POSIXLY_CORRECT
1696: if [ $DO_NOT_FORK ]
3. Save the file.
modification of runStudio_unix.sh script for xgl:
1. open the the file in your favorite editor.
2. modify the java execution line,
the line starts with: ../jre/bin/java -Xms16m -Xmx256m -cp...
change it to: ../jre/bin/java -Dawt.toolkit=sun.awt.motif.MToolkit -Xms16m -Xmx256m -cp...
^^^^^^^^^^^^^^^^^^^^^^^^^^
as you can see, the only difference is an extra parameter to the java program.
3. Save the file.
Disclaimer: The XGL-Compiz/Beryl product is experimental and highly unstable. Therefore, it is unsupported by Zend.
The information in this article applies to
Zend Studio Client
Common Problems
On some amd64 based systems, the motif toolkit will not work, complaining that "current locale is not supported in X11".
A solution for this case is to set the XLOCALELIBDIR environment variable to the X11 32 bit locale
directory of your system.
Ubuntu Distribution users will find it at: /usr/lib32/X11/locale.
Ubuntu users can use the following as a startup-script:
#!/bin/bash
export AWT_TOOLKIT=MToolkit
export XLOCALELIBDIR=/usr/lib32/X11/locale
exec ZendStudio-5.5.0/Zend_Development_Environment
Syndication
目前这篇文章没有评论...