Using tesing, i can't run any swing java application.

Any swing application, ex. xxe or openproj.
Using openjdk6, i got those error:
env:
[hubert@hubert-dell bin]$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5pre-r059f6ba0c7dd) (ArchLinux-1.5_hg20090429-1-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b10, mixed mode)
error:
[hubert@hubert-dell bin]$ ./xxe
internal error: cannot create application: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/motif21/libmawt.so
+---------------------------------------
| java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
| java.lang.Runtime.load0(Runtime.java:787)
| java.lang.System.load(System.java:1022)
| java.lang.ClassLoader$NativeLibrary.load(Native Method)
| java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
| java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
| java.lang.Runtime.loadLibrary0(Runtime.java:840)
| java.lang.System.loadLibrary(System.java:1047)
| sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
| sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
| java.security.AccessController.doPrivileged(Native Method)
| java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
| java.awt.Toolkit.<clinit>(Toolkit.java:1632)
| java.awt.Color.<clinit>(Color.java:279)
| javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTheme.java:76)
| javax.swing.plaf.metal.MetalLookAndFeel.getCurrentTheme(MetalLookAndFeel.java:1681)
| javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java:1576)
| javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1598)
| javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
| javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
+---------------------------------------
then i change java-runtime to sun java sdk.
env:
[hubert@hubert-dell bin]$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
[hubert@hubert-dell bin]$
error:
[hubert@hubert-dell bin]$ ./xxe
# An unexpected error has been detected by Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f02743bb438, pid=16636, tid=139648504359248
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode linux-amd64)
# Problematic frame:
# C [libc.so.6+0x30438] catgets+0x18
# An error report file with more information is saved as:
# /tmp/hs_err_pid16636.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
./xxe: line 40: 16636 已放弃 java $mem $opt -DXXE_GUI="$XXE_GUI" -DXXE_ADDON_PATH="$XXE_ADDON_PATH" -DXXE_USER_PREFERENCES="$XXE_USER_PREFERENCES" -classpath "$cp" com.xmlmind.xmleditapp.start.Start "$@"
[hubert@hubert-dell bin]$
My archlinux:
[hubert@hubert-dell ~]$ uname -a
Linux hubert-dell 2.6.29-ARCH #1 SMP PREEMPT Wed Apr 29 15:36:46 CEST 2009 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
[hubert@hubert-dell ~]$ yaourt -Q glibc openjdk6 kernel26
==> List all installed packages
local/glibc 2.9-7
local/openjdk6 1.5_hg20090429-1
local/kernel26 2.6.29.2-1
[hubert@hubert-dell ~]$
Last edited by hubertstar (2009-04-30 17:15:28)

ok, this's not a bug.
I'm install eioffice(Yongzhong office, a chinese office software) and test it, and i have to set AWT_TOOLKIT=MToolkit (Running eio with compiz).
That's the problem.
unset AWT_TOOLKIT
no errors.

Similar Messages

  • Can't run any swing apps??!?!?

    Hello!
    I have a very confusing problem, I'm trying to run the "Java Web Start" gui.
    It starts and shows a Window frame (with "minimize","maximize" and the Close"X"), but the rest is gray.
    Nothing changes if I try to resize, or just wait (it stood for over 1 hour).
    I also tried the "htmlConverter" gui with the same result. Then I tried the simplest Swing program from the Swing tutorial with the same result, but then I right clicked on the little icon on the start menu which resulted in the gui being painted. When I moved the window it went all gray again until i right clicked on the icon again.
    Eclipse runs fine, but it is not a swing app.
    I run on Windows XP (Home) with all the latest uppdates and J2SDK1.4.2_04.
    I have uninstalled and tried older versions of J2sdk with no success.
    I have no idea what's going on, can somebody please help.
    Regards, Calle

    Hello!
    I have now kind of solved this problem.
    I found this in another forum:
    http://forum.java.sun.com/thread.jsp?forum=32&thread=330898
    I did what it say's, turned of 3D accelaration, and now it works like it should.
    I have a ATI Radeon 9800 256Mb graphic card, and it seems like this is the cause of the problem.
    If someone read this and know if I should submit this as a Java2D bug please tell me and I will.
    Regards Calle

  • I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.   Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac.

    I have an external hard drive 1 TB - it says that 559GB has been used , but I can't see any files at all.
    Is there a way to recover those files. I have a lot of photos on it. I have an IMac and running MAC OSX versuib 10.7.5   I am new to Mac, so I hope somebody can give me some advice.
    Cheers

    if it's ntfs microsofts filesystem then you need a windows machine to recover them

  • IMac can't running any two fire wire hard disks at the same time . which

    iMac can’t running any two fire wire hard disks at the same time . which two hard disks have extra power from power socket . If i just insert one of them .No problem . If connect two Hds at the same time. Leopard cant find it and the Hds seem no problem. the machine must be restarted and then use one . No problem . I have formated the HD many times .even if which format is Fat 32 or Mac issue persists .Boot from installation CD used the disk utility . Issue stills . If i used one fire wire HD that get power from power socket and used one fire wire device . Leopard was no problem during this time . Whether is this design problem or my machine hardware problem?My Mac has been changed the logic board by Apple service . Do you have similar case in here????
    Message was edited by: KennyG1983

    Hi KennyG1983-
    How are you connecting these drives?
    This may help: What to do if your computer won't recognize a FireWire or USB device
    Luck-
    -DaddyPaycheck

  • Upgraded to OSX 10.8.2 and now I can't run any downloaded dmg files.

    Upgraded to OSX 10.8.2 and now I can't run any downloaded dmg files. Says "the Following disk images couldn't be opened". and then say's there "isn't enough disk space" I'm pretty sure it has something to do with apps that are not approved by the app store. How can I turn it off?

    Select your hard drive in the Finder and choose File -> Get Info. What is the available space?

  • Just installed Lion (10.7.3) , but when i use "find" it can't find any files

    Just installed Lion (10.7.3) , but when i use "find" it can't find any files, comes with with "filename contains" but then when you press enter nothing happens.

    Hi..
    Open System Preferences > Security & Privacy > Firewall
    Make sure the Firewall is turned off. You may need to click the gold lock icon to make changes.
    Using FaceTime behind a firewall
    Apple - Support - FaceTime

  • Can't run any JRE or JDK utilities-Win XP SP1

    Hi
    I'm trying for quite a few days now but can't solve this problem. I installed the J2SDK 1.4.01 and sun 1 forte co-bundle which installed JRE 1.4.1 and Web Start. The installation goes fine but when I try to run any of the utilities I get a catastrophic error which reboots my machine. I get a full blue screen with some error messages but before I can read it my machine reboots. It seems I can't run any app/utility that accesses the JRE OR SDK 1.4.1. Have I done something wrong? I can't start with any development due to this problem! I also uninstalled web start and sun 1 forte but same problem.
    I am developing on a Sony Vaio; AMD Athlon 1 GHz, 256 mb ram, windows xp sp1. Any help would be greatly appeciated, please!!!
    Thanks-Ariz

    Ariz - I likewise have the same problem. Oddly I installed the same Java on two identical AMD 1800+ machines and one works the other reboots? In both cases I had to reduce my firewall blocking by Norton Internet Security and others, permit cookies (which I will remove in a moment)to make both the installation happen and allow me to contact this support site.
    David Crow

  • I can't find me dvd after windows7 instaling on hp pavilion dv2700.i can't run any dvd or cd.

    I can't find the dvd after windows 7 installing,onhp pavilion dv2700. can't run any dvd.

    Dear Customer,
    Welcome to HP Support Forum and we are glad to assist you.
    It looks like you are not able to Boot into the Operating System on your Notebook.
    We will surely assist you with this.
    Originally the Notebook will have the Recovery Partition and that would give you an option to create a set of Recovery Disk. If you have not created those Recovery Disks when the Notebook was in working condition we cannot do that right now
    As of now if you need to recover your Notebook with the new Operating System you can check if the Recovery Partition
    is in a working condition or not, If yes you can easily recover/restore your Notebook
    If Recovery Partition is corrupted
    You need to call HP Technical Support and request for a set of Recovery Disks , So you can recover/restore your Notebook at the earliest
    OR
    You need call up Microsoft and purchase an Operating System with the License Key, So you can recover/restore your Notebook at the earliest
    I strongly recommend you to Contact HP Technical Support over the Phone for further assistance without any delay
    Hope this helps, for any further queries reply to the post and feel free to join us again
     **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • Ever since I started using icloud I can't save any pictures to my phone. Why?

    Ever since I started using icloud I can't save any pictures to my phone. Why?

        Let's find out what's going on sylfle! Are you able to edit photos when you aren't saving to contacts? When did this start?
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Satellite Pro 4600: When I use WEP, I can't make any connection anymore

    Hey everybody,
    When I connect my Tohsiba Satellite Pro 4600 via the build-in wireless network card without WEP to an AP, there is no problem, connection is establische and everything is working fine.
    When I use WEP, I can't make any connection anymore.
    Is there a solution to use 128 Bit WEP encryption on a Thosiba Pro 4600 laptop with the build-in WLAN.
    Thanks in advanced
    Pokettuk

    What WLan card do you use?
    As far as I know the notebook should be equipped with the Wireless LAN / WiFi Standard: 802.11b ORiNOCO Mini PCI card.
    This card supports security 64 WEP or 128 RC4.
    Everything looks like you WLan card doesnt support the same security standard like your WLan router. You should understand that this WLan card is an oldie about 7 years old.
    I think the best solution is to use the external USB WLan stick which would support the newest encryption standards
    Bye

  • Can we call simple a java application from any one of this AS adapters

    Can we call a simple java application from any one of this AS adapters?
    Prakash
    Message was edited by:
    user629857

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • Can you run multiple Excel Services Applications against a single Web Application?

    I have been struggling with this one for a while now, hopefully someone can help me understand what I am missing...
    I have a single SharePoint Farm.  This farm runs multiple Web Applications & the Service Applications.
    1. SharePoint Only Server with Multiple Site Collections (http://sharepoint.com/...)
    2. MS Project Server with Multiple Site Collections (http://pwa.com/...)
    3. My services applications all exist on the same farm.
    I was under the impression, and believe that I validated this through testing and from this site (http://blogs.office.com/2009/11/16/excel-services-in-sharepoint-2010-administration-improvements),
    that you can only run a single Excel Services Application against each unique Web Application.  In essence, I can run one Excel Services Application against the SharePoint Only Server, and another Excel Services Application against the MS Project
    Server...  However, I can NOT run multiple Excel Services Applications against the different Site Collections within the MS Project Server becuase it is only aware of its "default" Excel Service Application. 
    ie. I can NOT do the following:  ExcelServiceApp1 for
    http://pwa.com/SiteA & ExcelServiceApp2 for
    http://pwa.com/SiteB
    Is that correct?
    If that is not correct, then I must be missing a way to specify a different Excel Service App for each Project Web App Site. 
    Some other solutions that I think may work, but would really appreciate if someone could validate:
    - Create multiple Project Server Service Applications for each instance of PWA/Excel Service? (but wouldn't this still have to use one of the two WebApplications and cause the same limitation?)
    - Create a new Web Applciation for each PWA/Excel Service?  (ie.
    http://pwasite1.com;
    http://pwasite2.com; http://pwasite3.com, etc.)
    Thoughts/suggestions are very greatly appreciated!!!

    Hello Trpy2k
    I have not done what you are doing and I assume that you are using project server 2010.  However, you answer lives in PowerShell.
    The New-WebServiceProxy show that you can create a new proxy by spacing a URL and not a web application. The default proxy from the web application is directing to the default excel service.  If you need another excel service, you must specify another
    proxy and this may do it for you.
    Also, don't forget the Secure State service and that each excel report will need this configured, that is with the assumption that the other excel service requires different authentication.
    PS.  This question may get a better answer in the SharePoint forums.
    Cheers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • Can we run oracle Forms 5 Application with 10G in Client/Server?

    Hi All,
    Can we run oracle Forms 5 Application with 10G in Client/Server
    Mode?
    Regards
    Gaurav

    In theory you can run it 2 tier - which means that you have the client (the machine the user is sitting at) being the same machine in which the forms application server is running. So yes. But specifically, we don't support a client server runtime anymore. 6i was the last version.
    With 10g you will be running through a browser.
    Regards
    grant

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

Maybe you are looking for

  • Can you install Lion over the top of Mountain Lion to get rid of these awful Logic glitches?

    Folks - I too have experienced the 'help! Logic is running away with itself and won't respond to me' scenario. I thought it was just me at first... I know there are several other folks that are having other problems ranging from annoyances to show-st

  • I need to plug ins extract for photoshop cs5

    I am happy to use photoshop cs 5 but my cs 5 do not have plug ins extrac to crop my on ap lioa and crop my images on ap standa in my website. So I have seached innternet to install . Now you can help me to find that plug ins to use for my work. Thank

  • Not able to use my UK unlocked iPhone 4S with SK telecom in Seoul, south Korea

    Hi All, I've a Factory unlocked iPhone 4s from O2 in UK; it was working fine in UK and India. But when I'm trying to insert a SK telecom sim in Korea, it shows as "No Service". I've checked all the settings and even 3G Data Calls are enabled. Kindly

  • Duplicated playlists

    Why are my playlists duplicated six times? Can I delete them without wiping out my original set of playlists?

  • Lenovo T61p temperatur​es

    Hellp again fellow community members! First of all I would like to wish all of you a happy new year! So, I wrote here again, because I have some concerns with laptops and their temps. Ever since I changed my CPU from T7700 -> T9300 C2D on my Lenovo T