Help! How to get the Java Communication Package work in JDK1.3.1?

I downloaded a Java Communications API Win32 ver 2.0 from java.sun.com, and try to use it to do some programming to communication ports with JDK1.3.1.
I failed. When I tested with the samples (BlackBox, SimpleRead) coming with the javax.comm. It showed "no serial port found", something like that. I check the installation Instructions of the comm. package, it only described the installation under JDK1.1 and the pre-release version of JDK1.2. (and the installation of the same package in JDK1.1 and JDK1.2 are totally different.)I tried the specification with my JDK1.3, but it doesn't work.
Who knows how to install the Javax.comm package in JDK1.3.1? Please let me know as soon as possible. Thanks a lot.

This comes straight out of the FAQ that you got with your download:
Q: My application does not find any ports when it enumerates available ports.
Q: BlackBox gives me a message that says "No serial ports found!"
A: In order for the Java communications API to find ports the file
javax.comm.properties must be in the correct place. The preferred location
is in <jdk>/lib. See the installation instructions for alternate locations
and further information.
Installation is very simple. Comm is a standard extension, so copy comm.jar to %JAVA_HOME%\jre\lib\ext
This is all in the docs....

Similar Messages

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How  to get the java code of the standard functions

    How  to get the java code of the standard functions in xi
    Example , hoh get the java code for a node function - removeContext.

    hi
    Click on the Standard Function.
    Hold Ctrl+Shift
    right click on the standard function to view the context menu. You will see options to view the source code by exporting
    regards
    krishna

  • Help: How to get the enddate as February28 or january 31

    Hello Folks,
    Am trying to get the data 2 months prior. So i was wondering how to get the enddate as 02/28/2010 or 01/31/2010.
    Thanks a lot
    Edited by: user11961230 on Apr 21, 2010 11:50 AM

    SQL> SELECT TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-2)),'DDMONTHYYYY') dates FROM DUAL;
    DATES
    28FEBRUARY 2010
    SQL> SELECT TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-2)),'MONTHYYYY') dates FROM DUAL;
    DATES
    FEBRUARY 2010
    SQL> SELECT TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-3)),'DDMONTHYYYY') dates FROM DUAL;
    DATES
    31JANUARY  2010
    SQL> SELECT TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-3)),'MONTHYYYY') dates FROM DUAL;
    DATES
    JANUARY  2010
    SQL>

  • How to get the garbage collector to work?

    Hi,
    i have i program where i load an image scale it down and save the scaled version in an array. I do this for a whole directory of images.
    After every image i set the temporary variable for the loaded image = null and call the function System.gc().
    My problem is, that the garbage collector does�nt give the memory of the loaded image free and the used memory of my program grows with every loaded image.
    /* Reads all images from a folder an stores them in an Array of images */
         public static BufferedImage[] readScaledImagesFromFolder(String folder,
                   int maxSize) {
              File dir = new File(folder);     /* Open the Folder */
              String[] children = dir.list();          /* Get the children of the folder */
              if (children == null) {
                 // Either dir does not exist or is not a directory
                  System.out.println("No images in the folder!");
                  return null;
             } else {
                  /* Init array for images */
                  BufferedImage[] images = new BufferedImage[children.length];     
                  int i = 0;
                  int index = 0;
                  BufferedImage temp;
                  String filename, fileending;
                 for (i=0; i<children.length; i++) {
                      // Get filename of file or directory
                     filename = children;
         /* Get the fileending of the file */
         fileending = filename.toLowerCase().substring(filename.length()-4);
         if(fileending.equals(".jpg") || fileending.equals(".bmp")
                   || fileending.equals(".png") || fileending.equals(".gif"))
              /* Read the image */
              temp = util.ImageUtils.loadBufferedImage(folder+"/"+filename);
              /* Scale the image down and save it in an array */
              images[index] = Util.getScaledImage(temp,maxSize);
              index++;          
         temp = null;
         System.gc();
         Mosaic.sourceImageNum = index;
         System.out.println((index+1)+" resized pictures loaded from folder: "+folder);
         return images;     
    How can i get the gargabe collector to work after every iteration?
    I tried to let the Thread.sleep(10) after System.gc() but it does�nt help.
    Thank you every much
    JackNeil

    Hm yes.. i now that System.gc() is only a
    suggestion.
    But i know what my program is doing and that it
    does�nt need the temporary image anymore after i have
    a scaled down version. And the temporay image will become unreachable as soon as reading the next one overwrites your temp variable. Setting the variable to null doesn't have much effect.
    It would be smarter to load the new image over the
    old temporary image and not to expand the heapsize to
    maximum.Then look at the possibitly of loading the next image into the same bufferedimage.

  • How to get the Wiki search functionality working?

    hi,
    Another Wiki question regarding the 7.1u1 Portal wiki functionality: What is necessary to get the wiki search functionality working? Right now when using the wiki search page all it does is return to the search form, no errors but no hits either. I guess some additional administrative work is needed to get search working?
    thanks, tom

    haven't touched anything except for the wiki template jsps to change the design. it is a linux rh4 install. there are no communities on that server (yet), just the wiki portlet in a tab so far. is the wiki search dependent on the portal search server or totally separate (ie self contained wiki search)? any additional services or such that need to be started for it to work?

  • How to Get the Parent Community of a Community Using PRC

    Greetings,
    Using the PRC, I am trying to build a heirarchy table of all of the Communities a particular user has access to.
    Stated another way, I want to be able to build a tree of all of the communities a user can access, and display them in an explorer type graphical object(treeview).
    Through ICommunityManager I CAN get all of the communities (step 1). But beyond that, I am unable to find the communities' parents(I have found no way in the PRC to ask for a parent community) so I can iteratively start the treck up to the top of the heirarchy and down to the bottom.
    The Adaptive tag library has tags to get parent, sibling, and child community URL's of the current and any specific community, so I know it can be done, but the tags do not help me to build the tree beyond the current community's parent (At least I have not figured out how).
    Has anyone done anything like this? Could you direct me to the appropriate API's or approach?
    Thank You.

    Have you thought about using pt:standard.tree instead of rolling your own?
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • How to get the arrow keys to work in 2D game?

    I am designing a 2D game (Applet) in which the objective is to move a dot from one end of the room to the other.
    how do i get the dot to move in all 4 directions, please help.
    If you may, please mention a few EXCEPTIONAL tutorials on JAVA game design.

    The best (?) way is to use a KeyListener. http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyEvent.html
    In the class that you want the keyevent to occur, put this in your class declaration implements KeyListener { Then somewhere in that class, put addkeyListener(this);. You need to have three methods in this class - keyTyped(KeyEvent e), keyPressed(KeyEvent e) and keyReleased(KeyEvent e).
    Here's a sample.
    public class Example extends JFrame implements KeyListener
         //some code goes here...
         public void keyTyped (KeyEvent event) {}
         public void keyReleased (KeyEvent event) {}
         public void keyPressed (KeyEvent event)
              int key = event.getSource();
              if (key == KeyEvent.VK_UP)
              //etc.
    }

  • How to get the wireless router to work when i change to new modem and internet connection

    I already set up my wireless router in my macbook but then moved to a new house and basically have a new internet connection. My internet connection is fine when i connect the ethernet cable form the modem to my macbook. But when i plugged in the wireless router, my computer sees it but will not connect to the internet. I lost my installation CD and i tried to re-install using the dowloaded installation but it goes into error saying i can't re-install if i don't change back to default.. anyway, maybe the solution is simple but it eludes me so please help!
    In summary:
    1. same macbook
    2. same wireless router
    3. same internet provider but new connection and modem (since i moved to a different house)
    how do i get my wireless router to work? thanks!!!

    Who is your Internet Service Provider(ISP)?
    If you have a cable connection then follow this link and if you have a DSL connection then follow this link to configure your router.

  • How to get the FTP clients to work?

    This is something that (to me at least) should be trivial but I just can't
    get it to work at all.
    How do you get an FTP client to work?
    I've tried several GUI clients as well as the terminal FTP command and they
    all seem to get stuck entering passive mode - according to the log entries
    they send the command.... And then nothing or a timeout, the following is
    from the terminal FTP command:
    Titania:~ susan$ ftp ftp.apple.com
    Trying 17.254.16.11...
    Connected to ftp.apple.com.
    220 17.254.16.11 FTP server ready
    Name (ftp.apple.com:susan): anonymous
    331 Anonymous login ok, send your complete email address as your password.
    Password:
    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    501 EPSV: Operation not permitted
    227 Entering Passive Mode (17,254,16,11,223,157).
    200 PORT command successful
    421 Service not available, remote server timed out. Connection closed
    ftp>
    In my System Preferences -> Network panel in the Proxies tab, I have the
    "use Passive FTP mode (PASV) checked.
    I also have checked the FTP firewall option (but I think that is only if I'm
    acting as an FTP server).
    I am connected to the internet via a Netgear wireless router.
    I also have an old Windows laptop that also uses the same wireless router
    and it can FTP quite happily!!!!!
    Any suggestions would be gratefully received.
    Susan

    ejn - thanks for your continued assistance.
    I've tried turning the firewall off but this does not appear to make any difference(*). Also, I have Parallels installed and I'm sharing the internet connection with this (even though Parallels itself is not currently running). Turning this sharing off doesn't seem to change anything either.
    I have noticed some entries in the ifpw.log file that coincide with some of the ftp actions. Given the following terminal session:
    Titania:~ susan$ ftp ftp.apple.com
    Trying 17.254.16.10...
    Connected to ftp.apple.com.
    220 17.254.16.10 FTP server ready
    Name (ftp.apple.com:susan): anonymous
    331 Anonymous login ok, send your complete email address as your password.
    Password:
    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    501 EPSV: Operation not permitted
    227 Entering Passive Mode (17,254,16,10,245,46).
    200 PORT command successful
    421 Service not available, remote server timed out. Connection closed
    ftp>
    at the time the "200 PORT command successful" is displayed, the ifpw log starts showing:
    Sep 5 09:11:21 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:24 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:27 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:30 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:33 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:36 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:42 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    which makes sense as the system tries to go for an active transfer.
    (*) Actually, while I've been writing this, I've been playing on the terminal as well. I've found the combination of:
    1) turning off the firewall
    2) starting ftp
    3) issuing the 'passive' command to turn off passive mode
    4) issuing 'ls' etc. works
    Looks like I've not been waiting long enough for the ftp client to get sick of trying the passive transfer and switching to an active one with the firewakk turned off!
    Still doesn't answer the question - why does passive mode not work?
    Susan

  • How to get the SupportCenter Nav to work ?

    Hiya All
    I am trying to get the [url[/url]Nav_SupportCenter-C#.zipsample working in a dev 5.0.2 environment.
    I can compile the code cleanly.
    Have modified the CustomActivitySpaces.xml file to look for the new dll.
    Placed the dll in the ..\webapp\portal\bin directory.
    On start up the file is discovered and loaded.
    In the sub portal manager I can select the new nav scheme
    When I log in to the sub portal containing the new nav scheme it doesn't appear.
    PTSpy return the following error on login
    5537 03-05 13:26:45 Error Portal UI - Common 3556 1588 com.plumtree.pscportalnavigation.views.PSCNavigationCommSectionDropDownView.DisplayJavascript(pscnavigationcommsectiondropdownview.cs:line 354
    ) DisplayJavascriptCrash in pscportalnavigation while evaluating navigation setting for community ID's System.NullReferenceException at com.plumtree.pscportalnavigation.views.PSCNavigationCommSectionDropDownView.DisplayJavascript() in d:\projects\leightons\support center nav\pscnavigationcommsectiondropdownview.cs:line 326
    The offending piece of code that trows the error is
    strKeyValue = vp.GetVarPackValue("commID").ToString();
    I suspect the string commID isn't in the varpack. What is the correct string id to make this work.
    Cheers
    Bob

    Mr. Singh,
    Each community you add to the NavigationSettings.xml commID node will appear in the support center tabbed list. That's the way that navigation works. It's one-dimensional, i.e., it doesn't support a concept ofubcommunities; they're all treated the same way.
    If those same communities happen to also be mandatory, they'll show up on the mandatory list.
    If I were you, I would make the communities not mandatory, or only make one of them mandatory. Anyone navigating to that one mandatory community would see the new navigation, with tabs showing all the other communities listed in NavigationSettings.xml. In a way, this is a "second set" of mandatory communities, in the sense that the UI presents them.
    Of course, you'll have to change the community security so that anyone can fully browse those communities. This is the approach we use on our own site.
    If this behavior is not precisely what you want, you'll need to modify that navigation code. Keep in mind that the support center navigation is not supported code, as is clearly stated on the Support Center where you downloaded it; it is simply an example to demonstrate other ways to write pluggable navigations. It also demonstartes the concept of "navigation switching" pretty well - when you're not on one of the communities listed in the XML file, you see the normal navigation. You can modify the code to show any navigation you want as "normal".
    David Phipps
    Plumtree Software

  • Help:How to get a java String value from a C char array?

    Hi,everyone,could you help me?
    the following is a C struct that i want to recieve a short message:
    struct MO_msg{
    unsigned long long msgID;          //Message ID
    char      dest_id[21]; //Destination Mobile Phone Number
    char      service_id[10];     //
    Now I want to put the "dest_id " value of this struct into a Java String variable.But I dont know how to implement it!
    The following is a block of source code that i implement this functions.But it cant get a String value ,and throw out a Exception:
    java.lang.NullPointerException
    at java.lang.StringBuffer.append(StringBuffer.java:389)
    JNIEXPORT jint JNICALL Java_md_EMAP_thread_RubeMOTSSX_getMO
    (JNIEnv * env, jobject obj, jint connId, jobject mo){
         struct MO_msg MO;
         tssx_cmpp_api_debug_flag = 1;
         int result = CMPP_Get_MO((int)connId,&MO);
         if (result == 0){
              jclass cls = (*env)->GetObjectClass(env,mo);
              jfieldID msgId = (*env)->GetFieldID(env,cls,"msgId","J");
              jfieldID dest_Id = (*env)->GetFieldID(env,cls,"dest_Id","Ljava/lang/String;");
              jfieldID serviceId = (*env)->GetFieldID(env,cls,"serviceId","Ljava/lang/String;");          
              (*env)->SetLongField(env,mo,msgId,MO.msgID);               
              (*env)->SetCharField(env,mo,dest_Id,*destId);
              (*env)->SetCharField(env,mo,serviceId,MO.service_id);
         return result;
    Please help me!Thanks!

    bschauwe:Thank you for your help!
    Yes,just as you say,using NewString Or NewStringUTF can import a C char array into a Java String variable! But now I have another question,when i use these two functions ,i found that it cant deal with Chinese character!
    do you have such experiences to deal with another language charset?if you have ,can you tell me how to deal with it.

  • Pls help : How to get the client ip address in EJB

    Hi experts,
    I need to find the ip addr of the client which makes the remote call.
    I tried using
    java.rmi.server.RemoteServer.getClientHost()
    But it throws ServerNotActiveException .
    When I tried this in RMI it works fine perfectly.
    If i am right EJB is just similar to RME and it should work in it too..
    Can you please help me in finding out the ip address of the client which makes the ejb call.
    Thanks & Regards,
    Mukunt

    Hi Mukunt,
    There is no portable way to do this in the Remote EJB programming model. The bean class
    is written in a way that is agnostic to those kind of plumbing-related details of the caller.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the wireless mouse to work

    my mouse isnt working

    I also have a problem with Microsoft Wireless Mobile Mouse 3000.  I lost the original dongle and bought a Bluetooth (TM) Usb dongle v2.0, which had only PC software disc included.  I cannot locate any mac software or drivers for the dongle.  Any suggestions on how to resolve connectivity? I

Maybe you are looking for