How to access ports in windows using JDK 1.5 or later

Hi,
My task is to read an input from the parallel port and use a modem to dial a phone number connected to a seril port .
At the same time i am generating an SMS depending on the input i read from parallel port.To run this SMS program i need a new version of java.
I've been searching for days to find a way to access serial port in a new version.I managed only 1.1.8.
Please..
If someone has any idea may i know how to copy the necessary files (dll and packages) to JDK 1.5 or later please let me know.
I'm using windows platform:(
Thanks
goodnews
If anyone needs info about Accessing ports in windows using jdk1.1.8 just post below..I'll give what i have.

user12858801 wrote:
Hello,
Has there been any development with this post?after 3 years, what do you think?

Similar Messages

  • How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    You can certainly use iWork, though I hesitate to recommend it to a seasoned Windows user simply because it would add another level of the unfamiliar with which you would have to gain familiarity. The iWork applications are certainly very competent and in most respects both easy to use and surprisingly powerful. They are not 100% compatible however, though that typically manifests itself in document formatting issues rather than anything more significant.
    I have never attempted to import emails from a Windows system into MacOS - other than in Outlook connected to an Exchange server, thus not really an issue at all. I doubt that the Mail app in MacOS can import directly, but of course you could always set the account(s) up on the Mac and then forward emails you want to keep from the PC. Not elegant, but it works. Virtually any Windows document or file, whichever application created it, can be opened or converted for use on a Mac, and using both systems on my desk each day I rarely see any issues switching stuff from one machine to the other. You may stumble over one or two issues, but likely not significant.
    In switching platforms there will be some inevitable issues, not so much with being able to import your stuff because there's usually a workaround or a utility that can help, but just with getting familiar with the platform and the differences between Windows and MacOS that can obscure their similarities. From time to time the support community here hears from a user who has found the migration very problematic and regrets it, but for the most part the phrase 'I should have done this years ago...' is rather more prevalent!

  • How to access Call Back Functions using *.dll in the Labview?

    Hai,
    I am Pavan Ram Kumar Somu.
    I am new to Labview, currently I am working on MVB Interface.
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
        1. Pointer Arguments(To which memory it points in Labview)
        2. function pointers Arguments
        3 .pointers in structures and pointer structures in structures and many other data types.
    Please Answer the below queries also:
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer  
        return types from API functions in DLL
    2. How to pass structure arguments to API functions in DLL and how to collect structure
        return types from API functions in DLL
    3. How to use callback functions(nothing but function pointers) in Labview and how to
        collect callback fuctions return types from API functions in DLL
    I need your help while passing these datatypes to API functions in DLL from labview.
    Suggest me if there is any other alternative for implementing this task.
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    II) #include <windows.h>
         #include <process.h>
         HANDLE rcvEvent0, rcvEvent1;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &rcvEvent0);
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    With regards
    Pavan Ramu Samu

    "Somu" <[email protected]> wrote in message news:[email protected]...
    Hai,
    I am Pavan Ram Kumar Somu.
    &nbsp;
    I am new to Labview, currently I am working on MVB Interface.
    &nbsp;
    I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
    &nbsp;&nbsp;&nbsp; 1. Pointer Arguments(To which memory it points in Labview)
    &nbsp;&nbsp;&nbsp; 2. function pointers Arguments
    &nbsp;&nbsp;&nbsp; 3 .pointers in structures and pointer structures in structures and many other data types.
    &nbsp;
    Please Answer the below queries also:
    &nbsp;
    1. How to pass pointer arguments to API functions in DLL and how to collect pointer&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    2. How to pass structure arguments to API functions in DLL and how to collect structure
    &nbsp;&nbsp;&nbsp; return types from API functions in DLL
    &nbsp;
    3. How to use callback functions(nothing but function pointers) in Labview and how to
    &nbsp;&nbsp;&nbsp; collect callback fuctions return types from API functions in DLL
    &nbsp;
    I need your help while passing these datatypes to API functions in DLL from labview.
    &nbsp;
    Suggest me if there is any other alternative for implementing this task.
    &nbsp;
    &nbsp;
    I am referencing some examples here:
    Examples:
    I)
    Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
    &nbsp;
    void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
    &nbsp;
    II) #include &lt;windows.h&gt;
    &nbsp;&nbsp;&nbsp;&nbsp; #include &lt;process.h&gt;
    &nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp; HANDLE rcvEvent0, rcvEvent1;
    &nbsp;
    /* Function call*/
    CanGetReceiveEvent(handle[0], &amp;rcvEvent0);
    &nbsp;
    Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
    &nbsp;
    With regardsPavan Ramu Samu
    Search the forum (forums.ni.com) for callback, pointer or handle, and you'll find that it is all possible, but not very easy.
    e.g.: http://forums.ni.com/ni/board/message?board.id=170&message.id=88974&requireLogin=False
    Regards,
    Wiebe.

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access the Approvals task using url

    Hi,
    Please let me know how to access the approval tasks in BPM using the url.
    I need to access the approval tasks from outside BPM
    Thanks

    Hi Latha,
    There are many ways to pass parameters to 2nd page.
    However try using hashmap.
    1st page code in processformrequest:
    import com.sun.java.util.collections.HashMap;
    HashMap hashmap = new HashMap();
    hashmap.put("var_enpid",enpid);
    pageContext.forwardImmediately("XX_SECOND_PG", //Function Name of the 2nd page
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashmap, // put Null if no parameters to pass thru hashmap
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    2nd page code in processrequest:
    String empid = (String)pageContext.getParameter("var_enpid");
    Regards
    Sanu

  • How to access emails in windows mobile using java?

    is there any facility in j2me to access email folders like inbox or sent in windows mobiles?
    Thanks in advance,

    See this, it may help you
    http://www.trustice.com/java/jnireg/

  • How to access server db by using IP

    I wanted to access the main server database , there are two database running one Live and the opther is Test . I got an IP 254.10 . I am running oracle 8i on windows 2003 server.
    hare krishna
    Alok

    Thanks yon ,don't i need to update listner Well, no. The listener on the server should already be configured for the 2 databases. If not, then ask your DBA to do so... or do it yourself. but since it's 8i databases, it sould not be a new install, so the listeners must already be set up.
    / sqlnet.ora file ? On the server, no. On your client, no also. The default configuration is OK.
    one more thing how to open a session through IP ?You won't open it through IP. Once you configured the tnsnames.ora file like
    ALIAS =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = server_ip_here)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = the_database_service_here)
      )You'll just use: sqlplus login/password@alias
    Regards,
    Yoann.

  • How to access variables in windows

    Hi,
    I am new on windows platform. I did work on linux.
    on linux we makes 2 entries in bash_Profile as ORA_dbENV and ORA_appsENV to set the variables which can be accessed using
    linux> . $ORA_dbENV
    linux> cd $ORACLE_HOME\appsutil\scripts\PROD_ltm
    linux PROD_ltm> ./adautocfg.sh
    how can we do this on windows?
    do we have to navigate to the directory manaully like
    cmd> cd d:\oracle\PROD\db\tech_st\10.2.0\appsutil\scripts\PROD_ltm
    d:\oracle\PROD\db\tech_st\10.2.0\appsutil\scripts\PROD_ltm>adautocfg.cmd

    Hi,
    how can we do this on windows?
    do we have to navigate to the directory manaully like
    cmd> cd d:\oracle\PROD\db\tech_st\10.2.0\appsutil\scripts\PROD_ltm
    d:\oracle\PROD\db\tech_st\10.2.0\appsutil\scripts\PROD_ltm>adautocfg.cmdYou will have to source the application/database env file (.cmd) manually before running AutoConfig script, then run adautocfg.cmd script as you have mentioned above.
    Regards,
    Hussein

  • How to access TC in Windows 7

    How can I access the TC from Windows?

    Load airport utility for windows. Have you done that?
    Make sure the TC has names the windows won't choke on.. ie
    Fred Blog's airport time capsule is bad..
    FBATC is great.
    Make sure all names are short, no spaces and pure alphanumeric.
    In windows explorer if the network shares will not show up.. try manually typing into the address bar..
    \\TCname (which is now your nice SMB compliant name.. or use the IP address).
    No luck ping it from a command window.. no response you have firewall issues.

  • How to access the datasource window in SSRS for sql server 2008 R2 for writing my query without having to go through the wizard?

    I have used SSRS a lot years ago with Sql Server 2000 and Sql Server 2005. I have written external assemblies, ... But now I have to do this with Sql Server 2008 (R2 -- which I realize I am way behind the times already but ...)  in sql server 2000 and
    2005 there was a tab for datasource to the left of the tab for design which was to the left of the preview tab. How do I get to the datasource window in sql server 2008 (r2) ?
    I see that datasource explorer.  But where can I get to the datasource window to edit my queries and so forth for sql server 2008 (R2)?
    Thanks
    Rich P

    I think I found the answer to my question --- just right-click on the the Data Sources or Datasets for editing connections and dataset queries.  I'm guessing it gets even fancier with Sql Svr 2012 - 2014.    Man, that's the one thing
    about coding platforms -- you let it go for a few years and come back, and everything has changed (well, a lot of things).  Now I need to figure out how to add an external assembly to SSRS 2008 (R2).
    Rich P

  • How do I hide ALL windows using apple H?  The final window stays open.

    When I press apple-H it hides the windows except the last one.  To hide that one I have to click on the desktop, then back to the window, then press apple H again to hide it. 
    Is this an intentional function of Mac's operating system?  Seems awkward, and it's certainly annoying as I have to access the desktop many times during my work day.  I realize I can press F11 and get the desktop, but that merely pushes windows to the side and when I open something new they come back on screen and interrupt my workflow.
    I would like to be able to press apple-H multiple times (or a different shortcut) until I reach a clean and clear desktop.  So if I have 3 applications open, I want to press apple-H 3 times and to reach the desktop.  When I open a folder, I don't want the windows that were pushed aside to slide on screen blocking my workflow.

    Why not use multiple desktops?
    I have 5 desktops being used. Desktop 1 is my "working" desktop where I open/close apps/windows a lot. While I keep Calendar on desktop 2, full screen. Mail on 3 at full screen, iTunes on 4 full screen and Stickies, Reminders and Notes on desktop 5.
    As I typed this, I tested it out. I opened Messages along with Safari (obviously) on my desktop 1. I then pressed Command H twice. Both Messages and Safari disappeared leaving me with a clean desktop. But it left all my other desktops alone and left each of the apps/windows opened on their desktops. I think this would be a great solution for you as you can leave apps/windows opened on other desktops with out having to disrupt your work flow on your main desktop.
    You can also assign an app to open just on one particular desktop. As with me, I have all of those apps to open at start up. But on that desktop that it's assigned to. Example I opened Calendar on desktop 2. Then I right clicked the App in the Dock, scrolled to Options then selected "Assign to This Desktop". And so on with the remaining desktops and apps.
    To move between desktops, since you have a Trackpad, just swipe back and forth with four fingers. Or if you are on desktop 1 and want to get to find quickly. You can either click on the app that is assigned to desktop 5, in my case Notes, Stickies or Reminders. Or you can 4-finger swipe up then select desktop 5.
    KOT

  • How to check ports in Windows?

    I would like to know if a specific port (eg.PORT=1527) is free or in use.
    I am using Windows 2003 Server Enterprise edition x64 with SP2.
    Thanks

    Hi Prasad,
    check following information about port.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=DSD.WORLD))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Produ
    ction
    Start Date                29-DEC-2008 15:20:19
    Uptime                    4 days 4 hr. 3 min. 25 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   E:\oracle\DSD\102\network\admin\listener.ora
    Listener Log File         E:\oracle\DSD\102\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\DSD.WORLDipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\DSDipc)))
      *(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sapdsd)(PORT=1527)))*
    Services Summary...
    Service "DSD" has 1 instance(s).
      Instance "DSD", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    in above message... you are seeing port number 1527.... its mean it is occupied.
    regards,
    majamil

  • How to access database from applet using connection pooling.

    Hi,
    I am using tomcat 4.1, JRE 1.4.2_10, MySQL 5.0, and IE 6.0. I can access the database using connection pooling from JSP without problems. But, if I try to acess from the applet, I get the following exception (related to JNDI.):
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    I know what this acception means, but I don't know how to fix it. I set up connection pooling in my Tomcat 4.1 that talks to MySQL 5.0. As I said, when I access from jsp, JNDI works. But, applet complains. Please help. In my applet, the following code accesses the database:
    ArrayList toolTipData =
          access.getToolTipData (projectName,interfac);This is the snipet of my Access class:
    public ArrayList getToolTipData (String projectName, String interfac) {
        System.out.println("In getToolTipData");
        ArrayList toolTipData = new ArrayList();
       try{
        Context ctx = new InitialContext();
        if(ctx == null )
            throw new Exception("No Context");
        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/interfacesDB");
        if (ds != null) {
          Connection conn = ds.getConnection();
          if(conn != null)  {
              Statement s = conn.createStatement();
              //For some reason paramtized queries don't work, so I am forced
              //to this in slighly less eficient way.
              ResultSet rst = s.executeQuery("select * from interfaces");
              while (rst.next()) {
                 if (rst.getString("Project_Name").equals(projectName) &&
                     rst.getString("Interface").equals(interfac)) {
                   System.out.println("getToolTipData: ITG #" + rst.getString("ITG"));
                   toolTipData.add("ITG #: " + rst.getString("ITG"));
                   toolTipData.add("SPNE Prime Name: " +
                                   rst.getString("SPNE_Prime_Name"));
                   toolTipData.add("PD Prime Name: " +
                                   rst.getString("PD_Prime_Name"));
                   toolTipData.add("IT Prime Name: " +
                                   rst.getString("IT_Prime_Name"));
                   toolTipData.add("MLC Priority: " +
                                   rst.getString("MLC_Priority"));
                   toolTipData.add("Gary's Prime: " + rst.getString("Garys_Prime"));
                   toolTipData.add("QA Prime: " + rst.getString("QA_Prime"));
                   toolTipData.add("Brief Description: " +
                                   rst.getString("Brief_Description"));
                   toolTipData.add("Project_Status: " +
                                   rst.getString("Project_Status"));
              conn.close();
      }catch(Exception e) {
        e.printStackTrace();
      return toolTipData;
    ....

    The jsp runs on the server, whereas the applet runs on the client so
    you must package with your applet any jndi implementation specific classes
    and
    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
    props.setProperty("java.naming.provider.url", "url:1099");
    Context ctx = new InitialContext(props);
    Object ref = ctx.lookup("...");

  • How to access entities from badi using CL_CRM_BOL_CORE

    Hi experts
    I'm implementing a  badi which will get called from sapgui and web ui  where I have to use the infromation from web ui . From badi we can use cl_crm_bol_core to access message container but in the same way how can I use get related entities etc.
      Those methods are avialable in the class  cl_crm_bol_core but I dont know how to get the reference to some mandatory importing parameters.
    kindly let me know how can I get the values in badi. below is my code. for   lv_parent ?= lr_core->get_entity( ). I have to pass some mandatory import parametes, I'm not having any idea how to get the reference to those import parameters.
    lr_core = cl_crm_bol_core=>get_instance( ).
            IF lr_core IS BOUND.
              DATA : lv_entity_coll TYPE REF TO if_bol_entity_col,
                     lv_parent TYPE REF TO cl_crm_bol_entity.
              lv_parent ?= lr_core->get_entity( ).
              lv_entity_coll ?= lr_core->get_related_entities( iv_entity = lv_parent ).
    Thanks & Regards
    Madhu

    Hi,
    you can use each BOL query object in your ABAP coding.
    The BOL queries are listet in transaction GENIL_MODEL_BROWSER.
    Here a short example where i read the address_guid for a businesspartner:
    METHOD GET_BUPA_ADDRESS_NO.
      DATA: core TYPE REF TO cl_crm_bol_core.
      core = cl_crm_bol_core=>get_instance( ).
      core->start_up( 'ALL' ).
      DATA:   ent TYPE REF TO cl_crm_bol_entity,
              ent_addr TYPE REF TO cl_crm_bol_entity,
              query   TYPE REF TO cl_crm_bol_query_service,
              result  TYPE REF TO if_bol_bo_col.
    * Geschäftspartner Kopf holen:
      query = cl_crm_bol_query_service=>get_instance( 'BuilHeaderSearch' ).
      query->set_property( iv_attr_name = 'PARTNER'
                           iv_value = im_partner_no ).
      result ?= query->get_query_result( ).
      ent ?= result->get_first( ).
      IF ent IS BOUND.
        ent_addr = ent->get_related_entity( iv_relation_name ='BuilAddressRel' ).
        IF ent_addr IS BOUND.
          CALL METHOD ent_addr->get_property_as_value
            EXPORTING
              iv_attr_name = 'ADDRESS_NUMBER'
            IMPORTING
              ev_result    = ev_bp_addrno.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    I hope this example helps to understand. Feel free to ask if there are questions.
    Kind regards
    Manfred

  • How to access CQ configuration settings using CQ HTTP client?

    Hi,
    I am trying to access CQ configuration in my application using CQ HTTP client. I am able to access through ConfigAdmin, but not directly.
    Please suggest a way to access the configuration directly by CQ HTTP client.
    Is CQ proxy settings directly available to CQ HTTP client? if so, how do we access it?
    Thanks

    Yes it is directly available. The proxy does not need to be explicitly configured for each HttpClient since it is done automatically when the com.day.commons.osgi.wrapper.commons-httpclient gets activated.  Make sure your bundle imports [1] and call as HttpClient client = new HttpClient();
    [1]
    org.apache.commons.httpclient,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)
    org.apache.commons.httpclient.methods,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)

Maybe you are looking for

  • A few protools to logic questions.

    Hello. long time protools user and returning logic user (version 3.x was the last interaction) am really enjoying the sequencing aspects to logic but am becoming increasingly frustrated by what seems to be a few really simple features but constantly

  • I am unable to see the words on page 2 and on in my document

    I have an essay that I typed on a blank document of pages. In the thumbnails and word count, all of my words are in the essay but I cannot see anything from page 2 and on. I have closed and retyped twice and it still does this. Help?

  • Library issue with weblogic

    Hello, I have installed weblogic 10.3.4 and ADF 11.1.1.4 on my solaris server and I have 4 war files and an ear file which I am trying to deploy on the server. I have copied some libraries in the lib folder at the domain level : /Oracle/Middleware/us

  • Create Service Request to open for the incident number we pass

    I want to call open Service Request form(Form:CSXSRISR) with details of incident number already loaded. I am trying to pass parameters like request_id, p_incident_id ,... When the form opens it says no such parameter is there. Is there any way to ope

  • Synchronize Files error on Creative Cloud desktop

    Hi there, I can't synchronize anymore my files with the creative cloud Desktop. I am running Creative Cloud Windows 8.1 64 bits. My OS and my softwares are uptodate. I think it's since 1 or two CC Desktop update that i can't synchronize files anymore