Need help with java.lang.UnsatisfiedLink Error

hello,
i'm trying to access a channel using Java Channel Access(JCA) on HP UX
[please ref for documentation: http://www.aps.anl.gov/xfd/SoftDist/swBCDA/jca/doc/index.html]. I set the java.library.path to the directory where my JCA libraries are. But I get the following error and finally core dump when I try to load the library, libjca.sl or even when I comment out the lines that load the library.
Any help would be appreciated. Thanks, Srik.
My Source code looks like this:
try{
System.out.println(System.getProperty("java.library.path"));
try{
     //System.loadLibrary("libjca.a");
     System.loadLibrary("libjca.sl");
}catch(UnsatisfiedLinkError ule){
     ule.printStackTrace();
Ca chanAcc = new Ca();
chanAcc.init();
System.out.println("Hello: Connected to Channel");
PV procvar = new PV("ioc:heartbeat");
chanAcc.flushIO();
String host = procvar.hostName();
System.out.println("Host: "+host);
procvar.clear();
chanAcc.exit();
}catch(Exception e){
e.printStackTrace();
Error:
java.lang.UnsatisfiedLinkError: no libjca.sl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1419)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at ChAccess.main(ChAccess.java:12)
aCC runtime: Error 215 from shl_findsym(/cs/prohome/lib/libcsue.sl.v5,_shlInit)
/usr/lib/dld.sl: Unresolved symbol: typeid__XTQ2_3std9exception_ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cclassic_table__Q2_3std5ctypeXTc_ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __nullref__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __ct__Q3_3std8ios_base4InitFv_1 (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cfire_event__Q2_3std8ios_baseFQ3_3std8ios_base5eventb (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__Q2_3std9exceptionFv (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cinitfacet__Q2_3std5ctypeXTc_FRCQ2_3std6locale (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cvformat__Q2_3std14__rw_exceptionFiPd (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: do_out__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCwT2RPCwPcT5RPc (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__15_HPMutexWrapperFv (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: do_in__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCcT2RPCcPwT5RPw (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__Q3_3std8ios_base4InitFv (code) from /cs/prohome/lib/libcsue.sl.v5
ABORT instruction (core dumped)

hi jonas..
thanks for the reply. actually I set SHLIB_PATH on HP UX which is the equivalent of LD_LIBRARY_PATH and i'm trying to load the library using
System.loadLibrary(..) and i type out the path using System.getProperty to make sure that the path to the library is included.
but still i'm getting the error.
i'd appreciate any suggestions.
thanks in advance.

Similar Messages

  • Need help with Java always get error

    hey guys need help
    this the problem i get :
    I go to certain websites and I get this error with firefox.
    This Site requires that JavaScript be enabled.
    It is enabled.
    This is the one of the errors in java script console with firefox.
    Error: [Exception... "'Component does not have requested interface' when calling method: [nsIInterfaceRequestor::getInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "<unknown>" data: no]
    I have installed the java script from there home site and did a test and says everything is fine. Any ideas?
    please help

    Hi 49ers,
    Sorry not to have any real idea of how to help you out here, but this is a Java forum, not JavaScript.
    Some Firefox expert may stumble across your post and be able to offer some advice (I hope they do) but this isn't really the best place to post such questions.
    Try here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3
    Good luck!
    Chris.

  • New @ RMI need help with  java.rmi.UnmarshalException: error unmarshalling

    Hi @ all out there,
    I'm new with Java RMI and have to write a EventSystem for an college project where clients can subscribe to a topic and get notified when someone publishes a message to the subscribed topic.
    At server-side I have a class called EventSystem that provides methods for subscribing and unsubscribing from topics, and also for posting messages (for publishers).
    To subscribe i thought that the client must specify the topic and also itself ( means that a client calls in this way: obj.subscribe("mytopic", this).
    The EventSystem handles a list of all clients, and whenever a new message is posted it goes trough all clients and invokes the handleMessage(String msg) method that all Clients have to provide.
    On my local machine without RMi this concept works just great.
    I now tried to get it working using RMI , but I get the following Exception when starting the client (the server starts fine) :
    Looking up for rmiregistry at 138.232.248.22:1099
    Subscriber exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
            at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
            at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
            at $Proxy0.subscribe(Unknown Source)
            at SubscriberImpl.main(SubscriberImpl.java:48)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:293)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1733)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290)
            ... 9 more
    Caused by: java.io.InvalidClassException: SubscriberImpl; class invalid for deserialization
            at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:587)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
            ... 13 moreI googled now for 2 hours but can't resolve the problem alone. As far as I can understand I have to serialize Objects that I want to send to the server, right?
    So how can i do this? I've never used serialization till now.
    any ideas how to solve this problem?
    greets from italy and sorry for my very weak english
    bd_italy

    A class has been modified after deployment. Stop the Registry, clean, recompile, and redeploy.

  • Java.lang.Unsatisfiedlink Error while invoking dbca

    Hi All,
    I am Darshan..... need help from all of you.
    While invoking dbca(Oracle 10g) on HP UX I am getting following error.
    java.lang.unsatisfiedLink Error : no Osutils in java.library.path
    Pls let me know how to set LD_LIBRARY_PATH. I have been stuck up here
    since 1 wk.
    Regards,
    Darshan
    India

    hI Ugonic,
    How are you???
    hope you are well n fine.......... but I am not bcoz of this error.
    I will try option given by u, Mean while pls see my dbca script. I know I am taking your much time, But Pls help to run dbca and emca..... I got stuck up bcoz of this problem sice last 1wk, and i think you are the only person who can help me out.
    looking for your reply, Thanks bye
    #!/bin/sh -f
    # $Header: dbca.sh 21-nov-2003.17:29:23 spanchum Exp $
    # dbca.sh
    # Copyright (c) 1997, 2003, Oracle Corporation. All rights reserved.
    # NAME
    # dbassist - Shell script to run Database Creation Assistant
    # DESCRIPTION
    # Runs Database Creation Assistion java application
    # Run this script with -h or -help option to get the help.
    # MODIFIED (MMDD/YY)
    # npamnani 10/23/02 - add 1.3.1. java flag
    # npamnani 10/09/02 - run with java instead jre
    # dkapoor 07/05/2000 - Created
    # Variables set by Oracle Universal Installer for dependent components.
    # Define ORACLE_HOME -> OH
    OH=/oraback/orahome/OraHome_2
    PLATFORM=HP_UX
    ORACLE_HOME=$OH
    export ORACLE_HOME;
    # Version specific JAR files
    JRE_FILE=rt.jar
    I18_FILE=i18n.jar
    EWT_FILE=ewt3.jar
    JEWT_FILE=jewt4.jar
    EWT_COMP_FILE=ewtcompat-3_3_15.jar
    SHARE_FILE=share.jar
    HELP_FILE=help4.jar
    #ICE_BROWSER_FILE=oracle_ice5.jar
    ICE_BROWSER5_FILE=oracle_ice5.jar
    KODIAK_FILE=kodiak.jar
    SWING_FILE=swingall-1_1_1.jar
    XMLPARSER_FILE=xmlparserv2.jar
    JDBC_FILE=classes12.zip
    VISI_ORB_FILE=vbjorb.jar
    VISI_TOOLS_FILE=vbjtools.jar
    VISI_APP_FILE=vbjapp.jar
    GSS_FILE=orai18n.jar
    NETCFG_FILE=netcfg.jar
    OJMISC_FILE=ojmisc.jar
    PKI_FILE=oraclepki103.jar
    LDAP_FILE=ldapjclnt10.jar
    OPM_FILE=opm.jar
    SRVM_FILE=srvm.jar
    SRVMHAS_FILE=srvmhas.jar
    SRVMASM_FILE=srvmasm.jar
    ASSISTANTS_COMMON_FILE=assistantsCommon.jar
    DBCA_FILE=dbca.jar
    EMLITE_JAR=oemlt-10_1_0.jar
    INSTALLER_FILE=OraInstaller.jar
    # Directory Variables
    SRVM_JLIB_DIR=/oraback/orahome/OraHome_2/jlib
    JRE_DIR=/oraback/orahome/OraHome_2/jdk/jre
    LIB_DIR=$OH/lib
    VISI_LIB_DIR=$OH/lib
    LIB32_DIR=$OH/lib32
    JLIB_DIR=$OH/jlib
    DBCA_JLIB_DIR=$OH/assistants/dbca/jlib
    ASSISTANTS_JLIB_DIR=$OH/assistants/jlib
    INSTALLER_JLIB_DIR=/oraback/orahome/OraHome_2/oui/jlib
    # Classpath
    JRE_CLASSPATH=$JRE_DIR/lib/$JRE_FILE
    I18_CLASSPATH=$JRE_DIR/lib/$I18_FILE
    EWT_CLASSPATH=$JLIB_DIR/$EWT_FILE:$JLIB_DIR/$EWT_COMP_FILE
    SHARE_CLASSPATH=$JLIB_DIR/$SHARE_FILE
    HELP_CLASSPATH=$JLIB_DIR/$HELP_FILE:$JLIB_DIR/$JEWT_FILE
    ICE_BROWSER_CLASSPATH=$JLIB_DIR/$ICE_BROWSER5_FILE
    KODIAK_CLASSPATH=$JLIB_DIR/$KODIAK_FILE
    SWING_CLASSPATH=$JLIB_DIR/$SWING_FILE
    XMLPARSER_CLASSPATH=/oraback/orahome/OraHome_2/lib/$XMLPARSER_FILE
    JDBC_CLASSPATH=$OH/jdbc/lib/$JDBC_FILE
    VISI_CLASSPATH=$VISI_LIB_DIR/$VISI_ORB_FILE:$VISI_LIB_DIR/$VISI_TOOLS_FILE:$VISI_LIB_DIR/$VISI_APP_FILE
    GSS_CLASSPATH=/oraback/orahome/OraHome_2/jlib/$GSS_FILE
    NETCFG_CLASSPATH=$JLIB_DIR/$NETCFG_FILE:$JLIB_DIR/$OJMISC_FILE:$JLIB_DIR/$PKI_FILE:$JLIB_DIR/$LDAP_FILE:$JLIB_DIR/$OPM_FILE
    SRVM_CLASSPATH=$SRVM_JLIB_DIR/$SRVM_FILE:$SRVM_JLIB_DIR/$SRVMHAS_FILE:$SRVM_JLIB_DIR/$SRVMASM_FILE
    EM_CLASSPATH=$OH/classes:$JLIB_DIR/$EMLITE_JAR:$JLIB_DIR/emca.jar:$OH/oc4j/j2ee/home/oc4j.jar:$OH/oc4j/j2ee/home/db_oc4j_deploy.jar:$JLIB_DIR/emConfigInstall.jar
    ASSISTANTS_COMMON_CLASSPATH=$ASSISTANTS_JLIB_DIR/$ASSISTANTS_COMMON_FILE
    DBCA_CLASSPATH=$DBCA_JLIB_DIR/$DBCA_FILE
    INSTALLER_CLASSPATH=$INSTALLER_JLIB_DIR/$INSTALLER_FILE
    # Check for silent or help
    SILENT="false"
    for i in $*
    do
    if [ $i = "-silent"  ] || [ $i = "-help"  ] || [ $i = "-h"  ]; then
    SILENT="true"
    break
    fi
    done
    # Check for DISPLAY
    if [ $SILENT = "false"  ]; then
    case $DISPLAY in
    echo "DISPLAY not set."
    echo "Set DISPLAY environment variable, then re-run."
    exit;
    esac
    fi
    # The environment variable $TWO_TASK cannot be set during the installation
    unset TWO_TASK
    # The environment variable $JAVA_HOME cannot be set during the installation
    unset JAVA_HOME
    # Basic error checking
    case $OH in
    "") echo "*** ORACLE_HOME Not Set!"
    echo " Set and export ORACLE_HOME, then re-run"
    echo " ORACLE_HOME points to the main directory that"
    echo " contains all Oracle products."
    exit 1;;
    esac
    # Set the LD_LIBRARY_PATH to set the path for shared objects
    # Do not set it on AIX
    if [ $PLATFORM != IBM_AIX ]; then
    LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib:/usr/lib:/usr/dt/lib:/usr/ccs/lib:$LIB_DIR:$LIB32_DIR:$OH/network/lib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    fi
    # Set SHLIB_PATH for HP to use 32bit native libraries
    SHLIB_PATH=$ORACLE_HOME/jdk/jre/lib:$LIB_DIR:$LIB32_DIR:$ORACLE_HOME/network/lib32:$SHLIB_PATH
    export SHLIB_PATH
    # Set LIBPATH for AIX to use 32bit native libraries
    LIBPATH=$LIB32_DIR:$ORACLE_HOME/network/lib32:$LIBPATH
    export LIBPATH
    # Set the TNS_ADMIN
    TNS_ADMIN=$OH/network/admin
    export TNS_ADMIN;
    # Set Classpath for Database Creation Assistant
    CLASSPATH=$JRE_CLASSPATH:$I18_CLASSPATH:$DBCA_CLASSPATH:$ASSISTANTS_COMMON_CLASSPATH:$EWT_CLASSPATH:$SHARE_CLASSPATH:$HELP_CLASSPATH:$ICE_BROWSER_CLASSPATH:$KODIAK_CLASSPATH:$SWING_CLASSPATH:$XMLPARSER_CLASSPATH:$GSS_CLASSPATH:$VISI_CLASSPATH:$NETCFG_CLASSPATH:$JDBC_CLASSPATH:$SRVM_CLASSPATH:$EM_CLASSPATH:$INSTALLER_CLASSPATH
    ARGUMENTS=""
    NUMBER_OF_ARGUMENTS=$#
    if [ $NUMBER_OF_ARGUMENTS -gt 0 ]; then
    ARGUMENTS=$*
    fi
    # Run DBCA
    $JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
    Regards,
    Darshan

  • I need help with Mavericks Server: an error occurred while configuring your server.  I

    I need help with Mavricks Server, I get the following: an error occurred while configuring your server.  I have deleted the Server.app several times along with the associated com.apple and Server folder.  Any more help would be appreciated.

    There are usually some log files around, related to the installation.  See if Console.app (Applications > Utilities) shows anything relevant to the error, when you've done a fresh install of Server.app and tried the configuration.

  • Help with java.lang.StackOverflowError

    my program crashed with java.lang.StackOverflowError... what does it mean? what should i do to fix it?
    thanks.

    Just to add on what paulcw said,
    Check for recursive routines. These are normally the culprits. In particular, recursive methods that have a loop condition that keeps executing.
    Check for circular references. Method A calls method B which calls method C which calls back to method A. These are harder to spot, but stepping through your program execution should quickly reveal the pattern.
    For your last resort, create some debugging code (System.out, etc.). You should eventually get to a point where you see the last line that executed properly. Erase the remaining debugging code and then place more after the last successful execution point.
    Now that I think about it, that's just generic debugging technique when all else fails. But with out of memory or stack overflows, it's sometimes your last option.
    - Saish
    "My karma ran over your dogma." - Anon

  • Help with java.lang.ClassCastException in JSSE

    I need an urgent help.
    i am writing code in JSSE for getting Server certificater(through SSL)
    i wrote
    public class url
    public static void main(String[] args)
    try
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
    Security.addProvider(new Provider());
    URL url=new URL("https://localhost:8443");
    HttpsURLConenction urlc=(HttpsURLConnection) url.openConnection();
    catch(Exception e)
    System.out.println(e);
    when i am executing this programing, i am getting the following run time error
    java.lang.ClassCastException
    I think i am getting error for the following line of code
    " HttpsURLConenction urlc=(HttpsURLConnection)url.openConnection(); "
    Please help me out to overcome this run time error.
    I would be grateful to you if you can solve my error

    Hi all
    I have the same error:
    java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
    MY CODE IS:
    // Set the system and security properties
                   System.setProperty("javax.net.ssl.trustStore",
                             "C:\\certificados\\cacerts");
                   System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
                   // Keystore location and password
                   System.setProperty("javax.net.ssl.keyStore",
                             "C:\\certificados\\keystore");
                   System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
    //Set the request
    String url_ = "https://195.235.160.165";
    //Creamos la petici�n html
    StringBuffer buffer = new StringBuffer();
    buffer.append(url_);
    buffer.append("/GPP/WLServer?Method=M_FINDIT&CLIENT=");
    buffer.append(client);
    buffer.append("&CLI_PASSWD=");
    buffer.append(cli_passwd);
    buffer.append("&USER=");
    buffer.append(user_login);
    buffer.append("&USER_PASSWD=");
    buffer.append(user_passwd);
    buffer.append("&TUSERID=");
    buffer.append(MSISDN);
    buffer.append("&TUSERID_TYPE=MSISDN");
    buffer.append("&GROUP=");
    buffer.append(group_id);
    buffer.append("&SRS=GPP:UTM28");
    url_ = buffer.toString();
    URL url = new URL(url_);
    HttpsURLConnection conn = (HttpsURLConnection)url.openConnection();
    conn.setHostnameVerifier(new HostnameVerifier() {
    public boolean verify(String hostname, SSLSession session)
    // I don't care if the certificate doesn't match host name
    return true;
    BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        conn.getInputStream()));
    //Creates a writer with the encoding parameter as "UTF-8"
    Writer out_ = new OutputStreamWriter(response.getOutputStream(), "UTF-8" );
    String inputLine;
         String fichero_in = "";
         while ((inputLine = in.readLine()) != null){               
         if(inputLine.length()!=0){
              System.out.println(inputLine);
              fichero_in = inputLine;
              out_.write(inputLine);
         in.close();
    //Sets the Content-Type header
    response.setContentType("application/xml; charset=utf-8");
         //response.setContentType("text/html; charset=UTF-8");
    //Sends the response XML to the client
    out_.write(url_);
    //out_.write(fichero_in);
    out_.flush();
    response.sendRedirect(response.encodeRedirectURL("out_"));
    Anyone can hel me??
    Thanks in advance

  • Need help with coding: getting an error

    Hi there everyone, this would be my first post here, and my first post on any forum related to programming. Im taking a highschool computer science course, in which we are learning J2SE. I have read ahead a bit, and am having trouble with the following program:
    //=============================================================================
    //Converts US Dollars To Euros
    //=============================================================================
    public class currencyconverter1
         private Double dollarRate = 1.00000;
         private Double conversionRate = 1.22990;
         private Double dollarAmount = 0.0;
         private Double euroAmount = 0.0;
              public static void main convert Double(euroAmount)
                   dollarAmount = euroAmount*conversionRate;
                   System.out.println(dollarAmount);
                   return euroAmount
                   }JCreator is telling me I need a '(' on the "main" line. I simply cannot find where this is needed. Can anyone help, or recommend another forum where I may find some help? Thanks in advance!

    Thanks for the reply... I tested out your code, and it didn't compile, so after playing with it, heres what I got to compile (please read past the code):
    public class currencyconverter1
         private Double dollarRate = 1.00000;
         private Double conversionRate = 1.22990;
         private Double dollarAmount = 0.0;
         private Double euroAmount = 0.0;
         public Double convert (Double euroAmount)
              dollarAmount = euroAmount * conversionRate;
              System.out.println(dollarAmount);
              return euroAmount;
    }It gives me the following message when I execute the .exe: "Exception in thread "main" Java.Lang.NoSuchMethodError: Main" ....
    Does anyone know what the deal is and can explain wnat my source code error is? Thanks again in advance.

  • Problems with java.lang.NoClassDefFound error *solved*

    realising my stupidity I have solved the problem
    I am quite new to java and I have been using the Java for Dummies book to help me to learn it. I decided to use the command line tools instead of an IDE and hadn't encountered any problems until recently. I took a break from learning Java after reaching the end of the book but have decided to come back to it. The problem now is that when I run my programs I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPriviledged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.localClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    This occurs from a simple hello world program:
    class HelloWorld
       public static void main(String[] args)
          System.out.println("Hello, World!");
    }I have no idea what the problem is, although by looking at similar threads it would appear that it may be something to do with the classpath variables however I do not know much about this as I followed a tutorial on the internet to set the classpath up.
    Edited by: this_is_phil on Jun 19, 2008 11:11 AM

    this_is_phil wrote:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)This part of the error message means you typed in "helloworld" but the class that java found was named HelloWorld. In Java, those are different - java is case sensitive. It will work if you enter HelloWorld.

  • Need help with java

    ok so i have a midterm and need help this question that is gonna be on the midterm. i dont know how to do it and its worth 16 marks!!!! here it is
    the UW Orchestra wants to produce a CD containing all the pieces of music
    from its upcoming concert. In order to do that, it needs to calculate the total length of time for the
    CD. In addition, the conductor wishes to know which piece of music has the longest duration.
    Sample output for the program.
    The Swan (3.88)
    The Bee (0.98)
    Claire de Lune (6.02)
    Liebesfreund (3.38)
    Ragtime (3.48)
    The total time for the CD is 18.74 minutes.
    The longest piece is Claire de Lune.
    Do not include the HTML that is required to embed the program into a Web page (that is, show
    only what you would write between <script> and </script> tags).
    [4 marks] In the following space, define a function, Print, that takes two parameters, Title and
    Length, and outputs a line of text such that Title appears in italics, followed by Length in
    parentheses. The function also returns the value of Length.
    For example, Print("My World",30) will output the line
    My World (30)
    and return the value 30.
    Put your JavaScript program for the remainder of this question in the space provided on the next
    two pages.
    [9 marks]. For each piece of music, your program should input the title of the piece and the
    duration (in minutes) for that piece, and it should output a line showing those values using the
    Print function just defined. After all pieces have been listed, the program should output the
    total length of time for the CD, adding in 0.25 minutes between each piece of music (which is
    needed on the CD to separate the pieces).
    [3 marks] The program should also output the name of the piece that has the longest playing
    time.
    Use reasonable variable names, indentation and good programming style. Documentation and
    comments are not required, but you may add them to explain any assumptions you might want to
    make. You need not check that the input is valid, and you may assume that no two pieces have the
    same duration.
    can anyone help me out! i would be indebt of ur kindness if u can help me out!

    This forum is for Java, not JavaScript. The two have nothing to do with each other.
    And anyway, this is your studying, so you should try to do it, put forth your best effort, and ask specific questions (on the proper fourm).

  • Need help with java J2Se 5.0 upgrade 2

    Having problems with Java when playing on Pogo, the Vaults of Atlantis. When loading, I am getting a message that says that I need to remove and download again, java. That it is not working correctly. I did that yesterday, 05/27/05 and am still experiencing the problem but only after signing off from Pogo and AOL and then trying to sign back on again later in the day. I have to shutdown my computer and bring it back up again and then I can load the Vaults of Atlantis. I have noticed that when I do sign-off from Pogo and AOL, that my java cup stays on in my deskbar. Is that supposed to be normal or is it supposed to disappear? If it is supposed to disappear, what can I do to fix that problem?
    Please, can anyone help?

    Go here http://www.java.com/en/ and click "Download Now".
    If that has problems, click the "Manual Download" link and download the "Windows (Offline Installation)".
    If there are problems, review the Help information to resolve.

  • Need help with Acrobat Xi installation error

    Here is the error I am getting...
    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 3 error(s)    ----------- Payload: Acrobat Professional 11.0.0.0 {23D3F585-AE29-4670-8E3E-64A0EFB29240} -----------  ERROR: Error 1311.Source file not found: C:\Windows\Installer\Data1.cab.  Verify that the file exists and that you can access it.  ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation. MSI Error message: Error 1311.Source file not found: C:\Windows\Installer\Data1.cab.  Verify that the file exists and that you can access it.  ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603  ------------------------------------------------------------------------------------- "Windows 7.  Have tried installation several times.  Need help now, considering I am paying for this service!

    Thank you for the replies. 
    Jeff, I will check that link and try what is suggests.
    Bill, to answer your questions...
    1. This is a CC installation.
    2. Yes, I am logged in as the admin and I have no anti-virus other than Microsoft Essentials enabled.
    3. This is a download installation.
    To give even more info that might help, I am using a Windows 7 machine with more than enough capability to run CC.  I had installed Photoshop, Illustrator, among other apps successfully.  I then tried the Acrobat XI installation.  Acrobat XI downloaded and extracted, but when it started installing it froze around 50% and then I received the installation failed error from Windows.  Once that was confirmed the CC install progress finishes but shows failure.  The More Info reveals the error I pasted in above.  Afterward, none of the CC apps worked properly and had to be uninstalled.  So, next I installed the CC downloader and tried to start installing Acrobat XI first but the same error occurred.  That's when I got frustrated and posted my original message.  My limited knowledge leads me to think the error issue lies in the AcroPro.msi file but I have no idea what that is or how to find, correct, or install it.
    Thanks again for any help you can provide.  I'm really frustrated that I'm paying for something that I can't use.

  • Need Help with my School Assignment - Error Message

    Hey guys,
    I'm doing a school assignment for my Object Oriented Java programing class. Here's the assignment requirements:
    "There are five kinds of flowers, and their associated costs. Create an array of strings that holds the names of these flowers. Create another array that holds the cost of each corresponding flower. Your program should read the name of a flower and the quantity desired by a customer. Locate the flower in the name array and use that index to find the cost per stem in the cost array. Compute and print the total cost of the sale. Write your solution in one class: FlowerCounterArray.
    The solution should implement the following two methods:
    - addOrder(String flowerName, int quantity) to add to the order. This is in addition to reading from the terminal.
    - printTotal() to print out the total cost to the terminal."
    I wrote up some code so far and I want to test it, but I am getting this error: "']' expected" on the newFlower[0] = new FlowerCounterArrays("petunia", 0.50]; line near the end of the code.
    Here's my code:
    public class FlowerCounterArrays {
        private String flowerName;
        private double price;
        public void addOrder(String flowerName, int quantity) {
            for (FlowerCounterArrays flower : newFlower) {
                if (flower.equals(flowerName)) {
                    total = price * quantity;
                    System.out.println("The price for " + quantity + " " + flower + "(s) is " + total);
                else {
                    System.out.println("Unfortunately we do not carry that type of flower here.");
        public void printTotal() {
            System.out.println(total);
        FlowerCounterArrays[] newFlower = new FlowerCounterArrays[5];
        newFlower[0] = new FlowerCounterArrays("petunia", 0.50];
        newFlower[1] = new FlowerCounterArrays("pansy", 0.75);
        newFlower[2] = new FlowerCounterArrays("rose", 1.50);
        newFlower[3] = new FlowerCounterArrays("violet", 0.50);
        newFlower[4] = new FlowerCounterArrays("carnation", 0.80);
    }Thanks for the help guys! Much appreciated!
    Edited by: he4dhuntr on Oct 14, 2008 1:33 PM

    Ok. I'm kind of new to all this, so some stuff I'm not 100% clear on.
    I get what you're saying though. I put the array into the method.
    Although now I get a new errod: "cannot find symbol - constructor FlowerCounterArrays(java.lang.String,double)"
    I get this error on my newFlower[0] = new FlowerCounterArrays("petunia", 0.50); line
    Here's my new code:
    public class FlowerCounterArrays {
        private String flowerName;
        private double price;
        public void addOrder(String flowerName, int quantity) {
            FlowerCounterArrays[] newFlower = new FlowerCounterArrays[5];
            newFlower[0] = new FlowerCounterArrays("petunia", 0.50);
            newFlower[1] = new FlowerCounterArrays("pansy", 0.75);
            newFlower[2] = new FlowerCounterArrays("rose", 1.50);
            newFlower[3] = new FlowerCounterArrays("violet", 0.50);
            newFlower[4] = new FlowerCounterArrays("carnation", 0.80);
            for (FlowerCounterArrays flower : newFlower) {
                if (flower.equals(flowerName)) {
                    total = price * quantity;
                    System.out.println("The price for " + quantity + " " + flower + "(s) is " + total);
                else {
                    System.out.println("Unfortunately we do not carry that type of flower here.");
        public void printTotal() {
            System.out.println(total);
    }Thanks for the help so far!

  • Need help with java applet

    Hi all,
    Am having trouble with a java applet that won't run under Mozilla, Seamonkey, and IE 6 but will run under IE 7 Beta 2. Am posting the error info below in the hope that someone can see what could be wrong as i don't want to upgrade user's to IE 7 since it's a beta and also since most of them use mozilla. thanks in advance:
    load: class com.crystaldecisions.ReportViewer.ReportViewer not found.
    java.lang.ClassNotFoundException: com.crystaldecisions.ReportViewer.ReportViewer
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-5" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception in thread "thread applet-com.crystaldecisions.ReportViewer.ReportViewer" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    BigDaddyLoveHandles wrote:
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
    That wasn't attention-grabbing enough apparantly. Let's try it again.
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
    h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}

  • Need help on java.lang.reflect

    Hi,
    I want to use the java.lang.reflect package's member classes for my program. Is there any place on web where I can get complete details of these packages including, classes, methods, functions and their arguements etc.
    Thanks.

    Hi jasper,
    It serves my purpose. But it is available as web page with links. Is there any downloadable version available?
    Can anybody help me, because I won't be online all the time.

Maybe you are looking for

  • How to change material type and industrial sector of the exsisting material

    Hi, There is an issue where user wants to change material type and industrial sector of the exsisting material .Is  it posible to do so?? IF not ,how can we delete that material from material master so that another material with same number and requi

  • Extensions don't work with ff4

    A bunch of my extensions that are supposed to work with FireFox4 just don't work at all. I've lost NoScript, ForecastFox, AdBlock Plus, Roomy Bookmarks Toolbar, Toolbar Buttons, and the SiteAdvisor plugin. I have the latest versions of all of these a

  • Setting up Ipod Touch to Network

    Hi all, am trying unsuccessfully, to add Ipod Touch to my wireless network. I have the password to my network, but still can't connect. Do you have to put anything other settings in ie. ip address, subnet mask etc? Thanks Sharon

  • Smooth scrolling articles viewed on the Content Viewer going out of shape

    When a smooth scrolling article is shared and viewed on the Content Viewer the last section of the article is often doubled in size. It looks peculiar and it becomes impossible to read. Are you aware of the situation? Is there a solution to this?

  • CFImage bug?

    I'm having a problem with CFImage where it seems to be locking the image file it is using, making it unable to be deleted (even in windows file explorer). Here is the scenario: I upload an image file using cffile action=upload I read the file in usin