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?????????

Similar Messages

  • 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

  • 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.

  • 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...

  • 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.

  • 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

  • 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.

  • Search Help Parameter Default - Problems with VKO and VTW in Sales Order

    Hello,
    we've implementend an own serchhelp for the material-search.
    The fields VKORG and VTWEG have the default VKO and VTW.
    If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
    My user has the VKO and VTW-parameters set.
    We have no custom "preselect-code" implemented.
    If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
    What could be the problem?

    Our searchelp was in our own append ZA_SD_MAT1.
    Solution:
    We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03.

  • How to port forward with Modem and Router

    I have a Linksys AM300 Modem and a Linksys WRT610N router. 
    I want to forward ports for Call of Duty Modern Warfare 2 and STEAM.
    How do I port forward when I have 2 devices and how can I test that it is working? 

    I would recommend that you reconfigure your AM300 into bridge mode. In bridge mode it operates like a standard modem would do. Then reconfigure the WRT610N for your internet connection, i.e. most likely PPPoE. Now the WRT has a direct connection into the internet. Now you only need to configure port forwarding on the WRT610N.

  • Need help setting up JDBC with mySQL and Netbeans

    I've successfully got mySQL up and running and created a few simple test databases. I've been following the instructions on this website (http://www.stardeveloper.com/articles/display.html?article=2003090401&page=1 ) to get JDBC working but have had little luck.
    I've downloaded JDBC from mySQL website, extracted the mysql-connector-java-3.1.13-bin.jar file and changed the class path to :
    C:\Program Files\Java\jre1.5.0_06\lib\ext\mysql-connector-java-3.1.13-bin
    which is where I placed the .jar file.
    I then used the following code provided on stardeveloper.com to test a connection with the test database.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JdbcExample2 {
      public static void main(String args[]) {
        Connection con = null;
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql:///test",
            "root", "secret");
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
        } catch(Exception e) {
          System.err.println("Exception: " + e.getMessage());
        } finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    }It compiles but when run I get the error message :
    java.lang.NoClassDefFoundError: testdatabase/JdbcExample2
    Exception in thread "main"I assume this means that my classpath isn't setup correctly but I have no idea what's up and how to correct it.
    Can someone PLEASE tell me how to setup jdbc and what I've done wrong.
    Thanks in advance :)

    Thanks for your reply. I've made some progress but I'm still having problems.
    In mySQL I created a new user called uraknai with password n0121429 and granted them access to a test database I created called pet.
    Then, in netbeans, I clicked the Runtime tab, clicked Databases and rightclicked Drivers and clicked Add Driver. I then added the driver mysql-connector-java-3.1.13-bin.jar. I then right clicked the newly added driver and selected the connect using option. I filled in the appropriate boxes clicked ok and it connected successfully.
    Then, under the project tab, I right clicked the project name, clicked properties then clicked Libraries and added the .jar file mysql-connector-java-3.1.13-bin.jar
    I then ran the following code to test the connection to the database:
    import java.sql.*;
    public class ConnectionTest {
        public ConnectionTest() {
        public static void main(String[] args)
            System.out.println("BEGIN CONNECTION TEST");
            Connection conn = null;
            try
                   String userName = "uraknai";
                   String password = "n0121429";
                   String url = "jdbc:mysql://localhost/pet";
                   Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                   conn = DriverManager.getConnection (url, userName, password);
                   System.out.println ("Database connection established");
             catch (Exception e)
                   System.err.println ("Cannot connect to database server");
             finally
                   if (conn != null)
                       try
                           conn.close ();
                           System.out.println ("Database connection terminated");
                       catch (Exception e) { /* ignore close errors */ }
    }and get the message:
    java.lang.NoClassDefFoundError: math/ConnectionTest
    Exception in thread "main"
    Java Result: 1when I run the code.
    Can someone explin what I've done wrong and how to fix the problem.
    Cheers.

  • Need help using school network with mail and ichat....

    so at my local community college where i go, they have free wireless as most colleges do. the first time i open safari on campus, it redirects me to a website where i have to log on the network using an email address. it then logs you on as a guest. when i am on their wireless i am unable to connect to ichat or retrieve my mail. being that the mail is more important to me i posted it in here. i have tried to get it to work numerous times and figured i would rather post here first before i go to the it guys here at school. any help would be great...thanks in advance!!!! off to class for a couple hours right now i will check back later to see if i can answer any questions that can help you guys help me figure this out...i feel like it should be simple to do, but starting to think that maybe it is not possible?

    yea i have the same problem in my college so if any one can help id appreciated

  • [HELP] How to livestreaming with HDS and Flash Media Server?

    Hi again! I made a discussion before but nobody solved my problem. My orginal problem is here:http://forums.adobe.com/message/4902951
    Regards!

    Hi,
    Try turning off the firewall on your machine and then try the steps mentioned in the following link:
    http://help.adobe.com/en_US/adobemediaserver/devguide/WSd391de4d9c7bd609-52e437a812a3725df a0-8000.2.3.html

  • Need help to create file with name and current time stamp.

    I need to create .xlsx file exporting data from sql database and file name would be 'FileName' and current yyyymmdd. 
    I'm trying to use following code but it's keep saying  incorrect syntax near "+".
    EXEC p_CreateExcel 'sql64', 'NewFile', '\\hrfile1\Shared\Buying Report\NewFile'
    + CAST(YEAR(CURRENT_TIMESTAMP) AS VARCHAR)
    + RIGHT('00'+CAST(MONTH(CURRENT_TIMESTAMP) AS VARCHAR),2)
    + RIGHT('00'+CAST(DAY(CURRENT_TIMESTAMP) AS VARCHAR),2)+'.xlsx'

    This is what I have on EXEC p_CreateExcel
    USE [XePro01]
    GO
    /****** Object:  StoredProcedure [dbo].[p_CreateExcel]    Script Date: 02/26/2015 11:27:35 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[p_CreateExcel]
            @db_name varchar(100),
            @table_name varchar(100), 
            @file_name varchar(100)
    as
    --Generate column names as a recordset
    declare @columns varchar(8000), @sql varchar(8000), @data_file varchar(100)
    select 
            @columns=coalesce(@columns+',','')+column_name+' as '+column_name 
    from 
            information_schema.columns
    where 
            table_name=@table_name
    select @columns=''''''+replace(replace(@columns,' as ',''''' as '),',',',''''')
    --Create a dummy file to have actual data
    select @data_file=substring(@file_name,1,len(@file_name)-charindex('\',reverse(@file_name)))+'\data_file.xls'
    --Generate column names in the passed EXCEL file
    set @sql='exec master..xp_cmdshell ''bcp "set fmtonly off select * from (select '+@columns+') as t" queryout "'+@file_name+'" -c -t, -T -S'''
    exec(@sql)
    --Generate data in the dummy file
    set @sql='exec master..xp_cmdshell ''bcp "set fmtonly off select * from XeProgst01.dbo.'+@table_name+'" queryout "'+@data_file+'" -c -t, -T -S'''
    exec(@sql)
    --Copy dummy file to passed EXCEL file
    set @sql= 'exec master..xp_cmdshell ''type '+@data_file+' >> '+@file_name+''''
    exec(@sql)
    --Delete dummy file 
    set @sql= 'exec master..xp_cmdshell ''del '+@data_file+''''
    exec(@sql)
    GO

Maybe you are looking for

  • How can I stop itunes from automatically importing on its startup?

    Ive looked around a few forums and have yet to find anything to help me with this particular problem. THE BACKSTORY: Got a MacbookPro a few months ago. iOS Lion. Ive been mostly focused on becoming familiar with how to get around on it since Ive alwa

  • External Hard Drive - Time Machine & Windows

    I recently bought a Macbook Pro. However I still have another laptop (w/ Vindows XP) I would like to use. Is it possible for me to use the same external hard drive (Westrn Digital My Book 500 GB) for backing up my pc from time to time and also as the

  • Adding a Date/Time stamp to videos already created

    We have someone using Elemets 8 They need to add in the date/time stamp to video's that are already created. The camcorder we have does record this information but doesn't allow that information to be put onto the screen its a Canon HD HF200 We were

  • How do i get notification of a new version of Firefox

    I have version 6.0.2 and when I click check for updates it says up-to-date. Why have I not been offered/told about Version 7 please. Thanks pingu70

  • Adobe premier elements 3.0

    cuando lo abro me dice que a encontrado un problema y debe cerrarse