Class vector can't be resolved

hi ,
plz i got the following error while running a J2ME
program
cannot resolve symbol
symbol : method add (java.lang.String)
location: class java.util.Vector
any ideas????

First of all, crosspost:
http://forum.java.sun.com/thread.jspa?threadID=629578
Please only use one thread.
There is no method "add(someStringVariable)" in the Vector library for j2me. However, there is "addElement (Object o)".
j2me specs and j2se specs are very different.
J2ME leaves out alot of methods due for mobile usage.
To get specs for cldc and midp, look here:
http://java.sun.com/j2me/docs/index.html

Similar Messages

  • ORA-29534 error for Class can not be resolved

    HI,
    I am trying to load and resolve a third party jar file which has some JMS classes. But while using the loadjava utility,
    "loadjava -u scott/tiger@dbname -r -v -genmissing weblogic.jar"
    i get "ORA-29534: referenced object <Class Name> could not be resolved" error for most of the classes.
    This Jar file has around 15000 classes definitions and it takes almost a complete day to load and resolve it. Even after taking so much of time it is unable to resolve all the classes and give a runtime exception Class can not be resolved for some class.( i have created the oracle java stored procedure successfully)
    I need a help on this very urgently...
    Thanks in advance....
    Sachin

    Sachin,
    There are many possible causes for the error you are getting, for example:
    1. The DBMS_JAVA package is corrupt.
    (Have you previously successfully loaded JARs -- or even java classes -- into the database?)
    2. A java version mismatch.
    (What Oracle database version are you using, and what java version is your JAR file compatible with?)
    You say,
    Surely they are loaded but not resolvedIs this a question, or a statement? Have you verified that the classes are loaded and not resolved? I use the following query for this:
    select DBMS_LONGNAME(OBJECT_NAME), STATUS
      from USER_OBJECTS
    where OBJECT_TYPE like 'JAVA%'The value for the STATUS column should be 'VALID'.
    I'm only guessing, but you may find more information (regarding the error you are getting) in the Oracle log files. Have you checked them?
    Have you tried searching the MetaLink Web site?
    http://metalink.oracle.com
    (Search for "ORA-29516", perhaps.)
    Good Luck,
    Avi.

  • Vector can't give objects

    I have a program using a vector, I store BufferedImage objects in it. But when I try to access them later the compiler won't let me because the method in Vector defines that Object is the type of object being passed, and cannot convert it to a BufferedImage.
    I tried using an Object to store it which worked, but when I tried to use it to draw, it wasn't recognised as an Image, being an Object and still wouldn't compile.
    Is this because I have jdk 1.3? Is there anotherway Should I be using a vector? Should I edit Vector to pass BufferedImages rather than Objects?
    I am storing frames like this:
    Vector.addElement(java.awt.Robot.createScreenCapture(Rectangle)));
    and retrieving them like this:
    Graphics.drawImage(Vector.elementAt(index),0,0,this);
    The syntax is correct but Object is not compatible with BufferedImage!
    There must be another way...
    Rufus,

    Thanks for that. I thought you could only cast types
    and not Objects.The correct way to express that would be to say: I thought you could only cast primitive types and not class types. But you can cast both primitives and classes, even though the casting behaves a little differently.
    One additional complication is that Object (with a capital O) isn't an object but a class. All classes extend Object by default. That's why collections like Vector can store objects of any class.

  • Please, help .. return not working. string can not be resolved to a variabl

    Greetings..
    I am writing a Java code that encrypt a String using DES. After encryption, I want to return the String, but I get error that says: variable can not be resolved. Please, help me to find out what is the problem ?? Thanks in advance.
    Here is the code:
    import javax.crypto.*;
    import java.security.*;
    public class Client {
         public String DESEncrypt(String cardnum)
              try{
              //create cipher object for DES
              Cipher c=Cipher.getInstance("DES");
              // craete the symmetric key for DES
              KeyGenerator kg=KeyGenerator.getInstance("DES");
              Key key=kg.generateKey();
              // DO the ecryption steps then display the result
              c.init(Cipher.ENCRYPT_MODE, key);
              //Dofinal accepts byts only. Thats why we use getbytes method.
              byte[] cardNoBytes=cardnum.getBytes("UTF8");
              //get the encrypted bytes
              byte[] encryptedCardNoBytes=c.doFinal(cardNoBytes);
              //convert bytes to string
              String cardNoString=new String(encryptedCardNoBytes);
              } catch(Exception e){ System.out.print("Error");
              return cardNoString;
         } //end the DESEncrypt method
    public static void main (String[] args) {
    try{
         Client cl=new Client();
         String x2=cl.DESEncrypt("123");
         System.out.println("The Encrypted text using DES is: " + x2+'\n');
    } catch(Exception e){ System.out.print("Error");
    }//end main
    }

    Next time, paste in the exact, complete error message and indicate clearly exactly which line is causing it.
    Your problem is that you declare cardNoString inside the try block, but you try to return it outside. Local variables only exist in the narrowest block in which they're declared. Once you exit try, that variable does not exist.
    You also have a logical problem. If an error occurs, you're just printing out :"Error", but you're not actually handling it. You're going on as if everything is fine. Catching an exception doesn't fix the error. If you can't fix it, don't catch it.
    What do you think your method will return if an exception occurs before you set cardNoString? What do you think it will do to the caller to have some arbitrary, meaningless value returned when he thinks everything went fine and he got a valid result?

  • What means the " E " in class Vector and " T " in class Class?

    Hi world!
    I was searching in the java docs and in the source code of Java and found a syntaxis that I don't know what mean. This:
    public class Vector<E>
        extends AbstractList<E>
        implements List<E>, ...and this:
    public Vector(Collection<? extends E> c)this too:
    public final
        class Class<T> impleme...and that:
      public static Class<?> forName(String className) well you get the idea. If someone could give me where can I find information about the using of this.
    Tanks

    See the generics tutorial:
    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

  • HT201318 I upgraded my iCloud storage capacity for a higher tier and the device does not actually reflects said upgrade. How can this be resolved since my credit card was charged

    I upgraded my Icloud storage capacity to a higher tier and my Iphone does not reflect the change although my credit card was charged and the device is nor properly backup. How can this be resolved?

    It seems to take up to a couple of days for the upgrade to take hold, at least that's the experience of some users.  Give it 24 hours before contacting apple.
    For customer service issues, go here...
    https://expresslane.apple.com/Issues.action

  • Problem in ESS Build when creating the project "Import can't be resolved"

    Hi All,
    we are using ESS and MSS 600 for ERP 2005 and EP 7.0.
    Once the cms INBOX components are imported to Development, I have started my development.
    In the Build process, when I am trying to create the Project for ess/us/bank inactive DC,
    It says: "Build with warnings"
    It is showing the couple of warning in General User Output as:
    Warning: Source folder "META-INF" does not exist and will be ignored.
    WARNING: No reference entry for runtime dependency on component "ess/per" (vendor "sap.com")
    WARNING: No reference entry for runtime dependency on component "ess/xx" (vendor "sap.com")
    WARNING: No reference entry for runtime dependency on component "ess/xx/bank" (vendor "sap.com")
    WARNING: No reference entry for runtime dependency on component "pcui_gp/xssfpm" (vendor "sap.com")
    WARNING: No reference entry for runtime dependency on component "pcui_gp/xssutils" (vendor "sap.com")
    When I open the project in "Web Dynpro" perspective and look at the implementation of any View ... I see the error at import statement:
    import com.sap.xss.hr.per.us.bank.detail.wdp.IPrivateDetailView; (For Detail View)
    It says :  The import "com.sap.xss.hr.per.us.bank.detail.wdp" can't be resolved
    How should I proceed?? I verified for other components as well and getting these import error:
    I looked in the package folder and there is no folder with the name "wdp" in "com.sap.xss.hr.per.us.bank.detail"
    Can some one please help me on this. Highest points would be rewarded If i could solve the problem.
    I have followed "JDI Cook BOOK" for creating tracks and imports. In the "NWDI COOKBOOK" it also says to include "EP BUILD TOOL" apart from "DI BUILD TOOL" for the build time dependency of a component. But i couldn't find "EP BUILD TOOL" any where else, is this causing all this mess? When I look at my build time dependencies for SAP_ESS and SAP_MSS it has got :
    SAP_JEE
    SAPPCUI_GP
    SAP_BUILDT
    SAP_JTECHS
    I think this should do, Please some one help me.
    Thanks,
    Hari.

    Hi purav,
    Try closing the nwds and open it again, if problem not solved then from your .dtc try to find that file which is missing and add in bulidpath and compile.
    Thanks,
    pkv

  • The import sun.text.resources.LocaleData can't be resolved

    I'm in the process of upgrading WAS6.1 to WAS7.0
    FOr that I'm upgrading JSF1.1 to JSF 1.2. suddenly I started seeing 'The import sun.text.resources.LocaleData' can't be resolved..
    any ideas around that would be appreciated..

    Please post your question only once. Posting multiple times is rude, as it leads people to waste their time duplicating each others' answers.
    'The import sun.text.resources.LocaleData' can't be resolved..
    The import sun.text.resources.LocaleData can't be resolved

  • IIResourceFactory, IUser etc. can't be resolved in EJB???

    Hi,
    i have a EJB and want to create a new folder in my KM-Content by runtime. The problem is that the piece of code which i have to use can't be resolved in my EJB.
    Which libraries or variables should i have to insert into my project folder?
         IUser user = "sp";
         IResourceFactory factory = ResourceFactory.getInstance();
         RID rid = RID.getRID("/etc");
         IResourceContext context = new ResourceContext(user);
         IResource resource = factory.getResource(rid, context);     
    regards,
    Sharam

    Hello Stephen,
    thank you for your reply. Unfortunately it's not possible in my EJB to make an import with:
    import com.sap.security.api.jar; (Messgae->the import bc cannot be resolved)
    import bc.rf.framework_api.jar; (Message-> the import bc cannot be resolved)
    Should i insert some libraries in "Java Build Path" under "Add Variable"?
    regards,
    Sharam

  • Reg : IPrivateView ,wdContext can't be resolved

    Hi All,
    I am getting errors IPrivateView ,wdContext can't be resolved.
    I set the classpath and repaired project also.
    Plz give me the reply.It's urgent.
    Thanks
    Shirisha

    Collection col = new ArrayList();
        IPublicApp.IDummynodeElement ele = wdContext.createDummynodeElement();
        int size = wdContext.nodeFamily().size();
        for (int i = 0 ; i< size-1;i++)
             if (wdContext.nodeFamily().isSelected(i))
                  ele.setSecondaddress(wdContext.nodeFamily().getFamilyElementAt(i).getSecondaddress());
                   ele.setStreet(wdContext.nodeFamily().getFamilyElementAt(i).getStreet());
                   ele.setSubtype(wdContext.nodeFamily().getFamilyElementAt(i).getSubtype());
                   ele.setSurnameprefix(wdContext.nodeFamily().getFamilyElementAt(i).getSurnameprefix());
                   ele.setTaxnumber(wdContext.nodeFamily().getFamilyElementAt(i).getTaxnumber());
                   ele.setTaxoffice(wdContext.nodeFamily().getFamilyElementAt(i).getTaxoffice());
                   ele.setTelephonenumber(wdContext.nodeFamily().getFamilyElementAt(i).getTelephonenumber());
                   ele.setThirdaddress(wdContext.nodeFamily().getFamilyElementAt(i).getThirdaddress());
                   ele.setValidbegin(wdContext.nodeFamily().getFamilyElementAt(i).getValidbegin());
                   ele.setValidend(wdContext.nodeFamily().getFamilyElementAt(i).getValidend());
                   col.add(ele);
        wdContext.nodeDummynode().bind(col);
    and call this method in view controller(first u creat one method in component controller and write that above coading)
    one more thing i wnat to know for what ur using that code please reply

  • TNS names can't be resolved

    Hi All!
    I try to connect to a database and the error message that TNS names can't be resolved. tnsnames.ora is copied from the PC where the connection works. Only one instance of Oracle client (9.2) is installed. I tried to add a TNS names in Net Assistent. It worked and the test within the assistent was successfull. The tnsnames.ora was also adjusted. But! I don't see the service in NetManager and I can't add any service there. The NT user is a member of the administrator group. I also try to connect using SQL plus, Excel, Enterprice manager - it doesn't work. Any ideas?
    Is there any Windows service for the TNS? How it calls? I tried to check it with lsnrctl status but the command is not exist. Only client is installed on the PC.
    Thanks,
    Andrej

    If you copied it from another PC then check that you have the correct entries in sqlnet.ora
    For instance, in sqlnet.ora, if the parameter NAMES.DEFAULT_DOMAIN=yourserver_name.domain_name is not in use (commented out) and your net service name in[b] tnsnames.ora is mydb.yourserver_name.domain_name , when you try connecting with mydb as the connect string, you will get that error.
    To resolve that, you either enter the connect string as mydb.yourserver_name.domain_name or uncomment NAMES.DEFAULT_DOMAIN in sqlnet.ora(add it if it does not exist) or change the net service name intnsnames.ora to mydb

  • I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    Since it will not boot then a hardware test can't be run. You could try FireWire Target Disk Mode and if it works then access from another Mac to run tests on the new drive. You could also try installing the OS X software from the host computer. If this does not work then professional help should be considered.
    http://support.apple.com/kb/ht1661
    http://osxdaily.com/2010/04/07/how-to-boot-a-mac-in-target-disk-mode/
    http://www.macobserver.com/tmo/answers/how-to-use-target-disk-mode-to-boot-from- another-macs-hard-drive

  • What class should be imported to resolve the error

    Dear all,
    would you please tell me that what class should i import to resolve the error for PreparedStatement.
    plz mention the import statement
    Error(437,13): class PreparedStatement not found in class oracle.apps.ak.cacheoffice.server.CacheOfficeAMImpl

    import java.sql.PreparedStatement;

  • I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved.

    I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • I have set up a Time Warner email account in Mac Mail but can't send email because the Road Runner SMPT server is "offline." How can this be resolved?   ecause the Road Runner SMPT server is offline. How can I resolve this problem?

    I have set up a Time Warner email account in Mac Mail but can't send email with this account because the Road Runner SMPT server is "offline." How can this be resolved? 

    Is this any help?
    http://www.timewarnercable.com/en/residential-home/support/faqs/faqs-internet/e- mailacco/how-do-i-set-up-my-twc-mail-for-mac-osx.html
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    Outgoing ports are...
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

Maybe you are looking for

  • F4v wont load in firefox the first time.

    Hi all! Im not sure if this is the place to put this, but i have a problem. I have created a swf movie file that containes the movie playback panel & a f4v video & I have uploaded them to a subfolder on my server. The whole site has a secure connecti

  • Where to keep the jar files

    I have some common classes that I want use across the SWCV/namespaces/Mappings. What is the best place to import. 1. In Imported archives of  each name space for each swcv 2.  Create a shared name space in each SWCV and place in this swcv under impor

  • Having problems on my iPad with camera after downloading IOS7, will not change from picture to video setting

    After I downloaded IOS7 on my iPad I saw that the camera had changed to video, picture or square. It will only take a picture, I will not go to the other two settings.  Any suggestions?

  • Cannot update or install new apps on iPad 2 after IOS 6 update - Help?

    After the IOS 6 install, 15 of my apps were tagged for updates. When I tap on Update All, or on Update for an individual app nothing happens.  When I tap on Install for a new app, it turns back to Free. I've tried the suggestions listed below that I'

  • Fail to publish from Adobe Muse

    Hi all, I succesfully uploaded my site form Adobe Muse, but now it won't work anymore. When I push the publish-button I see 'load sites' and than the error 'can't load the list with data centers'. When I type my site 'engagethepeople', I see in gray