Eclipse not finding libswt-gtk.s0 [solved]

I recently installed Eclipse on my new Arch system and ran into the famous error:
/mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permitted
I know the that soft-linking /usr/lib/libswt-* into /mnt/home/.swt/lib/linux/x86_64/ fixes the issue, but the problem is that my libswt files are of a different version. They all end in 4234, while the ones eclipse is looking for end in 4236. Is it because OpenJDK and Eclipse from the ArchRepositories are of incompatible versions? Do I have to manually find a matching version of eclipse and install that instead, or is there an easier way?
By the way, here are some information that might be relevant:
This is the original error message:
┌─[20:52:27]──[91/1683]:/mnt/home$
└──>> cat /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/1371745338639.log
!SESSION 2013-06-20 20:52:18.353 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_40
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2013-06-20 20:52:19.894
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permitted
        no swt-gtk in java.library.path
        Can't load library: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so
        Can't load library: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk.so
        /mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permitted
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
        at org.eclipse.swt.internal.C.<clinit>(C.java:21)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
This is my version of libswt:
┌─[21:15:21]──[92/1684]:/mnt/home$
└──>> locate libswt
/usr/lib/libswt-atk-gtk-4234.so
/usr/lib/libswt-awt-gtk-4234.so
/usr/lib/libswt-cairo-gtk-4234.so
/usr/lib/libswt-glx-gtk-4234.so
/usr/lib/libswt-gnome-gtk-4234.so
/usr/lib/libswt-gtk-4234.so
/usr/lib/libswt-pi-gtk-4234.so
/usr/lib/libswt-webkit-gtk-4234.so
These are the version I have installed:
┌─[21:20:00]──[109/1701]:/mnt/home$
└──>> pacman -Q swt
swt 4.2.1-2
┌─[21:20:08]──[110/1702]:/mnt/home$
└──>> pacman -Q eclipse
eclipse 4.2.2-1
┌─[21:20:09]──[111/1703]:/mnt/home$
└──>> pacman -Q jdk7-openjdk
jdk7-openjdk 7.u40_2.4.0-1
┌─[21:20:10]──[112/1704]:/mnt/home$
└──>> pacman -Q jre7-openjdk
jre7-openjdk 7.u40_2.4.0-1
Last edited by Untitled (2013-06-23 18:11:53)

Thanks for the reply.
My Arch is just a few days old so I had not updated it yet.
I just ran an update, but the situation is the same.
(Thanks for the heads-up on the symlinking though. I really thought it would be a cool idea!)
Last edited by Untitled (2013-06-20 20:34:14)

Similar Messages

  • Eclipse not finding JRE/JDK...

    Well I'm trying to get Eclipse up and running, but whenever I launch it it tells me...
    JRE or JDK needed.
    No java virtual machine was found after searching:
    /usr/share/eclipse/jre/bin/java
    How would I go about pointing it to the real path for JRE? Thanks.

    Perhaps we should make the JDK/JRE .install files export JAVA_HOME? I haven't looked at the packaging for them, but it seems everyone has a problem eventually relating to this.
    Maybe something similar for everything that installs in /opt, since PATH needs refreshing... at least have pacman tell the user to source /etc/profile.
    Anyways, OP, please mark your thread as [SOLVED] by editing the first post
    Last edited by Ranguvar (2009-03-22 02:05:57)

  • Eclipse give following error :could not find Java 2 runtime environment

    When I try to start eclipse it is giving me following error could not find Java 2 runtime environment.It was working fine untill I installed a new verson of eclipse although I am not whethar that is the source of problem.
    When i give java -version command in command prompt it shows
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.6' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    My java Home ,classpath , and path are all set as I say it was earliar woking fine.
    Please Help.

    I know this is a relatively old post, but some people can stumble on this page when doing a search for this problem.
    Anyway, I ran into this on my PC after I installed Sybase which had an older jre.
    Solution:
    1. Run regedit
    2. Look for Java Runtime Environment
    You may have to do multiple searches. Eventually you'll find one with the version number.
    3. Modify the value and change it to the correct version number. (in your case, you would have changed it from 1.4 to 1.6).
    This is much quicker than reinstalling Java every time installing something that uses an older version of Java hoses up the registry value.

  • Can not start WebLogic in Eclipse. Error: "Could not find the main class."

    I have installed Eclipse 2.0 and WebLogic Server 6.1. and the WebLogc plug in from GENUITEC (and jdk1.3.1_04, on Win2K Server). After I have done the configuration, the WebLogic start/stop buttons are integried into the Eclipse Toolbar, but when I click on the start button to start Weblogic, it pops up a dialog box "Java Virtual Machine Launcher" with message: "Could not find the main class. Program will exit!"
    Starting WebLogc Server from the Start panel works fine.
    Does any one have seen this before or have a suggestion what I should do?
    Many many thanks in advance.
    Huan

    Weblogic must be started with a full JDK; otherwise
    JSPs and dynamic EJB stubs could not be deployed. The
    error message
    indicates you are attempting to use a JRE. Configure
    Eclipse JRE to point to a JDK. The product
    documentation will help you with this process. It does not work for me. :-(
    I have tried JDK 1.3.1 and 1.4.1: same result: I get a "Could not find the main class: Program will exit"
    For free expert support please consider contacting
    Genuitec at [email protected] If just want any
    answer ask a newsgroup.
    WayneI'll try the support at '[email protected]' :)
    Michel
    Michel Szybist
    [email protected]
    Fax: +33 (0)173729897
    SMS: http://www.szybist.net/

  • Could not find the main class in Eclipse

    Hey,
    I've been working with Java for a few years now, but I recently set-up a new Eclipse-environment and now my Application won't run...
    "Could not find the main class. Program will exit."
    If I compile and run the source myself it works fine, so it must be a setting in Eclipse somewhere...
    It doesn't work, even when I put the class in the default package...
    It must be something very stupid, but I can't seem to find out what the problem is :(

    It was only the basic Hello-World-concept;
    public class Game extends JFrame {
         /** A default SerialVersionUID */
         private static final long serialVersionUID = 1L;
         public Game() {
              addKeyListener(new GameController());
              MainView view = new MainView(...);
              add(view);
          * @param args The game-options
         public static void main(String[] args) {
              Game spel = new Game();
              spel.setSize(1024, 768);
              spel.setTitle("Java Rally");
              spel.setResizable(false);
              spel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              spel.setVisible(true);
    }

  • Installation problem: I'm not finding ...\eclipse\configuration\org.eclipse.osgi\bundles\15\1\.cp\lib

    <p>I&#39;m following the PDF on &#39;Creating a Thick Client Application&#39; and I do not find a 15 folder in the ...\eclipse\configuration\org.eclipse.osgi\bundles\ folder.  What piece did I not install?  </p><p> </p><p>Thanks in advance. </p>

    You can find the JAR in question, ReportViewer.jar, in ..\eclipse\plugins\com.businessobjects.sdks.jrc.11.8.0_11.8.1.v671\lib as well.  Note that "11.8.1.v671" above denotes the version number, which increases with every update; you should always use the latest version.

  • I have a Ipone 4 I uploaded IOS 7 02 but My ıpone is scratchings. I am not finding as effective my ipone. When will solve this problem by Apple?

    I have a Ipone 4 I uploaded IOS 7 02 but My ıpone is scratchings. I am not finding as effective my ipone. When will solve this problem by Apple? I want to return the old version. Can you help me please.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

    Hello all.
    I've just installed arch, despite very little knowledge of linux (i had ubuntu for a short while before this), but I like a challenge so i thought i'd throw myself in at the deep end.
    The installation went reasonably smoothly, but now i've got it up and running (with a minimal KDE install) but when I open up the konsole, I get the message
    "Warning: Could not find '/bin/bash/', starting '/bin/sh' instead. Please check your profile settings."
    and subsequently I cannot "su jake" (jake being my username, obviously). It requests my password, but when i press return I get the response
    su: /bin/bash/: Not a directory
    which means i've obviously done something wrong, but I cant make head nor tail of the archwiki on Bash, and from googling, I cant find anyone with a similar issue. I can run from root, but it's not ideal.
    Thanks for any response as to why this might be happening, and how to fix it.
    Last edited by hansolo128 (2012-04-24 08:55:37)

    @oxyd
    sh-4.2$ cat /etc/shells
    # /etc/shells
    /bin/sh
    /bin/bash
    # End of file
    root:x:0:0:root:/root:/bin/bash
    jake:x:1000:100::/home/jake:/bin/bash/
    the output of /etc/passwd is
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/bin/false
    daemon:x:2:2:daemon:/sbin:/bin/false
    mail:x:8:12:mail:/var/spool/mail:/bin/false
    ftp:x:14:11:ftp:/srv/ftp:/bin/false
    http:x:33:33:http:/srv/http:/bin/false
    nobody:x:99:99:nobody:/:/bin/false
    dbus:x:81:81:System message bus:/:/bin/false
    jake:x:1000:100::/home/jake:/bin/bash/
    usbmux:x:140:140:usbmux user:/:/sbin/nologin
    mysql:x:89:89::/var/lib/mysql:/bin/false
    kdm:x:135:135::/var/lib/kdm:/bin/false
    avahi:x:84:84:avahi:/:/bin/false
    moving my home directory from /bin/bash/ to /bin/bash on the line of my username now allows me to su jake, but it doesnt solve the warning that /bin/bash/ doesnt exist.

  • Could not find the Main Class. Program will exit. Eclipse w/ JDK 6 RC

    Hi all,
    I needed to upgrade to JDK 6 RC w/ Eclipse while encountering a java.lang.NullPointer exception.
    Now I would like to compile my code with the new VM. I set all preferences to VM Version 6.
    Now I have the following Error:
    Java Virtual Machine Launcher
    Could not find the Main Class. Program will exit.
    What do I do now? Attached you find the Error Message.
    Bye
    Gerrit
    ================================The System.error looks like:
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Exception in thread "main"

    i wouldn't report a nullpointer to sun unless you're fairly confident there's some sort of bug. if main() can't be found it sounds to me like a config issue. if nullpointer, sounds like a code issue. post the code if you want, but i don't think sun will help you debug this.

  • [SOLVED] Java could not find or load main class

    I just tried to run a Java program using Swing components from the terminal, but I always get this error message:
    $ java VisualTest
    Error: Could not find or load main class VisualTest
    The strange thing is that it runs flawlessly from within Eclipse.
    I created VisualTest.java using the (old) Visual Editor, it's contents are:
    package visual1;
    import javax.swing.SwingUtilities;
    //import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    public class VisualTest extends JFrame {
    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    * @param args
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    VisualTest thisClass = new VisualTest();
    thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    thisClass.setVisible(true);
    * This is the default constructor
    public VisualTest() {
    super();
    initialize();
    * This method initializes this
    * @return void
    private void initialize() {
    this.setSize(300, 200);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setContentPane(getJContentPane());
    this.setTitle("JFrame");
    * This method initializes jContentPane
    * @return javax.swing.JPanel
    private JPanel getJContentPane() {
    if (jContentPane == null) {
    jContentPane = new JPanel();
    jContentPane.setLayout(null);
    return jContentPane;
    As you can see, there is a class named VisualTest and it contains a main function.
    My CLASSPATH variable contains a dot, like
    .:/home/mk/.java/deployment/ext/*
    I just updated my Java from JDK 7u67 to JDK 8u20 (the Oracle one, in AUR), but I can't imagine this is related (however, I haven't run Java programs from the terminal for a long time).
    Strangely enough, a simple HelloWorld.java
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World!");
    runs flawlessly from within the terminal.
    Last edited by Marcel- (2014-09-26 12:44:35)

    As intended by my institution, I said to Eclipse that it should store sources and class files in the same directory. Let's do ls and test:
    [~/workspace]$ ls
    total 12K
    drwxr-xr-x 4 mk mk 4.0K Sep 23 18:23 visualtest/
    -rw-r--r-- 1 mk mk 426 Sep 24 15:45 HelloWorld.class
    -rw-rw-r-- 1 mk mk 111 Sep 24 15:44 HelloWorld.java
    [~/workspace]$ java HelloWorld
    Hello World!
    vs.
    [~/workspace/visualtest/visual1]$ ls
    total 12K
    -rw-r--r-- 1 mk mk 528 Sep 24 15:38 VisualTest$1.class
    -rw-r--r-- 1 mk mk 1.1K Sep 24 15:38 VisualTest.class
    -rw-r--r-- 1 mk mk 1.2K Sep 24 00:32 VisualTest.java
    [~/workspace/visualtest/visual1]$ java VisualTest
    Error: Could not find or load main class VisualTest
    I also tested this with another project that runs fine in Eclipse, but it gives the same error message when trying to issue `java StemOpPartijFrame`.
    EDIT:
    One difference between the two OSs though is that Linux progresses.  The other decays..
    Two? I count many! And I don't think something like OpenBSD decays. ;-)
    Last edited by Marcel- (2014-09-24 16:54:12)

  • [SOLVED] mutt error "Could not find the host"

    I have been trying to set up Mutt, following the Mutt wiki page. Every time I run 'mutt' at the command line, the application opens but I get the following error message at the bottom of the window:
    Could not find the host "imap.qmul.ac.uk"
    I've tried various .muttrc variations, but no luck so far. Here is my current .muttrc file (with my username changed to 'user' but no other changes):
    set imap_user = user
    set folder = "imaps://[email protected]:993/"
    set spoolfile = +INBOX
    mailboxes +INBOX
    unset imap_passive
    (Eventually I will add smtp information, but it seems premature at this stage. I also tried putting my password in there, but it did not make a difference.)
    It may be relevant that I also cannot telnet into the imap server in question (or get in there with 'ssh'). I set up telnet using the telnet wiki page.
    The IMAP server itself seems to be working well: I can log in there and read and send emails just fine when I use a GUI-based email client.
    Any ideas, anyone, on what's going wrong?
    PaulE
    Last edited by PaulE (2013-01-05 11:23:07)

    Just in case anyone stops by and is interested in the networking question, let me add, in partial answer to skanky's questions, that I can indeed ping the server:
    $ ping imap.qmul.ac.uk
    PING imap.qmul.ac.uk (138.37.6.143) 56(84) bytes of data.
    And the telnet error message I get is as follows:
    $ telnet imap.qmul.ac.uk
    Trying 138.37.6.143...
    telnet: Unable to connect to remote host: Connection timed out
    But I've just noticed that if I include a port the telnetting works fine:
    $ telnet imap.qmul.ac.uk 993
    Trying 138.37.6.143...
    Connected to imap.qmul.ac.uk.
    Escape character is '^]'.
    I don't know why that should be, since a port number is optional in the telnet documentation I've consulted, both on my system (via 'man') and elsewhere.
    And if I include a port number in my .muttrc folder setting but keep the server name instead of the IP address...
    set imap_user = user
    # set folder = "imaps://[email protected]:993/"
    set folder = "imaps://[email protected]:993/"
    set spoolfile = +INBOX
    mailboxes +INBOX
    unset imap_passive
    ... it STILL doesn't work:
    Could not find the host "imap.qmul.ac.uk"
    Finally the GUI application that I mentioned was a webmail service. I just go to a web page and type in my username and password, so I don't know about its settings offhand. I can try to find them out if this issue is of interest to any networking expert who wanders by.
    There are deep mysteries here, but I am content for the moment that I have mutt up and running.
    PaulE

  • [Solved]NetworkManager...I can't install it!, could not find or..

    Hi, i have a problem!
    i hope someone can help me..
    im trying to install networkmanager, but when i type "sudo pacman -S gnome-network-manager" i recive this error message: "error: 'gnome-network-manager': could not find or read package"
    why? iḿ doing what is here! : http://wiki.archlinux.org/index.php/Net … C3%B1ol%29
    thx, and sorry for my english, im from mexico
    Last edited by cuacha_ (2010-09-29 04:31:22)

    RaisedFist wrote:
    have you tried pacman -Ss networkmanager?
    also, I think you're looking for network-manager-applet, maybe the wiki is outdated.
    i just deleted wicd, i dont really like it, i use  networkmanager on ubuntu, openSUSE, sabayon and linux mint to share the internet with mi xbox 360...but i guess is imposible to do it with wicd...hmmm im a noob on arch! xD
    i typed that and i recived this:
    extra/network-manager-applet 0.8-3
        GNOME frontends to NetWorkmanager
    extra/networkmanager 0.8-1
        Network Management daemon
    extra/networkmanager-openconnect 0.8-1
        NetworkManager VPN integration for openconnect
    extra/networkmanager-openvpn 0.8-1
        NetworkManager VPN plugin for OpenVPN
    extra/networkmanager-pptp 0.8-1
        NetworkManager VPN plugin for pptp
    extra/networkmanager-vpnc 0.8-1
        NetworkManager VPN plugin for vpnc
    community/cnetworkmanager 0.21.1-2
        Command Line Interface for NetworkManager
    what is it?XD

  • [ERROR] could not find source for resource bundle modules.

    We are in the process of upgrading our flex application from SDK3.6 to SDK4.5.0.17899.
    Flexmojos version used for compilation is 3.9.
    The flex library project is complied with SDK4.5.0 version but BUILD is not getting SUCESS from maven.
    The following is the reason is showing and unable to find out the root cause.
    [ERROR] could not find source for resource bundle modules.
    Can you please help me out.
    Thanks,

    Copying
    /Software/FB\ Eclipse\ Plugin/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/2.0.1/frameworks/locale/en_US/charts_rb.swc into
    the 3.5 SDK directory
    /usr/local/lib/flex_sdk/3.5.0/frameworks/locale/en_US
    solves the problem.
    Not sure why as the charts_rb.swc comes from Flex 2.0

  • Error: could not find source for resource bundle charts

    I am trying to upgrade from Flex SDk 3.4 to 3.5.
    I have copied the Data Visualisation SWCs under libs, locale and rlsls folders as suggested by adobe.
    I get the following error when building the application
    flex-library:
         [java] Loading configuration file /usr/local/lib/flex_sdk/3.5.0/frameworks/flex-config.xml
         [java] Error: could not find source for resource bundle charts.
         [java]
    What am I missing? Any help is highly appreciated.
    Thanks

    Copying
    /Software/FB\ Eclipse\ Plugin/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/2.0.1/frameworks/locale/en_US/charts_rb.swc into
    the 3.5 SDK directory
    /usr/local/lib/flex_sdk/3.5.0/frameworks/locale/en_US
    solves the problem.
    Not sure why as the charts_rb.swc comes from Flex 2.0

  • Executable JAR sometimes could not find the main class.

    I have a little task, that seems to be trivial- but I have no idea how to solve the current problem.
    With a double click on my jar, a message comes up: JVM could not find the main class. Program will exit.
    The executable JAR is an export result from eclipse, with a manifest file that contains the right entry to the main class.
    But the curious thing is, that I have tested the little Swing-Application with 3 JRE versions: 1.4.2._06, 1.4.2_09 and 1.5 on Win2K and XP. Every time it works fine, but on one system it fails. (Normally it requires no external classpath settings, no path-entries to work.)
    The ugly system is Win XP with JRE 1.4.2_06 installed.
    Is there anybody with a good hint?
    Please let me know.
    Christiane

    OK, I ll try to explain it in other words:
    It is an executable jar file, with a manifest file that specifies the Main-Class. No other external files or jars or settings needed. Only a simple JDialog initialized from a parent JFrame.
    I d like to start it with a double click from the Win-Explorer, not from command line!
    As a result a dialog from "Java Virtual machine Launcher" displays
    "Could not find the main class. Programm will exit."
    My Problem is, I don t understand the launching process in depth. But I can reproduce the message with the following command:
    wrong:
    javaw -cp OrderAlertTest.jar OrderAlertParentDialog
    -> Error dialog appears
    correct:
    javaw -cp OrderAlertTest.jar apo.order.OrderAlertParentDialog
    -> OK
    Any idea?
    Christiane

Maybe you are looking for