Standby.wrf error Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\STAF\bin\JSTAF.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform

Hi,
I have created a single tile and getting below error in standby0.wrf file.
As mentioned in doc, I made a windows 32 bit for standby VM and installed 32 bit staf followed by staf configurations.I installed all the critical updates for windows.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\STAF\bin\JSTAF.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.ibm.staf.STAFHandle.<clinit>(STAFHandle.java:306)
at IdleVMTest.main(IdleVMTest.java:30)
I am attaching my test log.
please let me know how to fix it.
Thanks,
Suresh

Rebecca,
I appreciate your quick response.
I am running the test from Primeclient. I am planning to add more tiles once tile0 runs fine. Client0 runs separately.Forgot to mention this in last update.
I assume prime client generates all wrf files. when other VM's .wrf files are generated fine, will it be still primeclient side error??
Primeclient is windows 2008 sp2 64bit. Initially I installed 32 bit java and ended up problem while starting the  VMmark2-STAX.bat. When i installed the 64bit java, problem vanished. I assume java version is correct.
Similary initially i installed a cygwin 64 bit but i got error like "Error VMmarkRMQmgr unable to clear  queues". So uninstalled it and installed a cygwin 32 bit and the problem vanished.
I am seeing the standby VM is relocated fine during the test. it is just it is not capturing the data in .wrf file. Standby VM configure section does not talk about java installation. is there anything else i am missing it?
I would like to know whether  below error talks about standby VM because standby VM is 32 bit other side primeclient is 64 bit. below error says on a IA 32-bit platform.
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\STAF\bin\JSTAF.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
Below image u can see java variables are set. Is there anything wrong??
Thanks,
Suresh

Similar Messages

  • Exception in thread "main" java.lang.UnsatisfiedLinkError ERROR

    Hi All,
    I am trying to develop a Swing Application. I have compiled my codes in Windows like this:
    javac -d ../../classes *.javaThen I tried to run the program from <my dir>/classes/ folder...
    java com.fusion.ucmrtnd.Mainwhere Main.java contains the main() method.
    But I am getting the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.awt.SunToolkit.getAppContext(Ljava/lang/Object;)Lsun/awt/AppContext;
            at sun.awt.SunToolkit.getAppContext(Native Method)
            at sun.awt.SunToolkit.targetToAppContext(Unknown Source)
            at sun.awt.windows.WComponentPeer.postEvent(Unknown Source)
            at sun.awt.windows.WComponentPeer.replaceSurfaceDataLater(Unknown Source)
            at sun.awt.windows.WWindowPeer.updateInsets(Native Method)
            at sun.awt.windows.WWindowPeer.initialize(Unknown Source)
            at sun.awt.windows.WFramePeer.initialize(Unknown Source)
            at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
            at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
            at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
            at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
            at sun.awt.windows.WFramePeer.<init>(Unknown Source)
            at sun.awt.windows.WToolkit.createFrame(Unknown Source)
            at java.awt.Frame.addNotify(Unknown Source)
            at javax.swing.SwingUtilities$SharedOwnerFrame.addNotify(Unknown Source)
            at java.awt.Dialog.addNotify(Unknown Source)
            at java.awt.Dialog.conditionalShow(Unknown Source)
            at java.awt.Dialog.show(Unknown Source)
            at java.awt.Component.show(Unknown Source)
            at java.awt.Component.setVisible(Unknown Source)
            at java.awt.Window.setVisible(Unknown Source)
            at java.awt.Dialog.setVisible(Unknown Source)
            at DisplayStrip.DisplayStripRun(DisplayStrip.java:32)
            at Main.main(Main.java:8)PS: I used NetBeans 6.5 IDE, where it's working fine. But when I am trying to deploy the codes in Windows, I am getting this error.
    Any help would be appreciated.
    TiA....

    maybe your rt.jar conflicting

  • "Exception in thread "main" java.lang.UnsatisfiedLinkError:"  JNI in Linux

    Hi,
    I am writing a simple program to understand how JNI works so that I can use this concept to develop a project. But after running the simple code,
    It gives the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: sum
    at TestJni.main(testJni.java:25)
    My Java code is:
    import java.io.*;
    import java.util.*;
    class TestJni
    // Try to load the native Code library for user Authentication.
    static
    try
    System.loadLibrary( "test" );
    catch( UnsatisfiedLinkError e )
    System.out.println("Could not load native code for user authentication." );
    System.exit(1);
    public static void main( String [] args )
    //TestJni obj = new TestJni();
    System.out.println(TestJni.sum(2, 3));
    public static native int sum( int x, int y );
    TestJni.h looks like:
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class TestJni */
    #ifndef IncludedTestJni
    #define IncludedTestJni
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: TestJni
    * Method: sum
    * Signature: (II)I
    JNIEXPORT jint JNICALL Java_TestJni_sum
    (JNIEnv *, jclass, jint, jint);
    #ifdef __cplusplus
    #endif
    #endif
    and my C++ code is:
    #include <jni.h>
    #include "TestJni.h"
    #include <stdio.h>
    JNIEXPORT jint JNICALL Java_TestJni_sum(JNIEnv *env, jclass obj, jint x, jint y)
    printf("Inside the native function\n");
    return (x + y);
    Then I am generating my .so file as:
    g++ -o libtest.so sum.cpp -shared -fpic -lcrypt -I//usr/lib/j2se/1.4/include -I/usr/lib/j2se/1.4/include/linux
    and copying the libtest.so file into the folder where I have my TestJni.class file. Then running the java code by:
    java TestJni
    but it gives the "UnsatisfiedLinkError". What to do? :( I have spend 2 days now to solve this problem but I am not getting it.
    I am using ubuntu 7.10 as my OS.
    Please let me know if you can help.

    Thanks for your response. I found that, when I copied the shared library to /usr/lib and
    did: ldconfig -n /usr/lib it worked
    But the problem is, this is my computer, but the computers that I am going to run my actual
    JNI application, have restrictive permission. Could anyone please let me know how I can
    do the work without ldconfig. I mean is there anyway I can configure my .so file's path without
    copying it into the /usr/lib folder and without ldconfig?
    I will appreciate any reply. Thanks.

  • HELP Needed with this error:   Exception in thread "main" java.lang.NoClass

    Folks,
    I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
    I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
    Here is the one of the test programs that I am using:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test1 test = new Test1();

    I want to say that there was nothing wrong
    with my classpath config., I am still not sure why
    that didn't work, there is what I did to resolved
    this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
    (For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
    1. I had to set my DB connection protocol to TCP/IP
    (this was not the default), this was done by running
    the
    file "svrnetcn.exe" and then in the SQL Server Network
    Utility window, enable TCP/IP and set the port to
    1433.Irrelevant to the classpath problem.
    2. I then copied all three of the Microsoft JDBC
    driver files to the ..\jre\lib\ext dir of my jdk
    installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
    3. Updated my OS path to located these files
    and....BINGO! (that simple)Unnecessary for solving classpath problems.
    4. Took a crash course on JDBC & basic Java and now I
    have created my database, all tables, scripts,
    stored procedures and can read/write and do all kinds
    of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about.

  • Java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:

    I've just started to take on java, and some examples from my learning source
    show the
    javac.exe fileincluded.java
    to
    java.exe fileincluded
    method. Although I can compile fine, when I go to run I get a java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:.
    I thought it was an environment variable problem as I'm running win xp.
    I've gotten the bin directory included, and I've previously had visual studio .net installed
    so the INCLUDE and LIB variables are set to those directories. I've tried to attach the java /lib and /bin directories by ";C:\PROGRAM FILES\JAVA\JDK1.5.0_02\LIB" etc,
    and that didn't work. What can I do to fix this problem?

    I get the I/O exception while reading: D:\Java\HelloApplet (The system cannot find the file specified). I have previously compiled HelloApplet.java into HelloApplet.class using javac.exe
    the two include statements in the sample HelloApplet I'm using are
    import java.applet.*;
    import java.awt.*;
    I also have a ComponentEventTest.java file which I've made into a class with these two
    include statements:
    import java.awt.*;
    import java.awt.event.*;
    I can however compile .java files which have no include statements.
    I take it that my classpath is not set correctly. Like I said earlier, I'm using winxp
    and trying to set the classpath variable under system. I have tried under user too. The path names I've tried setting are C:\Program Files\Java\jdk1.5.0_02\, C:\Program Files\Java\jdk1.5.0_02\lib, C:\Program Files\Java\jdk1.5.0_02\include, and C:\Program Files\Java\jdk1.5.0_02\;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\include.
    How can I correct this? If it's possible, I would like to set a variable in windows
    versus having to type extra commands at the command prompt everytime I try
    to run a java class with java.exe. Any help would be much appreciated

  • Error exception in thread 'main' java.lang.No ClassDefFound Error

    Hi..
    i hope maybe some of u can help me to settle this problem...my problem is when i run this program..this error will appear at command prompt....Exception in thread 'main' java.lang.No ClassDefFound Error.
    How to solve this problem?I need someone to help me..this is my coding..
    import java.io.*;
    class Wang{
    public int ringgit, sen;
    public Wang (int nilaiRinggit, int nilaiSen){
    ringgit=nilaiRinggit;
    sen=nilaiSen;
    System.out.println("Jumlah sen:"+jumlahSen());
    public int jumlahSen ( ) {
    return 100*ringgit + sen;
    class Aplikasi{
    public static void main (String [ ] args) throws IOException {
    Wang wang = new Wang (5, 20);
    System.out.println ("Jumlah wang:RM"+wang.ringgit+"."+wang.sen);
    System.out.println("Sen :"+wang.jumlahSen( ) );
    thank you...

    tq for reply my msg..
    i dont know how to do....can u help me?....teach me
    step by step......to set the classpath...for ur
    info.i'm using win xp...i want to ask u about
    compilation and run....to compile i using javac
    <filename>.java..and to run ... which one true..using
    java <filename>.java or java<filename>?For the javac command, FILEname.java is used. For java command CLASSname is used. Do not use .class or .java. Do use the fully qualified CLASS name. Fully qualified means package name plus the Class name. If you do not specify a package name, then the fully qualified name is just the Class name. Also, all names are case sensitive. MyClass is not equal to myclass.
    Lets say you compile HelloWorld.java so you have a HelloWorld.class file in the directory, C:\myjava. Then, use the commandjava -classpath c:\myjava HelloWorld
    ang how to settle the error exception in thread 'main'
    java.lang.Nosuch method error..You should ALWAYS post the full, exact error message. It is difficult to answer this question without knowing the full error. Which method did Java complain about? Often, this occurs when you try to launch a class as an application but the class does not have a method whose signature is "public static void main(String[] args) "
    You might want to try the tutorial here: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • Error: Exception in thread "main" java.lang.StringIndexOutOfBounds

    I have to write a program that calculates a monthly mortgage payment from a 10,000 loan, decreases the principle, and displays all of the info (principle payment, interest payment, loan balance) for each month. Since all of that info would scroll off the screen, I have to break it down where it will show a few months, prompt user for input to scroll down, and then show the rest of the info. I keep getting this error:
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String Index Out Of Range: 0
    at java.lang.String.charAt (Unknown Source)
    at Payment2.main (Payment2.java: 20)
    Here is my code:
    import java.text.*;
    import java.lang.*;
    class Payment2 {
         public static void main(String[] arguments) {
              double LoanAmount = 10000;
              int Term = 3;
              double AnnualInterest = .0575;
              double InterestRate = AnnualInterest/12;
              double MonthlyPayment = (LoanAmount*InterestRate)/(1-(Math.pow(1/(1+InterestRate),(Term*12))));
              String UserInput = "";
              double LoanBalance;
         System.out.println("The amount of the loan is $10,000.");
         System.out.println("The annual interest rate is 5.75%.");
         System.out.println("The term of the loan is 3 years.");
         System.out.println("The average monthly payment is $302.");
         System.out.println("Please press Enter to continue, or Q to quit.");
         if((UserInput.toUpperCase().charAt(0)) != 'Q')
         LoanBalance = LoanAmount;
         int DisplayMonth = 1;
         int DisplayLoop = 0;
         while (DisplayMonth <= (Term*12))
         double InterestPayment = LoanBalance*InterestRate;
         double PrinciplePayment = MonthlyPayment-InterestPayment;
         LoanBalance = (LoanBalance-PrinciplePayment);
         NumberFormat nfo;
         nfo = NumberFormat.getCurrencyInstance();
         String MyFormattedInterest = nfo.format(InterestPayment);
         String MyFormattedPrinciple = nfo.format(PrinciplePayment);
         String MyFormattedBalance = nfo.format(LoanBalance);
         System.out.println("For Month " + DisplayMonth + ":");
         System.out.println("The Monthly Payment is " + MonthlyPayment);
         System.out.println("Interest paid is " + MyFormattedInterest);
         System.out.println("Principle applied is " + MyFormattedPrinciple);
         System.out.println("The new loan balance is " + MyFormattedBalance);
         DisplayMonth++;
         DisplayLoop++;
         if (DisplayLoop == 6)
              System.out.println("Press Enter to scroll down...");
    public static String readLine()
    int ch;
    String r = "";
    boolean StringDone = false;
    while (!StringDone)
    try
    ch = System.in.read();
    if (ch < 0 || (char)ch == '\n') StringDone = true;
    else r = r + (char) ch;
    } // end try
    catch(java.io.IOException e)
    StringDone = true;
    } //end catch
    }// end while
    return r;
    } // end Readline
    PLEASE HELP!!! I would greatly appreciate any tips that anyone can give. Thx
    Ryane

    OK, so I fixed that part, it will run now. But, can't figure out how to keep the screen from scrolling down all the way to the bottom of the list. I need it to stop after 3 months, each time, asking the user to press Enter to scroll down (or any input that will work for this). Any hints on that? Also, when I run the program, I have to press Enter to get it to actually start displaying info. Otherwise, I run it and it just sits there. But when I press Enter, it scrolls and prints all information for the entire loan, 36 months. Here's my updated code. Thx
    class Payment2 {
         public static void main(String[] arguments) {
              double LoanAmount = 10000;
              int Term = 3;
              double AnnualInterest = .0575;
              double InterestRate = AnnualInterest/12;
              double MonthlyPayment = (LoanAmount*InterestRate)/(1-(Math.pow(1/(1+InterestRate),(Term*12))));
              String UserInput = readLine();
              double LoanBalance;
         System.out.println("The amount of the loan is $10,000.");
         System.out.println("The annual interest rate is 5.75%.");
         System.out.println("The term of the loan is 3 years.");
         System.out.println("The average monthly payment is $303.09.");
         if((UserInput.toUpperCase().charAt(0)) != 'Q')
         LoanBalance = LoanAmount;
         int DisplayMonth = 1;
         int DisplayLoop = 0;
         while (DisplayMonth <= (Term*12))
         double InterestPayment = LoanBalance*InterestRate;
         double PrinciplePayment = MonthlyPayment-InterestPayment;
         LoanBalance = (LoanBalance-PrinciplePayment);
         NumberFormat nfo;
         nfo = NumberFormat.getCurrencyInstance();
         String MyFormattedPayment = nfo.format(MonthlyPayment);
         String MyFormattedInterest = nfo.format(InterestPayment);
         String MyFormattedPrinciple = nfo.format(PrinciplePayment);
         String MyFormattedBalance = nfo.format(LoanBalance);
         System.out.println("For Month " + DisplayMonth + ":");
         System.out.println("The Monthly Payment is " + MyFormattedPayment);
         System.out.println("Interest paid is " + MyFormattedInterest);
         System.out.println("Principle applied is " + MyFormattedPrinciple);
         System.out.println("The new loan balance is " + MyFormattedBalance);
         DisplayMonth++;
         DisplayLoop++;
         if (DisplayLoop == 3)
              System.out.println("Press Enter to scroll down...");
    public static String readLine()
    int ch;
    String r = "";
    boolean StringDone = false;
    while (!StringDone)
    try
    ch = System.in.read();
    if (ch < 0 || (char)ch == '\n') StringDone = true;
    else r = r + (char) ch;
    } // end try
    catch(java.io.IOException e)
    StringDone = true;
    } //end catch
    }// end while
    return r;
    } // end Readline
    }

  • Run time error - Exception in thread "main" java.lang.NoClassDefFoundError:

    Can can one help me with this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: TestEnv
    The program is a simple one
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.lang.String.*;
    //A Very Simple Example
    class TestEnv {
    public static void main(String[] args){
    System.out.println("Env is fine");
    Compile the program:
    javac TestEnv.java
    Run the program:
    java TestEnv
    Error: Exception in thread "main" java.lang.NoClassDefFoundError: TestEnv

    Try setting the classpath properly. It seems the runtime evironment is unable to find the compiled class files. Nothing else is wrong.
    --Anil                                                                                                                                                                                                                                                                                           

  • Rapidwiz launch error  Exception in thread main java.lang.UnsatisfiedLink

    i am having the same issue rapid wiz is throwing an error
    please share info of how to install 32 bit rpms on 64 bit   ?
    And these 32 bit rpms also need to be installed to get over the rapidwiz launch error :Exception in thread main java.lang.UnsatisfiedLink
    rpm -Uvh libXau-1.0.5-1.el6.i686.rpm
    rpm -Uvh libxcb-1.5-1.el6.i686.rpm
    rpm -Uvh libX11-1.3-2.el6.i686.rpm
    rpm -Uvh libXext-1.1-3.el6.i686.rpm
    rpm -Uvh libXi-1.3-3.el6.i686.rpm
    rpm -Uvh libXtst-1.0.99.2-3.el6.i686.rpm

    ninjanoodle5 wrote:
    thank you Hussein,
    issue is now resolved
    steps followed :  yum install --setopt=protected_multilib=false  *giveyourpackagename*.i686
    Thanks for the update and for sharing the solution.
    Regards,
    Hussein

  • Exception in thread "main" java.lang.UnsatisfiedLinkError: - fresh Install

    Pls can someone help me out. I have a similar problem to the one raised in this thread.
    I want to install 10g Release 2 on a RHEL AS4 Production IBM server. I've followed the installation guide to the letter!
    I keep getting this error:
    [oracle@pencomlx2 database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-07-08_04-07-07PM. Please wait ...[oracle@pencomlx2 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-07-08_04-07-07PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    Pls can someone help out b4 i loose my mind!
    Kwex.

    This thread has a similar issue as the one addressed here: Re: Installation on Unbreakable Linux.
    ~ Madrid.

  • Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc 10

    I have a script file called xmldr
    XML_LIB=~/sm/xmlDR/xmldr/lib
    export XML_LIB
    CLASSPATH=$CLASSPATH:$XML_LIB/ojdbc14.jar:$XML_LIB/xmldr.jar:$XML_LIB/xml.jar:$XML_LIB/xmlparserv2.jar:$XML_LIB/xsu12.jar;
    export CLASSPATH
    java xmlDR $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
    But i still get the following error when i try to execute my script
    This program takes in 7-10 args
    $xmldr 100 268 OCI mt2 mes mes /opt/oracle/sm/
    connection URL: jdbc:oracle:oci8:@mt2
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at xmlDR.main(xmlDR.java:117)
    and the 117th line is
    conn = DriverManager.getConnection(thinConn, username, password);
    Is this because i havent set my classpath right in my shell script?

    Hi guys,
    I am facing a problem when I am using oci driver. The reason why I am using oci driver is to enable failover. so at any cost I need to use oci driver only instead thin.
    The errors follows
    java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
    at oracle.jdbc.driver.T2CStatement.executeForDescribe(T2CStatement.java:725)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1154)
    at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1726)
    at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1696)
    at com.lhs.ccb.sfw.application.JdbcLogin.getDBTimezone(Unknown Source)
    at com.lhs.ccb.sfw.application.JdbcLogin.checkConnection(Unknown Source)
    at com.lhs.ccb.sfw.application.JdbcLogin.newDataSource(Unknown Source)
    at com.lhs.ccb.sfw.application.JdbcLogin.getDataSource(Unknown Source)
    at com.lhs.ccb.sfw.application.TOPLinkLogin.newDatabaseLogin(Unknown Source)
    at com.lhs.ccb.sfw.application.TOPLinkLogin.getDatabaseLogin(Unknown Source)
    at com.lhs.ccb.sfw.application.TOPLinkLogin.newServerSession(Unknown Source)
    at com.lhs.ccb.sfw.application.TOPLinkLogin.getServerSession(Unknown Source)
    at com.lhs.ccb.sfw.application.TOPLinkLogin.registerDescriptorsByTopLink(Unknown Source)
    at com.lhs.ccb.sfw.application.ExtendedServer.initializePersistence(Unknown Source)
    at com.lhs.ccb.sfw.application.BasicServer.initialize(Unknown Source)
    at com.lhs.ccb.sfw.application.ExtendedServer.main(Unknown Source)
    Can anybody provide solution.
    Appreciate your great support

  • Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle/libo

    Hi,
    I"m using Mac OS X (32 bit) and trying to connect to an Oracle 10g server via JDBC. I just installed the Mac OS X 10.2 Instant Client Package - Basic Lite from here -- http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html. Sadly, when I try and run my console app to connect, I get this error ...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle/libocijdbc10.jnilib:
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
         at java.lang.System.loadLibrary(System.java:993)
         at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
         at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
         at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
         at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2097)
         at myco.dor.dmv.driver.youthful.database.YouthfulDriverDatabase.<init>(YouthfulDriverDatabase.java:77)
         at myco.dor.dmv.driver.youthful.database.YouthfulDriverDatabase.getInstance(YouthfulDriverDatabase.java:83)
         at myco.dor.dmv.driver.youthful.AddressFileProcessor.execute(AddressFileProcessor.java:86)
         at myco.dor.dmv.driver.youthful.AddressFileProcessor.main(AddressFileProcessor.java:81)
    Any ideas? My CLASSPATH is set to include /opt/oracle/classes12.jar. My ORACLE_HOME is set to /opt/oracle and LD_LIBRARY_PATH is set to ORACLE_HOME (since that's where all the jars are). How can I troubleshoot this further?
    Thanks, - Dave

    You can verify the settings of the path to your libraries with
    System.out.println(System.getProperty("java.library.path"));before you call System.loadLibrary(), so you know if it is correct.
    I also found this information (for Solaris):
    The shared library file name requires a "lib" prefix and a ".so" extension. Do not include the "lib" prefix or the ".so" extension for the argument that you pass to the System.loadLibrary method.
    I don't know if that helps you solving your problem.

  • Exception in thread "main" java.lang.UnsatisfiedLinkError

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no LabIfxEC in java.library.path
    (LabIfxEC was compiled by ESQL/C of INFORMIX)
    My Java code as:
    public class LabEC
         public int labnum;
         public LabEC()
              labnum = 0;
         public synchronized native void invocation();
         static
                   System.loadLibrary("LabIfxEC");
         public static void main(String[] args)
              LabEC lec = new LabEC();
              lec.invocation();
              System.out.println("After Invoke : labnum = "+lec.labnum+"\n");
    My .h code as:
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include "/opt/hobo/java1.2/include/jni.h"
    /* Header for class LabEC */
    #ifndef IncludedLabEC
    #define IncludedLabEC
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: LabEC
    * Method: invocation
    * Signature: ()V
    jfieldID jf;
    jclass jc;
    jobject jo;
    jint newnum;
    JNIEXPORT void JNICALL Java_LabEC_invocation
    (JNIEnv *env, jobject this);
    void TransDataToJava (JNIEnv *env, jobject this);
    int CreatConnection ();
    int CloseConnection ();
    #ifdef __cplusplus
    #endif
    #endif
    My ESQL/C code as:
    #include "LabEC.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_LabEC_invocation( JNIEnv *env,jobject this)
         jc = (*env)->GetObjectClass(env,this);
         jf = (*env)->GetFieldID(env,jc,"labnum","I");
         if( CreatConnection()||GetNumFromDB()||CloseConnection() )
              fprintf(stderr,"ERROR IN CONNECTING DB");
         }else{
              TransDataToJava(env,this);
    void TransDataToJava (JNIEnv *env,jobject this)
         (*env)->SetIntField(env,this,jf,newnum);
    int CreatConnection()
         EXEC SQL BEGIN DECLARE SECTION;
         char userid[] = "informix";
         char password[] = "informix";
         char dbname[] = "dbdycm_new";
         EXEC SQL END DECLARE SECTION;
         EXEC SQL CONNECT TO:dbname USER: userid using: password;
         if ( SQLCODE < 0 ) return -1;
         return 0;
    int GetNumFromDB()
         EXEC SQL BEGIN DECLARE SECTION;
         long numofrow;
         EXEC SQL END DECLARE SECTION;
         EXEC SQL SELECT count(*) into: numofrow from ttrlineinfo;
         if ( SQLCODE != 0 ) return -1;
         newnum = numofrow;
         return 0;
    int CloseConnection ()
         EXEC SQL DISCONNECT CURRENT;
         return 0;
    My makefile code as:
    INCLUDE_IX=-I /opt/informix/incl/esql
    INCLUDE=-I /opt/nmc/include -I /opt/hobo/java1.2/include -I /opt/hobo/java1.2/include/solaris
    FLAG=-G
    libLabIfxEC.so:LabEC.c LabEC.h
         cc $(FLAG) $(INCLUDE) $(INCLUDE_IX) -solibLabIfxEC.so LabEC.c
    LabEC.c:LabEC.ec LabEC.h
         esql -e LabEC.ec include=/opt/nmc/include:/opt/hobo/java1.2/include:/opt/hobo/java1.2/include/solaris
    The Exception as:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no LabIfxEC in java.library.path
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.<init>(Throwable.java:94)
    at java.lang.Error.<init>(Error.java:50)
    at java.lang.LinkageError.<init>(LinkageError.java:43)
    at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
    at java.lang.ClassLoader.loadLibrary(Compiled Code)
    at java.lang.Runtime.loadLibrary0(Runtime.java:471)
    at java.lang.System.loadLibrary(System.java:745)
    at <Unloaded Method>
    I think my LD_LIBRARY_PATH setting is correct. I have been code a pure c library(without ESQL/C code),and it is runing well with Java.
    Please tell me why, thanks very much!
    Yours Alec

    You can verify the settings of the path to your libraries with
    System.out.println(System.getProperty("java.library.path"));before you call System.loadLibrary(), so you know if it is correct.
    I also found this information (for Solaris):
    The shared library file name requires a "lib" prefix and a ".so" extension. Do not include the "lib" prefix or the ".so" extension for the argument that you pass to the System.loadLibrary method.
    I don't know if that helps you solving your problem.

  • Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/jdk/instanc

    HI,
    i was test some packet capturing code and i was using jpcap
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * @author Aftab Ali
    import jpcap.JpcapCaptor;
    import jpcap.NetworkInterface;
    import jpcap.NetworkInterfaceAddress;
    public class PacketCapturing {
        public static void main(String[] args){
       NetworkInterface[] devices = JpcapCaptor.getDeviceList();
    //for each network interface
    for (int i = 0; i < devices.length; i++) {
      //print out its name and description
      System.out.println(i+": "+devices.name + "(" + devices[i].description+")");
    //print out its datalink name and description
    System.out.println(" datalink: "+devices[i].datalink_name + "(" + devices[i].datalink_description+")");
    //print out its MAC address
    System.out.print(" MAC address:");
    for (byte b : devices[i].mac_address)
    System.out.print(Integer.toHexString(b&0xff) + ":");
    System.out.println();
    //print out its IP address, subnet mask and broadcast address
    for (NetworkInterfaceAddress a : devices[i].addresses)
    System.out.println(" address:"+a.address + " " + a.subnet + " "+ a.broadcast);
    but i have got an exception:java -Djava.library.path=/export/home/libjpcap.so PacketCapturing
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libjpcap.so: Can't load IA 32-bit .so on a IA 32-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at jpcap.JpcapCaptor.<clinit>(JpcapCaptor.java:251)
    at PacketCapturing.main(PacketCapturing.java:23)
    anyone can help me                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    aftab_ali wrote:
    java -Djava.library.path=/export/home/libjpcap.so PacketCapturing
    I don't know much about JNI, but java.library.path should be pointing at a directory containing your libraries and not at the libraries themselves (just as CLASSPATH points to locations containing your classes and not your classes themselves).

  • Export Release Build error - Exception in thread "main" java.lang.Error: Unable to find named traits

    I've been developing an AIR application for Android and iOS. During development, I've run the application (in debug mode) in the desktop simulator as well as on an iPhone 4 and a Nook Tablet.
    However, I recently tried to "Export Release Build" for iOS and hit the following error: (I've stripped out the package and class information in the error message below)
    !ENTRY com.adobe.flexbuilder.project 4 43 2012-04-06 13:09:15.516
    !MESSAGE Error occurred while packaging the application:
    Exception in thread "main" java.lang.Error: Unable to find named traits: valid.package.path.here::ValidClassName
              at adobe.abc.Domain.resolveTypeName(Domain.java:231)
              at adobe.abc.Domain.resolveTypeName(Domain.java:148)
              at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6665)
              at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
              at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
              at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
              at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
              at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
              at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    !STACK 0
    java.lang.Exception
              at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1019)
              at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
              at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doPackage (ExportReleaseVersionWizard.java:283)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:152)
              at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
              at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
              at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
              at org.eclipse.jface.window.Window.open(Window.java:801)
              at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)
              at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)
              at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
              at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
              at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
              at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
              at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
              at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
              at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
              at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    The class the error message is referring to is defined with a SWC that my project links to. However, I've even tried to define a class with that same name (and location) within my project and it still fails to find it.
    Why am I able to Project->Clean and run this project within the desktop AIR player (or on the device in debug mode) but unable to export it as a release build?
    I have found a couple of threads mentioning a similar error but none of them have been marked as resolved.

    At this point I feel I am talking to myself, but I will share my work-around in case it helps another who may stumble across this post.
    In my particular case, both my main AIR application and my ANE wrapper library were referencing the same external Flex library (same revision). Both projects had the library linkage set to merge. Changing the linkage to "External" on one of the 2 libraries (it doesn't seem to matter which) and leaving the other as "Merged into code" enabled the export to complete without the bizarre "Unable to find named traits" error.

Maybe you are looking for