Why not porting CDC-PP reference implementation to PocketPC by ourself?

Hi All,
Seeing your open letter about Personal Profile for PocketPC, I have the question: Why not porting CDC-PP reference implementation to PocketPC by ourself? Or do you know any open source project on this topic?
in Java world, we should DIY (eclipse, Junit, ANT......)
Regards!
Tiger

Sorry, I missed the "reference implementation" in the subject. Can you even get the thing to compile? Taking a guess at which of the umpteen makefiles to use, I get pjt33@charis:/tmp/personal/build/share/$ make -f rules.mk
rules.mk:289: /empty.mk: No such file or directory
rules.mk:394: warning: overriding commands for target `/'
rules.mk:20: warning: ignoring old commands for target `/'
rules.mk:422: *** target file `/' has both : and :: entries.  Stop.There are also licencing issues with using the reference implementation - if you want to distribute it properly, it seems you have to pay Sun an annual fee for the Technology Compatibility Kit.

Similar Messages

  • Why not to store notifier reference in global

    Hi all,
    I am working with notifiers and queues in multiple VIs. I have strange behaviours, when I store the queue and notifier references in global variables.
    I have read some entries in this forum, and some says, it is a "bad idea", that "should not be done", to store the refs in globals.
    Can anybody tell me, what is the real background?
    regards
    mitulatbati
    Solved!
    Go to Solution.

    Besides that globals are simply evil (just slightly an over the top statement as I really advocate to minimize the use of globals to nothing more than a status boolean or sometimes some single skalar value), all LabVIEW refnums employ some garbage collection.
    The reason to use globals usually implies that you want to create the according resource at one place and use it someplace else. But that often does not work with LabVIEW refnums if the producer and consumer are not in the same VI hierarchy (for instance you create the resource in a startup VI and then spawn a plugin VI that continues while the startup VI terminates). All LabVIEW refnums are automatically disposed at the moment the top level VI in whose hierarchy the refnum was opened goes idle. So at the time your plugin VI gets to work, the refnum and its object has been already disposed and is therefore invalid.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Xletview: why not use sun's javaTV source code directly ?

    xletview : one emulator for viewing MHP Xlets on a PC;
    I see many difference from sun's code about the part of javaTV.
    Why the author Martin Sveden need to rewrite them and not use sun's javaTV source code directly ?
    Thank you for your any answer.
    Sorry for my horrible english.

    XleView is a fine effort, but it has its limitations. I tried using it for the GunBunny demo available in the JavaME SDK 3.0 Eary Access available in
    http://java.sun.com/javame/downloads/sdk30ea.jsp
    and I encountered some of thost limitations. What Sveden does it several tricky manipulations in a classloader for the Xlet. In particular, he translates bytecode as he loads the Xlet's classes, changing some class names, such as changing
    java.awt.Toolkit
    tto
    xjava.awt.Toolkit
    This works up to a point. This version of Toolkit usually just turns around calls java.awt.Toolkit's corresponding routine, but he deliberately he does not implement the ubiquitous
    public Image createImage(URL url)
    When I downloaded his source and tried adding ths into his code, I then encountered at runtime
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    I think that this is some optimization within J2SE where they do not wait for the image to load and do the fetching in a separate thread. I do not know if there is some way to force the Sun's JVM to disable this optimization and I have not investigated furher, but I did email Svenden. I noticed that the current version of XleTView is 0.3.6 which is dated June 2004 and the web site http://www.xletview.org/ has had not news since 2005 .
    I note that Svenden provides an elegant user interface but I advise you not try to learn the API's from his classes: he makes no effort to keep his implementation separate from the API standards so, for instance, his version of HScene is
    package org.havi.ui;
    public class HScene extends Container
    implements HComponentOrdering, ImageObserver, MenuContainer, Serializable {
    whereas the real standard is
    public class HScene extends Container
    implements HComponentOrdering {
    I hate to critize such a fine effort, but it is best to keep an imlementation separate from the public API.
    I agree that having a lightweight, simple and Java feature-complete Xlet viewer running would be very helpful, especially if BD-J gains much popularity. I have found trying to work with the vendor players described at
    http://wiki.java.net/bin/view/Mobileandembedded/Blu-RayDiscHelloWorld
    to be frustrating. I tried all four mentioned and I have gotten none of them to work for me yet. These are huge downloads and the "Intro Version" of Arcsoft pointed to at the SDK 3.0 Early Access page
    http://www.arcsoft.com/products/totalmediatheatre/
    just gives a "File not found" HTML page. This forum post mentions that perhaps it was recently taken down?
    http://www.arcsoft.com/forum/forum_posts.asp?TID=1084
    I have already emailed Michael Downs of Arcsoft since he is mentioned here:
    http://wiki.java.net/bin/view/Mobileandembedded/BDJPCPlayers
    What did work for me was to take Sun's JavaTV 1.1 Reference Implementation and PowerDVD's BDJ.jar and hack/fix a few classes to get GunBunny to work within the RI's RunXlet program. This is not trivial but I will will describe:
    Download the JavaME 3.0 SDK EA and then download the correct version of PowerDVD that the SDK page points to:
    http://www.brothersoft.com/powerdvd-download-50794.html
    Download the RI binary and source of Java TV API 1.1
    http://java.sun.com/javame/technology/javatv/index.jsp
    Since I am too lazy to use anything but the latest 1.6 JRE as a runtime, I have to fix
    com.sun.tv.media.util.MediaThread
    to comment out its stop() method. This is becase stop() was deprecated and made final in J2SE 1.5
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop()
    http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html
    Next, I had to mae a change to Sun's JavaTV implementation to keep the GunBunny demo happy by providing a ServiceContext. The RunXlet program calls SIEmulator, but that environment does not provide a ServiceContex, so I added one back in:
    com.sun.tv.receiver.SIEmulator
    private static ServiceContext svcctx = null;
    Add before every call to new AppSignalEvent() and add the svcctx as the second-to-last argument:
    if(svcctx == null){ try { svcctx = new com.sun.tv.ServiceContextImpl(); }catch (Exception e){ e.printStackTrace(); } }
    I then had to hack a few PowerDVD classes, which is evil of me. First, I had to build an empty class by the name of
    sun.util.BDJPlugin
    becuase some PowerDVD class extends it but it is not in its BDJ.jar and then I had to reverse-compile (evil!) and modify one of their internal classes to avoid a dependency on their native methods. What I ended up with was a hacked version of com.cl.bdj.helper.CUtil to avoid the native methods which access the registry where they query for registry settings but also provide a default value (which I return).
    com.cl.bdj.helper.CUtil
    private static String pGetRegistryString(long i ,String string ,String string3) {
    return string3;
    private static int pGetRegistryInt(long i ,String string ,int j) {
    return j;
    The last thing I had to do was to change com.hdccookbook.gunbunny.BaseXlet, to use the JavaTV container rather than the org.havi one:
    import javax.tv.graphics.TVContainer;
    import java.awt.Container;
    change
    // protected HScene scene;
    protected Container scene;
    public final void run() {
    // waitForPresenting();
    // scene = HSceneFactory.getInstance().getDefaultHScene();
    scene = TVContainer.getRootContainer(xletContext);
    In order to having working keys, I had to add the KeyListener interface to BaseXet and
    run(){
    addKeyListener(this);
    and then add a near duplicate of the org.dvb.event.UserEvent* stuff that is already there:
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode()){
    case KeyEvent.VK_0:
    case KeyEvent.VK_1:
    case KeyEvent.VK_2:
    case KeyEvent.VK_3:
    case KeyEvent.VK_4:
    case KeyEvent.VK_5:
    case KeyEvent.VK_6:
    case KeyEvent.VK_7:
    case KeyEvent.VK_8:
    case KeyEvent.VK_9:
    numberKeyPressed(e.getKeyCode() - KeyEvent.VK_0);
    break;
    case KeyEvent.VK_ENTER:
    enterKeyPressed();
    break;
    case KeyEvent.VK_LEFT:
    arrowLeftKeyPressed();
    break;
    case KeyEvent.VK_RIGHT:
    arrowRightPressed();
    break;
    case KeyEvent.VK_UP:
    arrowUpPressed();
    break;
    case KeyEvent.VK_DOWN:
    arrowDownPressed();
    break;
    public void keyReleased(KeyEvent e){
    // System.out.println("Released: e="+e+" code="+e.getKeyCode());
    public void keyTyped(KeyEvent e) {
    // System.out.println("Typed: e="+e+" code="+e.getKeyCode());
    It then comes up and functions, but the rendering is not very good. Again, this is complete hack. Running the Java TV 1.1 RI in a JRE 1.6 is not supported. If you try to run any of the other examples, you will discover that the XML parsing is broken in JRE 1.6 with this message:
    Parsing failed: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
    Exception: Invalid byte 1 of 1-byte UTF-8 sequence., file: lib\JavaTVSampleFile01.xml
    and you have to go and change the lines in
    lib\JavaTV.properties
    from
    ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    # ServiceFileHandler=SampleData_01
    to
    # ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    ServiceFileHandler=SampleData_01
    and build samples\db\SampleData_01.java and put it in your classpath along with all these other hacks.
    Nonetheless, if you want to develop a somewhat generic Xlet that uses some BD-J features, that is how you might do it. But the moment you exercise anything else in the vendor's BDJ.jar that simply doe snot work outside of their environment or invokes one of their native methods, you are again stuck.
    It would be nice if Sun would at least bother to update the JavaTV RI with the fixes I hae mentioned. Their "jmflite" implementation does not render perfecly but at least it would give the programmer something to work with without having to deal with an older JRE, etc.
    Andrew
    Edited by: AndrewMorrow on Oct 20, 2008 2:48 AM

  • Calling a servlet from a JSP page using the J2EE reference implementation

    I have a JSP with an include tag as follows: <jsp:include page="servlet/ConnectionServlet" flush="true" />
    When I use JRUN it works fine. I created an ear file and ported
    the application to the J2EE reference implementation. When running the app under the J2EE reference implementation the ConnectionServlet is never called. I figured it must a deployment issue. I tried adding the ConnectionServlet.class file to the WEB-INF\classes file as servlet\ConnectionServlet.class but the JSP still can't find the servlet. Any ideas where I've gone wrong? TIA, Joe

    I have a JSP with an include tag as follows:
    <jsp:include page="servlet/ConnectionServlet"
    flush="true" />Basically, WEB-INF/classes gets added to the classpath, so the directory structure under this folder should be identical to your package structure. If the ConnectionServlet.class is not actually in a package, then it should be directly in WEB-INF/classes (ie if "servlet" isn't actually the name of your package, don't use a WEB-INF/classes/servlet/" directory).
    Then try taking out the "servlet" from your include tag, so you just have page="/ConnectionServlet" (not sure about the leading slash - try experimenting!)
    if this doesn't work, try adding this to your WEB-INF/web.xml file:
    <web-app><!-- the web-app tags may already be there - don't add more -->
    <servlet>
    <servlet-name>ConnectionServlet</servlet-name>
    <servlet-class>your.full.package.here.ConnectionServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ConnectionServlet</servlet-name>
    <url-pattern>/ConnectionServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    Good Luck!

  • Port 25 works fine for SSL/SMTP, but not port 587?

    So after doing a rather painful migration to new hardware to support 10.5 from a previously working 10.4 config...
    I got SSL working -- web service is fine, mail service is fine for all ports for POP and IMAP...but not port 587.
    - It's open on my firewall
    - There's no software firewall impeding it
    - Trying to telnet to port 587 results in nothing
    It's as if the server isn't even listening to the port...
    And the odd part?
    - Mac OS X desktop clients report they can't connect on 587. Changing the port to 25 and leaving everything else the same (auth type, username, password) -- suddenly it works...BUT
    - The iPhone is configured for port 587 and works every time.
    My guess it that iPhone auto falls back to port 25 if all else fails, I can't explain why it would work. Bigger question, I suspect something got munged in the migration...is it possible it needs to be told to listen on 587 as well?

    I saw that site...it mentions adding port 587 specifically -- or commenting out "the appropriate lines of master.cf"
    I assume that means to uncomment out the submission port in that file -- or would it be better to add 587 specifically?
    Also, I never allow unauth SMTP (even inside my network) -- I would want to continue to impose that on the submission port and the normal port 25; how do I do this?
    Thanks in advance for the help.

  • " VL 476: Item 'Official Doc. Number' is not copied from the reference doc"

    Hi Guys,
    When I am doing the Accrual Reversal in F.81 I am getting the following error
    " VL 476: Item 'Official Doc. Number' is not copied from the reference document ".
    I have maintained the number ranges also. I am not able to understand why the system is issuing this error.
    Pls suggest.
    Thanks
    Srikanth

    Hi Guys,
    Can anyone please help on this error.
    Thanks
    Srikanth

  • I want a delete operator in Java. Why not?

    The idea is simple: when I tell "delete some_object;" the system checks if the object can be deleted.
    a) Object is not referenced by any other objects out of the reference cycle *=>* some_object object calls its destructor and then it is deleted, and the same should happen to all objects in the reference cycle. The reference some_object is set to null, as operator delete returns null.
    b) Object is referenced by some other objects, which are not in a cycle of references, ending up at the some_object object itself *=>* some_object object is not deleted (destructor is not called), but the reference some_object is set to null (operator delete returns null) and the reference count of the some_object object (in the system) is decreased by 1.
    Easy.
    Why not?

    grinice wrote:
    b) Object is referenced by some other objects, which are not in a cycle of references, ending up at the some_object object itself *=>* some_object object is not deleted (destructor is not called), but the reference some_object is set to null Makes no sense. There can be multiple references to a given object, and you don't always own all of them. If you want to set one to null, you can already do that with ref = null;
    Easy.If it's that easy, create your own language that does it.
    Why not?Why?

  • SAP Notes status can't be implemented?

    Hi All
    I would like to know, why few SAP notes status can't be implemented.
    your view will be appreciated and will rewarded with <<removed by moderator>>.
    Regards
    Madhavi
    Edited by: kishan P on Sep 1, 2010 1:03 PM

    HI
    Some SAP note can be implement manually and some are can be implement through the T-Code SNOTE
    once you go to the look at the sap note it provide the instruct how to implement ,
    when you go to SNOTE T-code in the GOTO> DOWNLOAD SAP NOTE once u click it you have to download SAP note direcly in to SNOTE and you can directly implement .
    if its not downloading to this place you have to do it manually from taking the access key from SAP .
    Regard
    nawa

  • Support for SWF Verification in the reference implementation server

    The Server for Protected Streaming provides a way to configure a whitelist of allowed SWF hashes.  However, from what I can tell, the reference implementation server does not have this capability.  Any suggestions on how to implement SWF Verification in the reference implementation server ?

    To use SWF whitelists with the Reference Implementation, set the SWF  whitelist in a policy, and use that policy when packaging the content.  When issuing a license, the Reference Implementation will use whatever  restrictions were specified in the policy at packaging time.  Alternatively, since the Reference Implementation ships with source  code, you can modify the server so you can specify the SWF whitelist  information at the time the license is generated.

  • Connecting JMS to J2EE Reference Implementation 1.3 beta

    Is it possible to write JMS client talking with J2EE server without having in path j2ee.jar? Something like remote small client communicating with the server due JMS? Do I have to use some third party
    software (I have swiftMQ in mind) for this? If somebody have configuration for swift bridge to J2EE
    Refernce Implementation can you share it?

    The JMS service provider that comes with J2EE SDK 1.3 is only a reference implementation of the JMS API.
    In a real application system, one will be using a JMS service provider from some vendor. Preferably one that is certified to be J2EE compatible.
    In fact, this is true as such for anything in j2ee.jar Through j2ee.jar, Sun provides a reference implementation of J2EE APIs with its J2EE SDK and in a real application one will not have j2ee.jar in the client or server classpath. Instead one will use jar files specific to the vendor that one has chosen.
    Specifically about swiftMQ, as per Sun, it is not a J2EE licensee. swiftMQ is JMS 1.0.2 compliant. But it is not certified to be J2EE compatible.
    Refer http://java.sun.com/products/jms/nonlicensedvendors.html for more details.

  • Where can I get a reference implementation of XQJ

    Where can I get a reference implementation of XQJ
    - Raees Uzhunnan

    Reference implementation of XQJ is not available yet. When it becomes available, you can find it from the JSR XQJ page (http://jcp.org/en/jsr/detail?id=225).
    Regards,
    Geoff

  • Why not upgrade os 6.1 to 4 iphone

    Why not upgrade os 6.1 to 4 aiphon

    Q: In Step 1, when cloning the Master (Unix0161), what state was it in (running/stopped)?
    A: The master service was running
    Q: When importing/exporting 6.1 database onto another database server. Are you working off a backup of the database?
    A: Yes- And also a number of queries we executed on the database (Blank out License - Update the nodmst_alias to new hostname- Disable agents/adapters- Set system Queue to zero)
    Q: Can you verify db connection for Unix026-2 (which database server is it connecting to)?
    A: Yes
    6.1 master.props file
    JdbcDriver=oracle.jdbc.driver.OracleDriver
    JdbcURL=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = odm3dev-scan.kbm1.com)(PORT = 1521))(LOAD_BALANCE = YES)(CONNECT_DATA =(SERVICE_NAME = tdl6dev)))
    Classpath=${TIDAL_HOME}/lib/Scheduler.jar:${TIDAL_HOME}/lib/ojdbc6.jar:${CLASSPATH}
    CMDMasterPort=6600
    JAVA_HOME=/apps/tidal/java/jre1.6.0_35/bin/sparcv9
    JVMARGS=-Xms4096m -Xmx8192m
    6.2 master.props file
    Classpath=${TIDAL_HOME}/lib/Scheduler.jar:${TIDAL_HOME}/lib/ojdbc6.jar:${TIDAL_HOME}/lib/jetty-all-9.1.1.v20140108.jar:${CLASSPATH}
    JdbcDriver=oracle.jdbc.driver.OracleDriver
    JdbcURL=jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=yes)(ADDRESS=(PROTOCOL=TCP)(HOST=odm4dev-scan)(PORT=1521))(CONNECT_DATA=(SERVER=dedicated)(SERVICE_NAME=tdl62dev.kbm1.com)))
    CMDMasterPort=6600
    JAVA_HOME=/apps/tidal/java/jre1.7.0_75/bin/sparcv9
    JVMARGS=-Xms4096m -Xmx8192m
    Q: In Step 2, have you verified that Master was removed completely on Unix026-2?
    A: Yes

  • MIDP 2.0 Reference Implementation building on the Win2k

    Hi
    I builded MIDP2.0 Reference Implementation in the environment following below,
    cygwin: 1.5.10_3
    MIDP_DIR c:\j2me\midp_2-0
    KVM_DIR c:\j2me\CLDC_1-0-4
    ALT_BOOTDIR c:\jdk1.3.1
    and I received error message.
    Microsoft (R) Incremental Linker Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    ... jcc_classes/JavaCodeCompact.class
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    ... searching updated .java files
    ... compiling 256 .java files
    ... preverifying 298 .class files
    ... classes.zip
    Can't open perl script "c:\Program": No such file or directory
    make: *** [classes.zip] Error 2
    I think that the problem is cause by wrong PATH environment
    But I don't know solution.

    something is installed in a folder with a space in it. for example, it will be installed in "c:\program files\...". you may be able to surround the part of the path with quotes. without knowing the program thats causing the problem its gonna be tricky to figure out how to fit it. it could be a path thing (i have loads of development stuff installed with no path problems) or it could be another environment variable.
    it could be perl itself. i can't remember if i had problems with that - i might have done. i think i installed perl into c:\perl rather than c:\prorgam files\perl (for example) to get round problems. shrug, i can't remember now.

  • Why not to use static methods - with example

    Hi Everyone,
    I'd like to continue the below thread about "why not to use static methods"
    Why not to use static methods
    with a concrete example.
    In my small application I need to be able to send keystrokes. (java.awt.Robot class is used for this)
    I created the following class for these "operations" with static methods:
    public class KeyboardInput {
         private static Robot r;
         static {
              try {
                   r = new Robot();
              } catch (AWTException e) {
                   throw new RuntimeException(e + "Robot couldn't be initialized.");
         public static void wait(int millis){
              r.delay(millis);
         public static void copy() {
              r.keyPress(KeyEvent.VK_CONTROL);
              r.keyPress(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_CONTROL);
         public static void altTab() {
              r.keyPress(KeyEvent.VK_ALT);
              r.keyPress(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_ALT);
                   // more methods like  paste(), tab(), shiftTab(), rightArrow()
    }Do you thinks it is a good solution? How could it be improved? I've seen something about Singleton vs. static methods somewhere. Would it be better to use Singleton?
    Thanks for any comments in advance,
    lemonboston

    maheshguruswamy wrote:
    lemonboston wrote:
    maheshguruswamy wrote:
    I think a singleton might be a better approach for you. Just kill the public constructor and provide a getInstance method to provide lazy initialization.Thanks maheshguruswamy for advising on the steps to create a singleton from this class.
    Could you maybe advise also about why do you say that it would be better to use singleton? What's behind it? Thanks!In short, it seems to me that a single instance of your class will be able to coordinate actions across your entire application. So a singleton should be enough.But that doesn't answer why he should prefer a singleton instead over a bunch of static methods. Functionally the two are almost identical. In both cases there's only one "thing" on which to call methods--either a single instance of the class, or the class itself.
    To answer the question, the main reason to use a Singleton over a classful of static methods is the same reason the drives a lot of non-static vs. static decisions: Polymorphism.
    If you use a Singleton (and and interface), you can do something like this:
    KeyboardInput kbi = get_some_instance_of_some_class_that_implements_KeyboardInput_somehow_maybe_from_a_factory();And then whatever is calling KBI's public methods only has to know that it has an implementor of that interface, without caring which concrete class it is, and you can substitute whatever implementation is appropriate in a given context. If you don't need to do that, then the static method approach is probably sufficient.
    There are other reasons that may suggest a Singleton--serialization, persistence, use as a JavaBean pop to mind--but they're less common and less compelling in my experience.
    And finally, if this thing maintains any state between method calls, although you can handle that with static member variables, it's more in keeping with the OO paradigm to make them non-static fields of an instance of that class.

  • TS3195 I am able to see my iphone 4 as a drive on my win8 pc, but am not able to see my ipad air. This allows me to copy files from my iphone to my pc. Why not?

    When I plug my iphone inot a USB port on my windows 8 computer, it apperars as a device and I am able to see and select photos co copy to my win8 pc.  When I connect my new ipad air, it does not appear.  Why not?

    Thanks again.
    I had photos taken with the ipad air on the ipad air.
    I followed the instructions in the link you gave, for Windows 8 PC
    Step 5 says to right click on the logo for my device.
    I could not find a logo for the ipad air and was unable to click on "improt pictures and videos", since there was no logo.
    Below are two screen captures.  The first is for my ipad air and the second is for my iphone.  It looks like my Windows 8 OS can see the iphones as a portable device, but cannot see the ipad air in the same way.

Maybe you are looking for