Urgent help in porting kvm with KNI and cygwin..

I am using kvm with cldc 1.0.4 and midp 2.0. And for using KNI I need to recompile whole of the KVM again after including the native code. I am doing this right now at windows 2000 platform, I can rebuild KVM using make %KVM_ROOT%\build\win32\and get no errors
But when I follow "KNI Programming Overview" in "KNI Specification",
I add(copy) the native method and Java code from "KNI Programming Overview" to the directoris which is
${KVM_ROOT}/kvm/VmUnix/src/Java_mypackage_HelloWorld.c
${KVM_ROOT}/api/src/mypackage/HelloWorld.java
then I type
C:\J2ME\CLDC\kvm\VmWin\build>kvm_j -classpath c:\j2me\cldc\api\src mypackage.HelloWorld
ALERT: Native method 'mypackage/HelloWorld::sayHello' not found
Anyone has experience on it? I totaly follow the Sun's KNI Specification but I can't get a correct output. What else thing I need to know that don't specify in the documents. What reason make this? I never rebuild (make ) my KVM correctly or any envirnoment need to be set
thanks in advanced
Eric

i tried the same like following with linux in linux respective directories
Before rebuilding the KVM, I modify the makefile (in ${KVM_ROOT}/kvm/VmWin/build/) by adding "Java_mypackage_HelloWorld.c" at the end of "SCRFILES = ..."
As I use Windows 2000 platform, I place my files like that :
${KVM_ROOT}/kvm/VmWin/src/Java_mypackage_HelloWorld.c
${KVM_ROOT}/api/src/mypackage/HelloWorld.java
then I type : "make USE_KNI = true" (in %KVM_ROOT%/kvm/VmWin/build/)
and finally :
${KVM_ROOT}/kvm/VmWin/build/kvm -classpath ${KVM_ROOT}/api/classes mypackage.HelloWorld
when i build make file
make USE_KNI=true
Recursively making ../../tools/preverifier/build/linux all...make[1]: Entering directory `/home/vinod/j2me_cldc/tools/preverifier/build/linux'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vinod/j2me_cldc/tools/preverifier/build/linux'
<<<Finished Recursively making ../../tools/preverifier/build/linux all.
Recursively making ../../api all...make[1]: Entering directory `/home/vinod/j2me_cldc/api'
make[1]: Leaving directory `/home/vinod/j2me_cldc/api'
<<<Finished Recursively making ../../api all.
Recursively making ../../tools/jcc all...make[1]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[2]: Entering directory `/home/vinod/j2me_cldc/api'
make[2]: Leaving directory `/home/vinod/j2me_cldc/api'
... classes.zip
make[2]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[2]: `nativeFunctionTableUnix.c' is up to date.
make[2]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
make[2]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[2]: `ROMjavaUnix.c' is up to date.
make[2]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
make[1]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
<<<Finished Recursively making ../../tools/jcc all.
Recursively making ../../kvm/VmUnix/build all...make[1]: Entering directory `/home/vinod/j2me_cldc/kvm/VmUnix/build'
make[2]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[3]: Entering directory `/home/vinod/j2me_cldc/api'
make[3]: Leaving directory `/home/vinod/j2me_cldc/api'
... classes.zip
make[3]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[3]: `nativeFunctionTableUnix.c' is up to date.
make[3]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
make[3]: Entering directory `/home/vinod/j2me_cldc/tools/jcc'
make[3]: `ROMjavaUnix.c' is up to date.
make[3]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
make[2]: Leaving directory `/home/vinod/j2me_cldc/tools/jcc'
... obj/Java_mypackage_HelloWorld.o
... obj/kni.o
../../../kvm/VmCommon/src/kni.c: In function `KNI_NewString':
../../../kvm/VmCommon/src/kni.c:784: warning: dereferencing type-punned pointer will break strict-aliasing rules
Linking ... kvm
collect2: ld returned 1 exit status
make[1]: *** [kvm] Error 1
make[1]: Leaving directory `/home/vinod/j2me_cldc/kvm/VmUnix/build'
make: *** [all] Error 1
i am getting error like that always.....
[root@dhcp189 linux]# kvm -classpath ${KVM_ROOT}/api/classes mypackage.HelloWorl d
ALERT: Native method 'mypackage/HelloWorld::sayHello' not found
could anyone help me
thanks
Vinod

Similar Messages

  • Help in porting kvm with kni and Fedora.

    Hi, I am trying to use KNI with cldc 1.0.4. on Fedora Core 4. I get the following alert while trying out the HelloWorld example included in the KNI Programming guide:
    ALERT: Native method 'mypackage/HelloWorld::sayHello' not found
    The KVM recompiles again after including the native code, but I get lots of warnings in the ROMjavaUnx.c file:
    warning: dereferencing type-punned pointer wll break strict aliasing rules.
    what do these warnings mean?
    I copy the native method and Java code from "KNI Programming Overview" to the following directories: ${KVM_ROOT}/kvm/VmUnix/src/Java_mypackage_HelloWorld.c
    ${KVM_ROOT}/api/src/mypackage/HelloWorld.java
    to execute the java class i type :
    [root@localhost j2me_cldc] bin/linux/kvm_j -classpath api/classes mypackage.HelloWorld
    & i get the alert:
    ALERT: Native method 'mypackage/HelloWorld::sayHello' not found
    however both the nativeFunctionTableUnix.c and ROMjavaUnix.c have the corresponding HelloWorld references, and the HelloWorld object file is present in the j2me_cldc/kvm/VmUnix/build/obj directory.
    Can someone tell me whats going wrong here? Do I need to specify or modify something else? kindly help!
    thanks in advance
    alisha

    I have the same problem of you, if you have resolved it, can you tellme how?????????

  • KVM with mini and out of box problem

    #1 Just bought a refurbed mini, want to share kvm as I have in the past with a wintel laptop.
    Anyone using a kvm controller with their mini? I've got a iogear with my existing wireless k/m and the mini doesn't like it very much. Sporadic mouse movements, and weird mouse type clicks happening when moving around menus(such as right click result on screen when hand isn't near the button).
    I went to a wired mouse for a test as the kvm had a separate usb port for kybd and mouse...that hasn't completely solved the problem.
    #2 I've got a 2nd problem which may be causing the keyboard issues. I unboxed my mini, started it and when prompted hooked up my old g4 mac as a target disk unit. The mini flawlessly transferred over all my email, programs, icon's, etc in a little under 2 hours. Rebooted and logged right in to my old environment! Very impressive. Patched it after that and it rebooted fine.
    The other night, I turned it on, and the screen resolution was changed. Didnt think much of it thinking the kvm may be messing with it.
    Two nights ago I checked my mail and walked away for a while..upon my return it locked. Held pwr key in until it shutdown and went to bed. Last night I turned it on, got the "Osx has recovered.." message. Cleared that and as soon as I opened mail it crashed again(getting the your computer has encountered a problem black box error..). Restarted tried my IM client...crash.... reboot, try firefox...crash.
    I haven't tried booting and repairing disk permissions yet. Any other thoughts?
    thanks

    I use a TrendNet KVM with my Mini and PC.
    Empirically I've concluded that a wireless mouse is not a good idea with this setup; I use a wired USB mouse now.
    I had to try a couple of KVM brands before I found a good fit. Even so, occasionally I get a key repeat from a single key press, but otherwise everything is fine.
    My experience has been that any kind of PS/2->USB adapter used with a KVM is a bad idea. The fewer converters the better.
    I'd recommend not using the KVM until you get your other issues with the Mini sorted out.
    It is possible that migrating your settings from other Mac is causing some of your problems.

  • Need help for Flash quiz with score and timer

    Greetings, I need to urgently create a flash
    game with 10 questions, 3 answers per question. At the end of the
    quiz I need to get the time the quiz was completed for, what answers the player answered correctly and the time its completed into a database, + a couple of fields like name and phone that the user fills also needed to be added into db with the score and time. I need it by the end of tomorrow and I do realise i dont have the knowledge to make it, So if there is anyone that wishes to help or trade services I can give you back the favour by creating some html/css/web design content for you. Thanks in advance and please excuse me for my terrible english.

    download flash cs6 and use it to publish your ad or expand flash cc's publishing capabilites.  if you have a flash cc subscription you can download and use flash cs6 after logging into your cc acount.
    here's how to expand publishing capabilites of flash cc: http://forums.adobe.com/message/5511080#5511080#5511080

  • Urgent help needed!! Layout table and Draw layout cell dissapeared.

    I need some urgent help. I'm using CS3 but for a while my
    Layout Table and Draw Layout Cell icons appear greyed and can't use
    them at all. Is there any kind soul out there who knows how to fix
    this? I'm going nuts trying all the possible options but none seem
    to work.
    Help please!!!!!!

    > How would you about designing a page without using html?
    You don't. But I don't recall suggesting that you not use
    HTML. I just
    suggested that you use best-practice HTML, no? Or maybe you
    meant to ask
    how you would go about building your site without learning
    HTML? In that
    case, I think you are outta luck. Using DW without knowing
    HTML is a very
    punishing experience, I'm afraid.
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    I'd prefer Cristal, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Untersberg" <[email protected]> wrote in
    message
    news:g4tj9a$m5o$[email protected]..
    > Ahhhhhh!!!!! They came up!!!! They came up again!!
    > I was on standard mode. Now going back to your
    suggestion, which I really
    > appreciate. How would you about designing a page without
    using html? I'm
    > just
    > redesigning my website at the moment and need it to get
    going urgently,
    > hence
    > the reluctance to start learning HTML at the moment.
    I'll do after but I
    > need
    > to get this up and running fairly quickly.
    >
    > Cheers.
    >
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    >

  • Need Urgent Help. ORA-12500 with no reason

    I need urgent help.
    I have 8.1.7.2.1 on Win2K.
    I get ORA-12500 error when trying to connect oracle instance. This problem begin to arise only when number of sessions reach a number about 200. At the same time there is no definite boundary for it. Once it happened when there were 216 session, then 196, then 206.
    There rarely (1/100) I get ORA-12514 and after again ORA-12500. Once I got ORA-12600.
    What it might be you think? It can't be a problem in listener.ora or in tnsnames.ora because it works fine if number of sessions is about 100. It tried to restart tnslistener (from lsnrctl and the service) and restarted database (but not the service). I did it different in sequences, but didn't help. What should I do? Is it a known bug?

    I need urgent help.
    I have 8.1.7.2.1 on Win2K.
    I get ORA-12500 error when trying to connect oracle instance. This problem begin to arise only when number of sessions reach a number about 200. At the same time there is no definite boundary for it. Once it happened when there were 216 session, then 196, then 206.
    There rarely (1/100) I get ORA-12514 and after again ORA-12500. Once I got ORA-12600.
    What it might be you think? It can't be a problem in listener.ora or in tnsnames.ora because it works fine if number of sessions is about 100. It tried to restart tnslistener (from lsnrctl and the service) and restarted database (but not the service). I did it different in sequences, but didn't help. What should I do? Is it a known bug? bash-2.03$ oerr ora 12500
    12500, 00000, "TNS:listener failed to start a dedicated server process"
    // *Cause:  The process of starting up a dedicated server process failed.
    // The executable could not be found or the environment may be set up
    // incorrectly.
    // *Action: Turn on tracing at the ADMIN level and reexecute the operation.
    // Verify that the ORACLE Server executable is present and has execute
    // permissions enabled. Ensure that the ORACLE environment is specified
    // correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being
    // called may not be installed on the local hard drive. Please check that
    // the correct Protocol Adapter are successfully linked.
    // If error persists, contact Oracle Customer Support.
    There is not enough info to go on but the problem seems to be either in the listener.ora
    or tnsnames.ora. Did you make any changes before this started occurring?
    William

  • KVM with DVI and mini DP compatibility? old and new mac pro to one monitor?

    i need to buy one of these to replace a belkin model that i think may have failed (either that or it is my video card) and i just started to wonder if i should spend the money on a KVM switch instead. basically i am buying this converter to TEST if my current adapter is not working.
    http://www.kanex.com/c247dl
    i am assuming that getting a KVM switch will be able to test this in the same manner but also give me the added option of /switching/ between my 2006 and the newer 2012 model.
    i am having a bit of a hard time navigating the IO gear website and my terminology searching may not be optimal either. can anyone help me with this please? presumably i need a "mini DP and DVI KVM switch"?
    THANKS

    OK. so for an extra hundred dollars (compared to buying a converter) i can get this 5770 video card that has two mini DP ports and which will be compatible with my cinema display is that right? then i am guessing i can buy a mini DP KVM switch if i decide to keep the computer (assuming it solves the video problem). does that sound about right?
    Apple-firmware 5770 1GB, about US$250** works near full speed in every model Mac Pro, Drivers in 10.6.5. (discontinued)
    http://www.everymac.com/systems/apple/mac_pro/faq/mac-pro-default-graphics-cards -dvi-dual-link-mini-displayport.html
    Mid-2010
    ATI Radeon HD 5770
    1 GB GDDR5
    2 Mini DP
    1 DL DVI
    Mid-2012
    ATI Radeon HD 5770
    1 GB GDDR5
    2 Mini DP
    1 DL DVI

  • Port forwarding with e4200 and 660 embarq modem

    Hello, I have a e4200 router, And a 660 series modem, I'm trying to portforward for a game called minecraft, I cannot seem to get the ports to open, I've called Century link they told me to put my modem in to bridge mode, So I did they said my IP should be public not private now, It is still private, What Am I doing wrong.
    Solved!
    Go to Solution.

     It is necessary to set your modem to FULL BRIDGED MODE so that your router will be able to handle all of your Internet traffic and to avoid conflicts with your ports. You can check for the status of the IP address on the router web interface. Here are the steps:
    A] With the help of Cisco Connect Software (if at all you have installed the router with the help of this software)
    1] Open the software and go to the option which says "Router Settings"
    2] Then click on the option which says "'Advanced Settings" which will take you to the router's configuration page.
    3] Click on the Status tab look for the Internet IP address that should be public ip address.
    You can do some more settings as well on the router.
    4] Click on setup tab and change the MTU into Manual and enter 1365 for the Size.
    5] Click the security tab and uncheck 'Filter Anonymous Internet Requests'.
    B] If you haven't installed Cisco Connect then you can log on to the router's user interface using it's default IP address in the browser which is 192.168.1.1 and type in 'admin' as the password leaving the username field blank. This will take you to the router's web interface and then follow steps as mentioned above to make the changes.
    After doing the following settings then check the connectivity...

  • Urgent Help, Thanks to any with advice... (capturing HDV)

    Hello, my name is Justin. I am under the gun and have to turn in my final movie project this week. I have footage on my Canon XH A1, shot in HDV, 24F. When I capture to Final Cut Express 3.5, my footage is slightly fast. My audio is in real time but my footage is at about 115% percent. Needless to say this will not do. I tried all 3 HDV easy set up codecs. Help?
    Thanks for any advice...

    Hi Justin
    How were you capturing the video, off the same camera you shot on. Problems occur if you you shot on a panasonic and capture off a sony as an example. Shoot and capture off the same an you should not have a problem.
    A 2nd solution send the clip to the time line unlink the video and audio and slow down the video 1 or 2 percent at a time until there is a sync up. Might not work, but when in a bind any port in a storm!!
    I shoot HDV as FCE3.5 allows me to capture the whole tape and it creates clips were as this would not be so with sd. The Sony HVRA1 has guides for on the flipout screen and the viewfinder.
    Let me know if you come right!!
    Justin..Durban..South Africa

  • HELP!!  Issues with iTunes and Windows 8.1.

    So I recently upgraded to a new laptop with Windows 8.1 and I have been experiencing some issues that I need assistance with. So far the issues I need help with are:
    When I try to get album artwork for my songs, it gets through a small fraction then just kind of freezes.I have a lot of songs and albums but I have never had this problem before.
    When I try to connect to the iTunes store, it takes quite awhile and then I am left with either a blank screen or album/song/etc. names and no pictures.And when I click on another link, it takes forever (again) and I experience the same issue while trying to travel to the new page.
    I don't know what else to do and I can't figure out a solution. Please help me!!!

    Hello RavensFan94
    For both your issues, it sounds like you are having a hard time connecting to the iTunes Store to get album artwork and viewing content. Check out the article below for some troubleshooting options to get it working again.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Regards,
    -Norm G.

  • Urgent help needed in creating customer ship_to and bill_to site id

    Hi,
    I am using an api to create customer ship_to and bill_to address, in Oracle OM R12 but the api does not return values. I am including the code so any suggestion will be helpful.
    declare
    l_num_billing_site_use NUMBER;
    l_num_cust_site_id NUMBER;
    l_rec_cust_site_use apps.Hz_Cust_Account_Site_V2pub.CUST_SITE_USE_REC_TYPE;
    l_rec_customer_profile apps.Hz_Customer_Profile_V2pub.CUSTOMER_PROFILE_REC_TYPE;
    l_chr_retcode VARCHAR2(20);
    l_chr_errbuf VARCHAR2(200);
    l_num_count NUMBER;
    begin
    -- fnd_global.apps_initialize (1885, 21623, 660); -- user id, --resp_id (OM Super User), appl_id
    -- mo_global.init ('AR');
    -- mo_global.set_policy_context ('S', 511);
    l_rec_cust_site_use.site_use_code := 'BILL_TO';
    l_rec_cust_site_use.cust_acct_site_id := 24919;
    l_rec_cust_site_use.primary_flag := 'N';
    l_rec_cust_site_use.created_by_module := 'CONVERSION'; -- Change
    BEGIN
    apps.Hz_Cust_Account_Site_V2pub.create_cust_site_use( p_init_msg_list => FND_API.G_FALSE
    , p_cust_site_use_rec => l_rec_cust_site_use
    , p_customer_profile_rec => NULL --l_rec_customer_profile
    , p_create_profile => FND_API.G_FALSE
    , p_create_profile_amt => FND_API.G_FALSE
    , x_site_use_id => l_num_billing_site_use
    , x_return_status => l_chr_retcode
    , x_msg_count => l_num_count
    , x_msg_data => l_chr_errbuf);
    EXCEPTION
    WHEN OTHERS THEN
    FND_FILE.PUT_LINE(FND_FILE.LOG,' Unexpected error creating customer site for Cust Site Id ' || l_num_cust_site_id || ' due to: ' || SQLERRM);
    END;
    dbms_output.put_line('cust_site_use:'||l_num_billing_site_use);
    end;
    Thanks,
    Srinivas
    Edited by: user2138419 on Feb 14, 2010 4:46 PM

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • Urgent Help - Server Process stop with Error Code -11113

    Hi All,
    I need help urgently,
    I have installed EP 7.0 on Win 2003, when i restarted the server,
    server process in MMC,  server0 stop with Exitcode -11113
    Anybody have any idea about this
    Thanks
    Sachin

    Sachin,
    Refer to the threads below.
    j2ee stopped exitcode -11113
    Server0 fails JLaunchIExitJava: exit hook is called (rc=-11113)
    Exitcode -11113
    Also,take a look at the SAP NOTE : 810434
    Hope it helps resolve your issue.
    Cheers,
    Sandeep
    p.s Consider rewarding for handy posts!

  • PLEASE HELP!  Quicktime Pro with iMovie and .MPG Files

    Hello. Please help me. I'm on a G5. 10.5.3. iMovie 7.1.2 (577) I have a series of .MPG files that I need to import into iMovie to edit, arrange and then export over to iDVD, etc. iMovie does not see the .MPG files. The Apple site states that iMovie sees only MPEG-4 files and DV files. I also own Quicktime Pro 7.5 (149.5). When I open the .MPG file in Quicktime Pro, even though the file plays perfectly, when I select "Export to MPEG-4" so I can create a readable file by iMovie, I get an error message that say's "Failed: Export process terminated unexpectedly (10). Complete frustration. Is there another way I can convert these files so iMovie can see them? What's wrong with my Quicktime Pro? I bought DivX Pro last night. I thought maybe that program would make an iMovie readable file. No luck. I used DivX to convert and it created a DivX file with NO SOUND. Wasted money.
    If anyone has any solutions for my problems noted here or possible alternatives so I can achieve what I'm trying to do successfully, PLEASE ADVISE as soon as possible.
    Thank you for taking the time to read this and THANKS, in advance, for your help.

    You'll get a ton of ideas from others so, by no means, don't think that mine will solve your issue. I, personally have fallen in love with [StreamClip|http://www.squared5.com>. It does a ton of stuff.
    As for your Error 10, hopefully that's just an "out of space" (on your drive) error and not an I/O error (a problem with the drive reading/writing)
    But, you said you have Quicktime Pro and you're going to iMovie so I'd try to make your .MPG files a DV Stream...I think that's what I movie likes.
    Anyway try that,
    Tom
    ----- !http://hockeynarrative.files.wordpress.com/2007/09/sharkslogo.gif!

  • Help -- Who has experience with ant and build.xml files ?

    Hi,
    I think my build.xml file is missing setting a classpath I need, but I have never played around with a build.xml file. Could someone help ?
    Thank you.
    Grazia

    A lot of people here use ant. But not all of us can read your mind, and those of us that can are sadistic bastards that like to force people to provide details of their problems just for the hell of it.
    So please do the following:
    * Go through an ant tutorial or other introductory docs, doing an example or two if present.
    * Set up your build.xml according to what you've learned.
    * If it still doesn't work, post the relevant portions of it (hopefully you'll have a small, representative sample that reproduces the problem), along with your relevant directory and file structure, the command you're running, and what error messages you're getting.

  • Urgent Help Needed - Associating Statistics with User-Defined Functions

    Hello,
    We have an appication uses cost-based optimizer and uses a lot of TO_DATE and SYSDATE calls in FROM and WHERE clauses. For certain reasons, every call to TO_DATE and SYSDATE has been replaced by MY_TO_DATE and MY_SYSDATE respectively (which in turn call built-in functions). However, cost based optimizer is behaving strangely, which is understanble, based on the lack of user-defined functions statistics. I am under the impression that I should use something like:
    ASSOCIATE STATISTICS WITH FUNCTIONS my_to_date DEFAULT SELECTIVITY ?;
    ASSOCIATE STATISTICS WITH FUNCTIONS my_to_date COST (?,?,?);
    ASSOCIATE STATISTICS WITH FUNCTIONS my_sysdate DEFAULT SELECTIVITY ?;
    ASSOCIATE STATISTICS WITH FUNCTIONS my_sysdate COST (?,?,?);
    but what should the values (?) be?. I guess I want to replicate TO_DATE and SYSDATE values, but how would I find out what they are? Thanks in advance...
    P.S. I am also looking for workarounds (I cannot create a synonym for TO_DATE right?), so any help is welcome!!!

    Hi emmalou69 ,
    You told your actual parameter is
    5, 5, 7.3 and 'z'
    so change your method like
    public static int test(int x, int y, double d, char ch)
    because 5 - int; 7.3- float or double; z is char.
    your method returns
    public static int.
    so you should return only int variable. but in your code you mentioned double. it's not correct.
    The original code should look like
    public class rubbish
         public static void main(String args[]){
              rubbish f = new rubbish();
              f.test(5, 5, 7.3 ,'z');
         public static int test(int x, int y, double d, char ch)
              int value;
              x = 5;
              y = 5;
              d= 7.3;
              ch = 'z';
              value =((int) d + x + y + ch);
              System.out.println( x + ch + d + y);
              return value;
    }//here int value of z is 122.
    and int(7.3) is 7
    so 7+5+5+122 = 139.3
    but value =((int) d + x + y + ch); returns 139. because you convert double to int that is 7.3 to 7
    If it is useful, rate me duke dollars,
    Thanks

Maybe you are looking for

  • Error in updating the DB

    Hi, I was trying to update DB statistics for a cube. It failed for the second time with the following error. ABAP/4 Processor:SYSTEM_CANCELLED. Can any body has an idea in this?How to fix this problem. Thanks Manish.

  • SimpeDateFormat and parse method

    hi Friends, i am using the sdf.parse(string) method,if the user enters a 2-digit year,the parser throws no exception but my database do as it understands only a 4 digit year,how to cope up with this...how to tell the parser to reconize only 4-digit y

  • Default Procurement Type for a Material Type

    Hello everybody, Is it possible to assign a default procurement type (for example: F) to a Material Type? If yes, can you explain me where (which transaction)? If no, can you explain me an alternative to do so? Thanks a lot in advance for your help..

  • Report Designer  and Query Designer in BI 7.0

    Hi friends,       what is the use of  Report Designer  and Query Designer.. and what is the difference between  these two..     I know about  Analyser... that is used for designing a query and we can analyse (or) see the result of that query in that 

  • How to invoke the servlet

    how to invoke a servlet using jsp containing JSF components how can we do this using creator ? having sucessfully executed the examples still dont know how to do it and also jsp source is quite different than normal jsp it doesnt allow jsp tags such