Cannot use jdk 6 function when using a blackberry project...

I use Eclipse 3.4.2 to build my Blackberry project. I create a blackberry project...So inside, I have the "net rim" blackberry library, and inside this library I have a bunch of jdk function...like java.lang, or java.io...
Before installing Eclipse, I have installed JDK 6 to work with and I'm actually trying to use those library.
When I include JDK libraries in my blackberry project, I can import everything from the JDK, BUT I cannot use any class imported with the "import" tag...
NOTE: net_rim_api.jar contains "java.lang.String" and JDK 6 also. I want to use the split() and substring() function inside the String class contained inside JDK 6, but it seems that eclipse only see the String class contained inside net_rim_api.jar...
My question is:
Why can I import my jdk objects, and can't I use the class corresponding to them?
If I create a projet a standard Java Project, and I include my blackberry library it pop me an error...
java.lang.ClassFormatError: Method <init> in class net/rim/device/api/ui/UiApplication has illegal modifiers: 0x104
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main"
Here's my code:
import java.io.IOException;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.Screen;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.RichTextField;
import net.rim.device.api.ui.component.BasicEditField;
import net.rim.device.api.ui.component.SeparatorField;
import net.rim.device.api.ui.component.ObjectListField;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.VerticalFieldManager;
import java.lang.String;
public class InfoModem extends UiApplication {
// Déclaration des propriétés
public static boolean dev = true;
public static String strHost = null;
public static String[] n_client = {"80000001","80000002","80000003"};
public static void main(String[] args) {
// Definition du host
if (dev){
strHost = "http://devshed.labaie.vdl";
} else {
strHost = "https://intranet.derytelecom.ca";
InfoModem modem = new InfoModem();
modem.enterEventDispatcher();
public InfoModem()
UiApplication uiApp = UiApplication.getUiApplication();
uiApp.pushScreen(UserInterface());
public Screen UserInterface()
//Instance de l'écran principale de l'interface
final MainScreen screen = new MainScreen();
//Déclaration des FieldManager
VerticalFieldManager fieldManagerTop = new VerticalFieldManager();
HorizontalFieldManager fieldManagerButton = new HorizontalFieldManager();;
//Instanciation des objets de l'interface
RichTextField Title = new RichTextField("Interrogation de modem");
RichTextField lblNumeroModem = new RichTextField("Inscrire le numéro du modem");
final BasicEditField txtModem = new BasicEditField();
final RichTextField lblResultat = new RichTextField();
ButtonField btnRechercher = new ButtonField("Rechercher");
// Listener du bouton Rechercher
FieldChangeListener listener = new FieldChangeListener() {
public void fieldChanged(Field field, int context)
Http.strUrl = strHost + "/php-bin/blackberry/test.php?action=search&n_client=80000001";
try {
Http.GetRequest(Http.strUrl);
} catch (IOException e) {
e.printStackTrace();
if (Http.strHttpData != null)
final String data = Http.strHttpData;
System.out.println(data);
final ObjectListField liste = new ObjectListField()
protected boolean navigationClick(int status, int time)
lblResultat.setText(n_client[this.getSelectedIndex()]);
return true;
liste.set(n_client);
screen.add(liste);
//Assignation du listener au bouton Rechercher
btnRechercher.setChangeListener(listener);
//Ajout du titre de la page
screen.setTitle(Title);
//Ajout des Fields dans le FieldManager
fieldManagerTop.add(lblNumeroModem);
fieldManagerTop.add(new SeparatorField());
fieldManagerTop.add(txtModem);
fieldManagerTop.add(new SeparatorField());
fieldManagerTop.add(lblResultat);
fieldManagerButton.add(btnRechercher);
//Chargement des FieldManager sur l'écran
screen.add(fieldManagerTop);
screen.add(fieldManagerButton);
return screen;
All I want is to use java.lang.String with its split() and substring() function which are not inside the blackberry java.lang.String library...
any idea?

The function module has only one input parameter, which should be a string with length less than 256. (I tried many predefined data element like RPLM_STRING, but when I tried to add the function module as a method of BAPI, the SAP always gave me the error: data type xxxxx cannot be used for methods)
It only has one output parameter: RETURN (associated type: BAPIRETURN)
I am really not familiar with ABAP program, let alone BAPIs. Any suggestions would be very helpful to me. I sincerely appreciate your help.
Bing

Similar Messages

  • Cannot log in using my blackberry id i cannot use my blackberry applicatio​n world and blackberry protect

    help anyone, i cannot use my blackberry application world and blackberry protect, i cannot log in to my blackberry curve 8900 using my blackberry id. help please.....

    Hi ozzy912 and welcome to the BlackBerry Support Community Forums!
    Can you send me your BlackBerry PIN and the BlackBerry ID via Private Message?  I can see if they are associated.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Cannot use my blackberry messenger

    i have a brand new unlocked blackberry torch but for some reason i cannot use my bbm or any of the services associated with it. i contacted my carrier and everything that is suppose to be done is, but i still cannot use the bbm 

    Well that's quite sad indeed...TM is usually so much more helpful than that. Did they not even offer to escalate up to RIM since TM could not handle it? That's, after, what they are supposed to do...
    Then again...did you not obtain this BB from TM? Does the TM network natively support this model of BB? Read on...
    Any BB can be used on any carrier that runs the same radio frequencies that the BB is capable of (and I've no idea if your's are such). But, to bring a BB onto a carrier network that they did not sell to you, there are several hurdles to cross:
    1) The carrier must say "yes" to the fact...they own their network and have every right to say what devices will be allowed to connect to it. If they say "no", then that's the end of it.
    2) You must be sure that your BB is properly unlocked from it's originally manufactured-for carrier...see this helpful thread for details:
    http://supportforums.blackberry.com/t5/General-BlackBerry-Functions-and/Unlocking-your-BlackBerry-Gu...
    3) You must get all of your voice level services functioning on the carrier, before you even try anything about data
    4) You must subscribe, from the carrier, to an adequate data plan to enable the BB-proprietary services you desire
    5a) If the carrier directly supports your specific model BB, then you can proceed with registering the BB onto their network, generating the proper Service Book delivery to your BB, and proceeding to function.
    5b) But, if the carrier does not directly support your specific model number of BB, then the challenges are much greater as most carrier systems will not deliver, to the BB, the necessary service books to enable the BB-proprietary data services, even if you do subscribe to them.
    So, depending on all of that, your BB may or may not ever fully function on that carrier network. It can be quite tricky to accomplish, especially if 5b applies. So take a look at all of that and decide how you wish to proceed. Most folks wind up just buying a new BB if 5b applies.
    Alternatively, this might work for you:
    http://www.blackberryforums.com/general-9500-series-discussion-storm/180267-unlocked-storm-t-t-mobil...
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My Blackberry Torch 9800 PIN cannot Used for Blackberry Internet Service, please help me

    I want to ask about my device can not use the Blackberry Internet Service ( BIS )
    Device : Blackberry Torch 9800
    Removed personal information to comply withCommunity GuidelinesandTerms and Conditions of Use.
    can the RIM resolve this problem?
    Help me Please

    May I know where and how did you buy this phone?
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Why do my rollover buttons quit working when I burn my project to a DVD?

    Hi
    I have a reel of my work built and everything functions when I simulate the project in DVD Studio Pro. However, when I burn the project to a DVD, my rollover buttons no longer work )and the quality of my work (menus, images, and videos) becomes very poor. I created my layered rollover buttons and menus using Photoshop. How can I resolve these issues?
    Thanks

    Welcome to the discussions... Eric has the answer for you - you won't get a rollover effect when you use photoshop layer based menus because of the way that these become a series of different menus when the disc is built. You most certainly can get rollover effects if you use a standard overlay menu type.
    The reasons for using a layer menu are largely confined to situations where you absolutely must reveal some contextual information when a user selects a button, and where this information must use a common area of the menu to all of the other buttons that do this. In all other situations avoid using them if you can, as they are so limited, offer slow playback to the end user, need more than one mouse click to activate a button and don't support audio or video backgrounds.
    Use a standard overlay and you won't have these issues.

  • My notification center (windows 7 64 bit) disappear from time to time, any idea? (When it disappears, I cannot use the special keyboard functions like sound...

    My notification center (windows 7 64 bit) disappear from time to time, any idea?
    When it disappears, I cannot use the special keyboard functions like sound,brightness...
    Thanks!

    How is Acrobat 8 not fully Windows 7 compatible?  I see discussions on this Adobe Community saying how Acrobat 8 does work on Windows 7 and with 64-bit.  It appears that if Acrobat 8 is updated to the latest version, then this should fix AA8-Win7 issues.  And I am at the latest AA8 version, 8.3.1. 
    And how are Acrobat 8 and Reader XI are not compatible?  I have always had Acrobat and Reader installed on the same PC, without ever having any issues.  And Adobe allows the installation of one after the other.  So apparently Adobe allows them both to exist together.  If they are incompatible, then why would Adobe allow them to exist together? 
    Anyway, I did uninstall the FileOpen Plug-in and the Reader XI, then reinstalled the FileOpen Plug-in.  So now Reader is not installed and only Acrobat 8 is installed.  I then tried to load the PDF file, but I still get the Acrobat 8 error described above. 

  • Cannot use the undo function

    I just loaded Final Cut Pro onto a new computer and I cannot use the undo/redo function keys. Is there a problem with the software or do I have a setting set incorrectly.
    When I go under edit, both undo and redo are grey so I cannot use. I also cannot use the short cut key.

    Undo/Redo is command and Z. Are you using a different keyboard layout than US English?
    You can set the number of undos from the menu bar: Final Cut Pro > User Preferences > General.
    This functionality is dependent on how much RAM is installed in your computer - setting a higher number of steps backwards will use more. How much do you have installed?
    Undo/Redo is only available after you have done something to the media in FCP. It is not saved in your project file. Closing a FCP project will lose any saved undo steps, although you can still use one of the Auto-saves of your project file to go back.

  • I am extremely upset. I purchased my iPad in SA and I am traveling in Greece. When I want to make use of the free apps, I get a message that the app is not available in the SA store. What is the point of having an iPad if you cannot use it worldwide?

    I am extremely upset. I purchased my iPad in SA and now I am in Greece. I cannot download free apps as I get a message that the apps are not available in the SA store and only in US stores. When I change to the US store the same thing happens. What is the point of having an iPad if I cannot use it worldwide??? I feel that I wasted my money purchasing it as I specifically purchased it to use when I travel. How can I get access to all the available apps and why are they restricted.

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    Although your message isn't mentioned in the symptoms, let's try the following document with that one:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • HT5621 I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    Try here
    http://support.apple.com/kb/HT1311
    when you have UK Cards etc best to change as well

  • HT1665 There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    I have always found spell check to be "buggy" in every version of all of the iOS's that I have run on my original model iPad and my new iPad - especially when replying and typing posts in these forums. It works perfectly in every other application on my iPad but it has never worked perfectly in any web browser that I have used on my iPad - no matter what I have done to try to correct it. That is what MY experience has been with spell check on my iPads.
    As for the crashes on your iPad try these basic troubleshooting steps.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Greater than Equal to Functionality when retirivng data from SSAS 2008 cube using SSRS 2012 report not working

    I have an SSRS 2012 report and SSAS Cube in 2008. My report criterion requires filtering on measures. So Created measures as dimensions . The report requires >= functionality on the measures. But in the Query designer of 
    the report there is =, IN, Within Range ,Excluding range , MDX as the operators.
    To achieve my goal. I have “From” and “To” as parameters on the numeric dimension. The “To” parameter I have set as internal and setting
     the default value of  “TO” .By writing another Dataset query that returns the “MAX” 
    value and the MAX value returned is a member of the measure converted to dim I confirmed.. So this whole works as >=.The user enters only the “FROM” parameter and the “TO” is set internally. The user can enter any value in the “From” parameter. Any
    value that is not even a member.It is a textbox. I cannot use a list of values from the “From” parameter.
    But whenever I run the report after entering all the selection criteria
     I keep getting
    Error “the restrictions imposed by the constrained flag in the strtomember functions were violated”
    I know this means that Max value in the “TO” section is not a member .
    I did try
    : StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].
    &[" & @ToFactRCSCVBLASTAPPRLIMITACH &
    "]", CONSTRAINED) )
     But I get “syntax for the “&” is incorrect”
    If I use Drop down for the “From” and “To” parameters then it works fine. But that’s not what Business Users need.
    Please let me know what the options to make this work. I did use parameters that filter the
     Dataset returned it works fine but there is a performance impact.

    Hi,
    I think if you use the following method you will be able to compare the members.
    CDbl(StrToMember("[Fact RCS CV BLAST].[APPRLIMIT ACH].&[" + @ToFactRCSCVBLASTAPPRLIMITACH + "]").Member_Name)
    As you mentioned that you converted your measures as dimensions, you are having an integer value as the member name. In that case use VBA functions with MDX to do the datatype conversion.
    Take a look into the following MDX written against Adventure Works;
    WITH CALCULATED MEMBER [Measures].[Member Name] AS
    CInt
    Right
    CStr
    [Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME
    ), 4
    SELECT {[Measures].[Sales Amount], [Measures].[Member Name]} ON COLUMNS,
    FILTER
    [Date].[Calendar Year].[Calendar Year].MEMBERS,
    CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) >= 2005 AND
    CInt(Right(CStr([Date].[Calendar Year].CURRENTMEMBER.MEMBER_NAME), 4)) <=2008
    } ON ROWS
    FROM [Adventure Works]
    I am filtering the Years by using the member names by extracting the Integer portion of the member name and applying data type conversion functions in VBA. So I 
    Keep in mind that you have to get rid of the CONSTRAINED clause if your business users can enter anything on the SSRS text box. 

  • When I plug in my iPod, a little window pops up on iTunes stating that I cannot use the iPod cannot be used because the apple mobile device service is not started. What do I do?

    When I plug in my iPod, a little window pops up on iTunes stating that I cannot use the iPod cannot be used because the apple mobile device service is not started. What do I do?

    See Here...
    AMDS for Mac  >  http://support.apple.com/kb/ht1747
    AMDS for Windows  >  http://support.apple.com/kb/TS1567

  • HT204302 i get a message when I plug in my ipod to my laptop saying "cannot use this ipod because apple mobile device is not started" can any one help me with this...I have never had this happen before

    Hello anyone
    I get a message when i plug in my ipod touch saying "cannot use this ipod because apple mobile service is not started" can anyone please help me with this problem...I had this message once before but I forgot how to correct it

    From the More Like This section on the right:
    I get error message when I plug in iPhone 4s saying "This iPhone cannot be used because the Apple Mobile Device service is not started"
    can't get my ipod to connect to tunes error message "cannot be used because the apple mobile device service is not started"  fixes? Using Win XP
    im trying to connect my ipod to itunes and its saying it cannot connect because the "Apple Mobile Device is not started" help
    Or see: iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

Maybe you are looking for

  • A/R invoice and A/R downpayment invoice numbering

    Dear Expert My client would like the numbering of A/R down payment invoice and A/R invoice fall into the same sequence to fulfill business needs. i.e. After issued of an A/R down payment invoice (e.g. no. 30), then when issue an A/R Invoice, the docu

  • The  vendor code is not coming against some Assignment line items with the

    Hi All, While executing  t.code FBL3N,the  vendor code is not coming against some Assignment line items with the GL A/C4607000, some line items it is coming. The GL A/c 4607000 is GR/IR clearing a/c. Please let us know  why this situation is happeing

  • JSlider

    Hello i have my JSlider workds fine i want have it fill the Track when it slides i tryed         slrSound = new JSlider(JSlider.VERTICAL,0,100,100);         slrSound.setMajorTickSpacing(10);         slrSound.setMinorTickSpacing(2);         slrSound.s

  • Exported Interdemia Text Inedxed data from 8.1.7 to 8.1.6

    Hi all I get something interesting problem....I setup Intermedia Text on my DB1 running Oracle 8.1.6, index setup well and query works well. For some reason, I exported some Intermedia Text indexed data from aonther DB2 (8.1.7) and import to the one

  • WebLogic Users in OBIEE 11g

    Currently connecting to MSAD I am seeing a limit of 1000 users in WebLogic, however I have about 2500 users in my directory structure. Because I only see 1000 when I try and add a user to a Role in the Admin console and do a search for their name it