Oppening a dial up connection with Java

How can I open a dial up connection using a java code ??

i guess you should try
String cmd = "c:\windows\dialup.exe";
String envp [] = null; //environment variable
Runtime.exec(cmd, envp);

Similar Messages

  • Sharing a Vista Dial up connection with a Mac wire wirless connection

    I have a problem i would like to share the internet connection from my wifes PC (dial up connection) with my mac book pro via wireless connection between each computer. Now it works ok (after fiddling with firewall on PC) when we have the dial up connection on the mac and use the wireless from the PC to access the internet the same time. but it does not work the other way. I tried to allow sharing on both the dial up or wireless, I have not found the same option which we have in the mac to tell the wireless connection which internet connection is to be shared. Is there any easy way to do it or must i pay a wireless router to access the dial up connection.

    i guess you should try
    String cmd = "c:\windows\dialup.exe";
    String envp [] = null; //environment variable
    Runtime.exec(cmd, envp);

  • Run dial-up connection from Java Program?

    Is there a way to run dial-up connection from a Java Program? It needs to platform independent.
    Thanks.
    Virum

    I very much doubt it, at least not platform independent. I had a, oops, heck of a time doing that from Visual Basic, where it is much easier to work with operating-system stuff like that than it is in Java. I finally ended up buying a RAS component to call from my VB program.

  • How to control tcp connection with java tcp socket programing ??

    Hi,
    I am connecting a server as using java socket programming.
    When server close the connection (socket object) as using close() method ,
    I can not detect this and My program continue sending data as if there is a connection with server.
    How to catch the closing connection ( socket ) with java socket programming.
    My Client program is as following :
    import java.io.PrintWriter;
    import java.net.Socket;
    public class client
      public client()
       * @param args
      public static void main(String[] args)
        Socket socket=null;
        PrintWriter pw=null;
        try
                          socket = new Socket("localhost",5555);
                          pw = new PrintWriter(socket.getOutputStream(),true);
                          int i=0;
                          while (true)
                            i++;
                            pw.println(i+". message is being send.");
                            Thread.sleep(5000);
        } catch (Exception ex)
                          ex.printStackTrace();
        } finally
                          try
                            if(pw!=null)pw.close();
                            if(socket!=null)socket.close();
                          } catch (Exception ex)
                            ex.printStackTrace();
                          } finally
    }

    I changed the code as following. But I couldn't catch the EOFException when I read from the socket. How can I catch this exception ?
    import java.io.BufferedReader;
    import java.io.EOFException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class client
      public client()
       * @param args
      public static void main(String[] args)
        Socket socket=null;
        PrintWriter pw=null;
        BufferedReader bufIn=null;
        InputStreamReader inRead=null;
        InputStream in=null;
        try
                          socket = new Socket("localhost",5555);
                          in = socket.getInputStream();
                          inRead = new InputStreamReader(in);
                          bufIn = new BufferedReader(inRead);
                          pw = new PrintWriter(socket.getOutputStream(),true);
                          int i=0;
                          while (true)
                            i++;
                            try
                              bufIn.readLine();
                              pw.println(i+". message is being send.");
                              System.out.println(i+". message has been send");
                            } catch (Exception ex2)
                              System.out.println(ex2.toString());
                              System.out.println(i+". message could not be send");
                            } finally
                            Thread.sleep(5000);
        } catch (EOFException ex)
                          ex.printStackTrace();
        } catch (InterruptedException ex)
                          ex.printStackTrace();
        } catch (IOException ex)
                          ex.printStackTrace();
        } finally
                          try
                            if(pw!=null)pw.close();
                            if(socket!=null)socket.close();
                          } catch (Exception ex)
                            ex.printStackTrace();
                          } finally
    }

  • SAS connectivity with JAVA

    Hi,
    I have a piece of code to connect to SAS data set i have taken the drivers provided by SAS and the below code is giving error saying server not accepting userid/password but with that userid and password i can connect to SAS in other applications can any body suggest what's wrong with this.
    Driver driver=(Driver)  Class.forName("com.sas.net.sharenet.ShareNetDriver").newInstance();         System.out.println("Driver loaded");         System.out.println("JDBC:"+driver.jdbcCompliant());         String url="jdbc:sharenet://164.56.174.116:8591";         Properties credentials=new Properties();         credentials.put("user","userName");         credentials.put("password","Password");         Connection connection=driver.connect(url,credentials);         System.out.println("Connection made");         connection.close();         System.out.println("Connection closed");
    i am getting this error
    Exception in thread "main" java.sql.SQLException: Sharenet.S58.ex.txt: Sharenet.S279.ex.txt: Sharenet.S06.ex.txt: Userid/Password not accepted by server...         at com.sas.net.sharenet.ShareNetConnection.<init>(ShareNetConnection.java:219)         at com.sas.net.sharenet.ShareNetDriver.connect(ShareNetDriver.java:165)

    Once you get past actually getting a driver the configuration of it is entirely driver dependent.
    There are at least four ways that I can't think of to do use validation. There could be others. They way you have choosen, if supported at all, might be dependent on the exact name used. For example (not necessarily a solution) it could be that instead of 'user' you need 'usr' or 'User'.
    Often this involves looking at the driver documentation and just guesssing until something works.

  • Unable to achieve dial-up connection with G4 Powerbook

    I have a G4 PowerBook that I use with a Netgear wi-fi router for Broadband and my server, Virgin. I want to use the PowerBook with just a dial-up connection to another server, BT. I turn off Airport. I have spent a long while with the BT helpline. I do all the settings they suggest. Then I finally press, Connect. I read: "connecting to server". Then it obviously fails and says Disconnecting. Disconnnecting continues ad infinitum and can only be terminated by doing a Restart. What am I doing wrong, please?

    Hello Shoboy,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you have recently purchased a refurbished HP Compaq dc7800 Business PC with a 56k dial-up modem installed and the dial-up modem is not working. I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at Business PCs - Compaq, Elite, Pro.
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Filenet connection with java api not working

    I have written the following code to connect content engine and process engine..
    MY content engine is connected fine and good...But process engine is not connecting
    code:
    public String PE_CONNECTION_POINT      = "PEConnection";
    public Connection ceConnection;
    public Domain ceDomain;
    public void testFileNetConnection()
    * Connect to Content Engine and retrieve a list of
    * properties for the base 'Document' document class
    ceConnection =
    Factory.Connection.getConnection(FILENET_URI);
    Subject ceSubject =
    UserContext.createSubject(ceConnection, FILENET_USERNAME, FILENET_PASSWORD, null);
    UserContext.get().pushSubject(ceSubject);
    ceDomain = Factory.Domain.fetchInstance(ceConnection, CE_DOMAIN, null);
    ObjectStore ceObjectStore = Factory.ObjectStore.fetchInstance(ceDomain, CE_OBJECTSTORE, null);
    ClassDefinition classDef =
    Factory.ClassDefinition.fetchInstance(ceObjectStore, "pawan", null);
    PropertyDefinitionList properties = classDef.get_PropertyDefinitions();
    for (Iterator propertyIter = properties.iterator(); propertyIter.hasNext();) {
    PropertyDefinition property = (PropertyDefinition) propertyIter.next();
    System.out.println("Property: " + property.get_DisplayName());
         //this.instantiateFolder(ceObjectStore);
         //this.createFile(ceObjectStore, ceDomain);
    UserContext.get().popSubject();
    * Connect to Process Engine and retrieve a list of
    * Queues for this Connection Point
    VWSession peSession = new VWSession();
    peSession.setBootstrapCEURI(FILENET_URI);
    String[] queueNames = null;
    try
         peSession.logon(FILENET_USERNAME ,FILENET_PASSWORD,PE_CONNECTION_POINT);
         queueNames =
         peSession.fetchQueueNames(VWSession.QUEUE_PROCESS);
    catch(Exception es){es.printStackTrace();}
    for (String queue : queueNames)
    System.out.println("Queue: " + queue);
    The output of above code I have attached part of successful connection of the content engine and the error of process engine
    Property: Ignore Redirect
    Property: Entry Template Object Store Name
    Property: Entry Template Launched Workflow Number
    Property: Entry Template Id
    java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ObjectURL
         at filenet.pe.peorb.client.ORBSession.establishORBSession(ORBSession.java:667)
         at filenet.pe.peorb.client.ORBSession.<init>(ORBSession.java:985)
         at filenet.vw.server.PECommandsFactory.getPECommands(PECommandsFactory.java:119)
         at filenet.vw.api.VWSession.logonByDomain(VWSession.java:864)
         at filenet.vw.api.VWSession.logon(VWSession.java:723)
         at FileNetConnectionTest.testFileNetConnection(FileNetConnectionTest.java:97)
         at FileNetConnectionTest.main(FileNetConnectionTest.java:35)
    Caused by: java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ObjectURL
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.ibm.websphere.naming.WsnInitialContextFactory.init_implClassCtor(WsnInitialContextFactory.java:172)
         at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:112)
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
         at filenet.pe.peorb.client.ORBServiceHelper.getORB(ORBServiceHelper.java:442)
         at filenet.pe.peorb.client.ORBServiceHelper.initFromORBRouterInfo(ORBServiceHelper.java:286)
         at filenet.pe.peorb.client.ORBServiceHelper.<init>(ORBServiceHelper.java:873)
         at filenet.pe.peorb.client.ORBSession.establishORBSession(ORBSession.java:653)
         ... 6 more
    Exception in thread "main" java.lang.NullPointerException
         at FileNetConnectionTest.testFileNetConnection(FileNetConnectionTest.java:104)
         at FileNetConnectionTest.main(FileNetConnectionTest.java:35)
    When to remove the above error I add IBMORB.jar in enviroment variable then I get following error
    log4j:WARN The log4j system is not properly configured!
    log4j:WARN All ERROR messages will be sent to the system console until proper configuration has been detected.
    Exception in thread "main" com.filenet.api.exception.EngineRuntimeException: SECURITY_INVALID_CREDENTIALS: Invalid credentials.
         at com.filenet.apiimpl.wsi.ClientOperation.getCredential(ClientOperation.java:303)
         at com.filenet.apiimpl.wsi.ClientOperation.setCallContext(ClientOperation.java:194)
         at com.filenet.apiimpl.wsi.ClientOperation.start(ClientOperation.java:102)
         at com.filenet.apiimpl.wsi.ClientOperation.run(ClientOperation.java:69)
         at com.filenet.apiimpl.wsi.ServiceSession.getObjects(ServiceSession.java:242)
         at com.filenet.apiimpl.util.SessionHandle.getObjects(SessionHandle.java:334)
         at com.filenet.apiimpl.core.Session.callGetObjects(Session.java:121)
         at com.filenet.apiimpl.core.Session.executeGetObject(Session.java:325)
         at com.filenet.apiimpl.core.Session.getObject(Session.java:339)
         at com.filenet.apiimpl.core.IndependentObjectImpl.getObject(IndependentObjectImpl.java:154)
         at com.filenet.apiimpl.core.IndependentObjectImpl.refresh(IndependentObjectImpl.java:161)
         at com.filenet.api.core.Factory$Domain.fetchInstance(Factory.java:1543)
         at FileNetConnectionTest.testFileNetConnection(FileNetConnectionTest.java:69)
         at FileNetConnectionTest.main(FileNetConnectionTest.java:35)
    Plz help me out..Thank you

    I'm having the same problem.. I think there's something wrong with it. [fast weight loss tips|http://www.weightlossgidiet.com]

  • MS Olap connection with java api

    Hi,
    I am new to sql 2005 analytical server. How to connect to the sql 2005 analytical server using java programming language. If any one of you know please let me know details with some sample code

    If you are going to post code please use the code formatting tags. Select the code you are posting in the message box and click the CODE button.
    Your error is here
    Problem getting JAAS Context: java.lang.SecurityException: Unable to locate a login configurationYou should look into that.

  • Accessing Windows dial-up connections from java

    Hello,
    Anyone has any idea how to go about accessing Windows existing dialup connections and instruct windows to dial-up to internet using the selected connection profile?

    1. why are you using java for a Windows only program?
    2. why are you attempting to do something windows specific for
    a non-os specific language
    WOW!
    I've been using java for applications I only run on Windows, Didn't know this is frowned own. You gotta be kidding me right? Do you really think all java programs are written in mind for it be be platform independant? I've been programming in java for around 3 years and we only run it on Windows systems. Non-os specific is nice, but everyone that programs using java isn't looking for that feature. If everyone else out there is only using java because it's platform independance please correct me, I'll be very surprised. One more question, just becaus he is possibly only going to use for a windows program, he should go learn another language? Sorry this post really surprised me.

  • Dial Up Connection With My Recon HP7800 Windows 7 Using An Internal 5600K Modem

    Just purchased a refurbed HP7800 with Windows 7. They installed an internal 5600K modem but it will not connect to the Internet using AOL as my connection.
    I'm not real savy about this newer technology but the modem doesn't seem to be operating.

    Hello Shoboy,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you have recently purchased a refurbished HP Compaq dc7800 Business PC with a 56k dial-up modem installed and the dial-up modem is not working. I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at Business PCs - Compaq, Elite, Pro.
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Crystal Report Connectivity with Java

    How to connect our program with crystal report?

    I have never used crystal report. I have created a stand-alone application in java 6 with SQL server 2000 as backend. Its a simple application that maintains records of employees in an organization. I want to use crystal report for report generation. I have crystal report 9 on my system. I have searched a lot on google but could not find any relevant help. Can u provide help in this regard or send me links from where i could get any lead.
    I am not using any IDE as such now. Is it actually needed?
    Any help in this regard would be highly appreciated.

  • Foxpro connectivity with java

    can any body tell me how to connect the foxpro (.dbf) file with my java program. i have already tried this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:dsn_foxpro", " ", " ");
    but this work only for the whole database not for a single table within it, can any body help me in solving this problem

    The Foxpro ODBC lets you set up a DSN for either a database or free table. Try setting up a DSN for just that table.
    I have found though, that even if you have a DSN set up for a database, you can still do selects off of a single table.

  • Installing and set-up a dial up connection with an USB modem

    Hello.
    I moved recently to London, and due to some kind of critical lack of financial sustainability, I cannot afford to pay monthly a decent Internet connection. However I have a phone line on my house so I was thinking on using a USB 56k modem to connect via dial-up to Internet (my laptop don't have any integrated modem or PCMCIA port). But I honestly don' t know if that will work (all references googling send me to setting up a 3g modem, which is not the case)
    What should I do? It will work fine? I remember vagely using ppp-on years ago, and editing some files... But I recknon I wont use anymore tty0 or tty1 if it is a USB device (I am using a custom kernel, so after going for work I' ll do a make menuconfig to check driver aviability). And just for curiosity... It will have dial-up tone? If I have to go nostalgic I' d rather experience the full thing.
    Thanks in advance

    http://www.freeukisp.co.uk/about-dial-u … access.htm
    It is the first result googling "free dial up uk", but there is quite a bunch out of there. I only need to look and choose. In Spain at least, I didn't had to pay (just the call rate, wich was free for local calls, so yep, free)
    I use the temrinal, and when in X, fvwm95, so I assume wvdial is for me.
    Thanks for the quick answers
    Last edited by vladimir_1922 (2012-03-19 09:48:33)

  • Database connectivity with java!

    hello, has anyone got a "detailed" tutorial they can send on:
    1.setting up mySQL database (not just install)
    2.setting up J/connector (not just install)
    3.a tutorial on how i can get a servlet to interact with a client through a webpage!
    does it sound like i'm trying to learn how to do 5things at once? well your right... i want to start small, but i need to learn SQL to set up a database, and i need to j/connector to interact with the database.
    i'm less worriered about the third point at the moment, because there is a sun tutorial i've been looking at!
    any help would be more then appreciated!

    1.) use the mySQL documentation (it's not that bad)
    2.) see the j2ee tutorial (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ - chapter 11 is about servlets)
    3.) learn something about HTML and HTML formulars, your servlet could interpret the parameters transmitted from formulars (by HTTP GET, HTTP POST, ...)
    4.) discover the API documentation for the packages javax.servlet and javax.servlet.http to learn more about the possibilities
    5.) try it out (e.g. create a servlet which presents all the servlet parameters which are available: servlet information, request information, response information, ...)
    6.) have fun!
    hope it helps...

  • Flash connect with Java Web service

    I would like to develop a Flash UI communicating with Database. And i create a web service (in Java) that asking database
    to return a table.
    So i don't know why the datagrid in UI databind with the web service but it can't display / mapping with the return data.
    What databind type should i choose ? And what type or return value in the web service ? ( ResultSet / String Array, etc )

    Resolved when I create a deployement profile explicitly.
    The Webservice.deploy that gets created automatically when I create a web service was giving this issue.
    Thanks
    Saikrishna

Maybe you are looking for

  • Need to apply a separate credit line item in Invoice doc.

    Dear SAP experts, Is it possible to apply a separate credit line item on a invoice document to reduce the net amount billed against that invoice and it has to show in invoice ouput form. Thanks and regards, Hari Challa.

  • Link to Interactive Report Using Report Column as Parameter Value

    I'm using Apex version 4.0. I have an interactive report that I want to link to a second interactive report in order to create drill down functionality. The user will click on a column in the main report called "Insurance Company Name" which will lin

  • How can i active my multimedia and packet data?

    pls help of how to ative my multimedia and packet data, or wat the instractions i need to follow in order for me to active the multimedia model of the phone is 6070.hope u will help me in this .coz i want to share pics in my frnds and send a email to

  • R12 isetup error

    Using iSetup for R12.1.2 getting invalid input source when uploading ownloading the extract from central instance Successfully copied the Extract Time taken to download Extract and write as zip file = 0 seconds Parsing driver.xml Time taken to parse

  • Cando touchscreen right click evtouch - should work for others too

    I've made some changes to the xf86-input-evtouch PKGBUILD that i enclose here (not the official one) , now it works out of the box with Cando touchscreen in monotouch mode and with windows style right click. It should work with others touchscreen too