Starting JWS on a remote linux Machine

how can i start an application through JWS, running as a daemon in the background, without using X11 as my application doesnt need one

You can't.
Java Web Start turns any application into a swing application, and so, requires X11 initialization on unix.
/Dietz

Similar Messages

  • Finder to remote linux machine communication

    Amongst other things, I'm using my mac as a display for jobs being run on a remote linux workstation via X11. That all works great. I have the linux machine mounted on my mac and can navigate it via the Finder. What I'd like to be able to do in the Finder is navigate to a specific kind of file (whose extension is 'use') on the linux box and double click on it and have the linux machine start a job on that file and display it back to the mac. If I double click on such a file, can I invoke a shell script (or whatever) on the mac which takes the full path name of the double clicked file as an argument. That shell script would basically contain something like:
    xhost + linux_machine
    rsh linux_machine -l myuserid linux_script fullfilename
    where linux_script is a script that would run on the linux box which would start the desired job and xdisplay it back to the mac.
    Ideally the script that runs on the mac would not bring up any transient terminal windows etc.
    Any ideas on the best way to accomplish this?
    Many thanks,
    Mick.

    Hi Michael,
    I'm (mostly) all up and running now. I wrote an AppleScript based application that does all the shell script commands (ssh etc) based on the file and path name passed into it from the Finder when I double-click on my *.use files. I have tried to set up all *.use files to be operated on by my AppleScript application via the GetInfo window but, infuriatingly, the GetInfo window refuses to accept the application when I click on Change All. When I do that the Open With application just changes to <None>. I tried removing my ~/Library/Preferences/com.apple.LaunchServices.plist file and letting it regenerate itself, but the system stubbornly refuses to accept the application binding. I can do the bindings individually, but not globally. I have hundreds of these files...
    If anybody know their way around this Finder bug (I think it's a bug) then I'm all ears.
    Thanks.

  • Unable to start Oracle DataBase 11g on Linux machine

    Hi friends,
    Issue : NOT able to start the Oracle Data Base 11g on Linux machine
    I've successfully installed Oracle-DB-11g on my Linux machine.
    Note : I haven't declared or exported any variable(s) , actually I'm not sure how and where to do this.
    Can someone look into my issue , and please let me know if i have to export any variables and how/where?
    Thanks

    Hi;
    You need to set your env. or put them in .bash_profile file
    Please see
    http://www.oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-5.php << section Additional Setup
    Regard
    Helios

  • How do i start repostory browser listener on linux machine

    Hi,
    i have installed owb 10.2.0.1 on Linux machine. i am connecting that server from my desktop to do mapping. work flows. now i want to open repository browser from my desk top. how do i start repository browser listener at server.
    how can i open repository browser in my desktop?
    how do i get url for repository browser.?
    regards,
    pavan

    after the listener is started on the server, suppose you can access the server from the web browser, try the URL: https://hostname:8999/owbb/RABLogin.uix
    -haijun

  • Invoke OATS script from a remote Linux machine

    We have the entire Oracle Application Testing Suite installed on a Windows machine. The test scripts (Open Scripts) are on the same machine. Is there a way to invoke the test scripts on this machine from a different Linux machine? These are not load testing scripts. These are functional testing scripts.
    Will the Linux version of remote agent help here?

    Hi,
    Functional tesing is only available on Windows (for the moment). It is to do with the browser .dlll.
    (unlesss someone can prove me wrong :) )
    Wayne.
    Edited by: byrne_wayne on Jun 2, 2012 12:35 AM
    Edited by: byrne_wayne on Jun 2, 2012 12:35 AM

  • Applet unable to connect to a remote linux machine

    I have an applet running on my system. There is a server running on the linux machine. while trying to connect to this server from my applet the following exception is obtained.
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.20.244:5222 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at org.jabber.applet.connection.ContinuousConnection.connect(ContinuousConnection.java:148)
         at org.jabber.applet.communication.JabberComm.connect(JabberComm.java:129)
         at org.jabber.applet.JabberApplet.logonUser(JabberApplet.java:1016)
         at org.jabber.applet.JabberApplet.logonDialog(JabberApplet.java:645)
         at org.jabber.applet.JabberApplet.logonDialog(JabberApplet.java:633)
         at org.jabber.applet.JabberApplet.init(JabberApplet.java:407)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    from the applet can i connect to the remote server?
    how could the connection be obtained
    thanks in advance
    zeta

    There could be compatibility issues. Refer to "WebLogic Server Compatibility".
    Link: [http://download.oracle.com/docs/cd/E12839_01/web.1111/e14529/compatibility.htm#INRMP118]
    Are you using a JMS bridge between the two domains?
    Edited by: Manish Chellappan on Sep 3, 2009 3:35 PM

  • Ho do I know if an ORACLE autmatically starts up with the linux machine?

    three of the machines are RAC database and there is one single node database. How do I know if the DB will automatically startup with Linux machine? and if does not automatically start how can I modify the DB's so that they will automatically start with the Linux Machine?
    Thanks,
    Jayanth

    I assume we're talking about 11gR2.
    Try the following:
    ps -ef | grep ohas
    In general if you use ASM you use Oracle Restart.
    Here is the [url http://docs.oracle.com/cd/E11882_01/server.112/e25494/restart001.htm#ADMIN12709]documentation.
    In fact it's not that complicated and if you use GUI tools (don't hate) such as asmca, netca, dbca all the components are automatically registered with Oracle Restart. If you don't then you can always use srvctl utility (same as in case of RAC) to start, stop, register, remove, check configuration of your services e.g. listener, asm, instances and much more. Actually there're a lot of similarities to Oracle Clusterware, but of cause it's just a single instance with all the simplifications that follow.
    It's just very unpractical for me to type a page of text that would pretty much copy readily available documentation.
    Hope it helps.
    Edited by: Max Seleznev on Nov 29, 2012 9:06 PM

  • Accessing remote sybase database on unix/linux machine thru telnet

    How can i access a sybase database server thru telnet....using java code. i am writing a client for windows...Also the Sybase server is on a unix or linux machine.............please elp me out ...its urgent..

    Why do you want to access it through telenet.
    If you want to access/manipulate data in the database use JDBC with a driver for Sybase (Which you will be able to find if you do some googling)

  • Install JSC on a remote linux

    Hi.
    Did anybody install JSC on a remote linux exporting the X?
    I want to install it on our department server (my machine has not memory enough) but, although the X windows are correctly exported (xclock works fine) when i try to execute the installer i get:
    El instalador no se ha podido ejecutar en modo gr�fico. Intente ejecutar el instalador con el distintivo -console o -silent.
    Then i try with "-console" but i get:
    The wizard cannot continue because of the following error: Invalid command line option: console is not supported (1001) (403)
    WARNING: could not delete temporary file /root/ismp001/4095551
    Thanks

    I've tried to install it on the server itself, starting the X on it. The errors are the same, so it is not an error about exporting the X...
    OK, the problem was solved with the instructions from
    http://blogs.sun.com/marcoscorner/entry/creator_2_0_ea_on

  • Execute command on remote linux and return output?

    Guys,
    I'm new to Java and still working hard on my way thru.
    I used a client software "putty" to logon to a linux machine. as the window is exactly like what it is in linux. in "/proc" I typed in "grep cpu stat" which returned 2 lines result of the cpu status on the screen.
    now, I have to do the same thing in Java. To execute a line of command "grep cpu stat" on the remote linux. then return the 2 lines result to my code and store them in string variebles. Can anyone please help me with this and show me some sample code of doing this Please.
    Thanks, and thanks big time
    , Jimbo

    Hi,
    look at this code, maybe it will help you...
    //this is only method
    public int exec(String[] command, OutputStream outStream) {
         Process p;
         int exitValue = -1;
         ByteArrayOutputStream tmpErr = new ByteArrayOutputStream(OUTPUT_BUFFER_SIZE);
         try {
              p = Runtime.getRuntime().exec(command);
              BufferedInputStream out = new BufferedInputStream(p.getOutputStream());
              ThreadStreamPumper pumper = new ThreadStreamPumper(out, tmp);               pumper.start();
              p.waitFor();
              exitValue = p.exitValue();
              pumper.join();
              out.close();
              p.destroy();
              tmp.close();
              tmp.writeTo(outStream);
         } catch (IOException ioe) {
              return -3;
         } catch (InterruptedException ie) {
              return -4;
         boolean isOkay = exitValue == 0;
         if (tmp.size() > 0) {
              return -5;
         return exitValue;
    //this is class
    *  class for continually pumping the input stream during Process's
    *  runtime.
    class ThreadStreamPumper extends Thread {
         private BufferedInputStream stream;
         private boolean endOfStream = false;
         private boolean stopSignal = false;
         private int SLEEP_TIME = 5;
         private OutputStream out;
          *  Creates new <code>ThreadStreamPumper</code>
          *@param  is   From where to pump datas
          *@param  out  Where to send datas
         public ThreadStreamPumper(BufferedInputStream is, OutputStream out) {
              this.stream = is;
              this.out = out;
          *  Gets datas from <code>in</code> and sends them to <code>out</code>.
          *@exception  IOException  When some IO error occurs
         public void pumpStream()
               throws IOException {
              byte[] buf = new byte[BUFFER_SIZE];
              if (!endOfStream) {
                   int bytesRead = stream.read(buf, 0, BUFFER_SIZE);
                   if (bytesRead > 0) {
                        out.write(buf, 0, bytesRead);
                   } else if (bytesRead == -1) {
                        endOfStream = true;
          *  Main processing method for the <code>ThreadStreamPumper</code>
         public void run() {
              try {
                   //while (!endOfStream || !stopSignal) {
                   while (!endOfStream) {
                        pumpStream();
                        sleep(SLEEP_TIME);
              } catch (InterruptedException ie) {
              } catch (IOException ioe) {

  • Relative path for Download directory folder.I created a firefox profile and i wanted to use this profile in multiple machines.I wanted to use a relative path for download directory with respect to the profile folder.I need this on Linux machines

    I have a use case where I need to use different download directories with different firefox profiles.I need to use this profiles in multiple linux machines.
    I need to have a relative path to my download directory with respect to the profile folder.
    Ex: I have a selenium test which opens a website and downloads it to my machine.I want this downloaded file to go into some specific folder relative to this profile folder.How do I do this??

    That is not a practically empty xinitrc - that file only needs one line: exec WM.  Other things are entirely optional, and some of them very useful, but I'd encourage you to stick with the simplest xinitrc that will do what you require.
    Is slim involved?  Probably.  That is the source of many problems.  But to start narrowing this down, I have 3 suggestions:
    1) temporarily (at least) change your inittab to default to runlevel 3 ... actually, is it currently set to 5 or 3? if it is currently 3 that would explain why slim doesn't start.
    2) at a tty in runlevel 3 use "xinit" instead of "startx".  Startx is fine most of the time, but it is essentially just a complex wrapper for xinit.  That complexity can often iadd useful functionality, but it *always* makes troubleshooting more difficult.  So for now just use a vanilla 'xinit'.
    3) remove dbus-launch from your exec line in xinitrc.  This is done by console-kit so it is redundant and potentially problematic.  Further BOTH of these are taken care of by slim, so I'd even suggest getting both a jump start on being ready for slim and simplifying troubleshooting by removing both of them.  Just make that line "exec openbox-session"
    Edit: adding one more:
    4) temporarily switch out openbox-session for openbox.  I suspect the reason feh's setting of the background is getting overridden is due to a script or setting in openbox's autostart settings - many of these are only invoked when "openbox-session" is called, while "openbox" starts *just* the window manager itself.
    Last edited by Trilby (2012-10-03 17:30:36)

  • How to bind an IIS to the enterprise portal installed on a linux machine

    Dear all,
    I am very new to the topic of Enterprise Portal.
    Our intention is, to develop .NET IViews and deploy them in the Enterprise Portal.
    The Enterprise Portal Server is set up on a linux machine.
    The Guy who did install the Portal Server, has no idea how to "integrate" the Microsoft IIS to the Portal.
    After deploying my .net Component, i tried to view this component in the portal (by right clicking the mouse on the Component in in the .NET Solutions Explorer).
    This gives me the following error:
    Portal Runtime Error
    An exception occured while processing a request for:
    iView:N/A
    Component Name: N/A
    Could not find portal application com.sap.portal.dotnet.framework.
    Exception id: 02:06.......
    See the details for the exception ID in the log file
    I think that this has something in common with integrating the IIS on the Linux Machine, and maybe additionaly installing the pdk.net on the IIS webserver machine which should be used.
    Thank you for your help.
    Regards

    Hi,
    Welcome to the world of Enterprise portal
    Seems to me like you are trying to use the PDK for .NET. If so - Please read the overview section in the documentation to get a general idea of how it works (for example - IIS is not used at all!).
    See the Visual Studio integrated help or click this https://media.sdn.sap.com/html/submitted_docs/dotnet/index.htm
    there go to "Getting Started" and mostly "Overview".
    Anyway, It seems like the problem is that you didn't deploy the 2 required SDA's to the portal. You should also take a look at the "installation and configuration" guide. Download it here: https://www.sdn.sap.com/sdn/developerareas/dotnet.sdn?contenttype=url&content=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/pdk for .net administrator guides.zip
    Good luck,
    Ofer

  • A few questions re: installing 10g on a virtual linux machine

    I am in the process of building up a virtual linux box on my XP laptop and have a few questions regarding the networking setup. Purpose is to have a sandbox *nix setup at my fingertips. 
    Here's what I have so far:
    Dell Latitude laptop running Win XP. This is a DHCP machine.
    Installed VMWare Player
    Created virtual machine with OEL 4.8, with NAT network config
    So far, so good. Next step is to install 10.2.0.4 EE on the virtual Linux machine. When installing 10.2.0.4 directly on the XP system, of course I had to install a loopback adapter to provide a fixed IP address for Oracle, all well documented in the installation guide. While it is my understanding that the loopback adapter, as installed and configured on Windows, is primarily a Windows issue, I would expect something of the same fundamental under Linux insomuch as it is still a dhcp machine. However, when checking the relevant installation guide, the section on networking considerations and DHCP simply gave a two-paragraph discussion of what DHCP was. I found no discussion on how to deal with it in a *nix environment.
    This particular vmware setup gives me a choice of 3 network configs - Bridged , NAT, or host-only (private vitrual net shared only with the host) I am currently configured to use NAT because I need outside connectivity (to yum server, etc) but do not want an additional device (ip address) on the real network. I'm guessing I could use host-only most of the time and when I need to access the internet, shut down the db and switch back to NAT.
    This is all new territory for me, so I guess I'm looking at some 'best practices' advice as much as anything.

    Ed,
    I would encourage going for OEL 5u2 or 5u3 and including the oracle-validated package. It makes sure you have all the prerequisites for 10gR2 and makes life much easier.
    I set up dozens of these machines for Oracle U classes. What I started with originally is 2 virtual NIC - a NAT and a Bridged. The Bridged allowed me to access the outside world at any time and was assigned using DHCP from the local network. The NAT I'd configure manually as a static IP, and I used it primarily to provide a second 'virtual network' so the classroom machines could communicate with each other.
    In my latest iteration, I've dropped back to a single Bridged NIC based on DHCP. For Oracle install purposes, I
    - pick a hostname (myhost.oraclass.com)
    - switch to static IP (I've scripted it - edits /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/syscfg/network : hostname) but using the network GUI tool is ok as well
    - I choose the static to macth the DHCP address assigned
    - inject a single line into the /etc/hosts with the new static address, the hostname, and a hostname that I want to publish
    192.168.4.21 myhost.oraclass.com orahost student21.oraclass.com student21
    - set a global env variable (/etc/profile.d/oraprofile.sh (export HOSTNAME=myhost.oraclass.com)
    and after installing Oracle, I switch back to DHCP. Then if I want to travel, I can easily switch the 'static' address as often as I want (also scripted) to match the IP addr the 'host DHCP' provides.
    I've used the NAT. It hands out a DHCP address and usually it works for me (and Oracle) simply by making it static (as above) and letting VMWare container handle it. But every once in a while it seems to 'jam up' and I'd need to fight with it. So I've converted to bridged .. with the help of some scripts I've written.

  • Having trouble connecting SQL Developer to database on LINUX machine

    Having trouble connecting SQL Developer to database on LINUX machine
    Hello,
    I am trying to connect my windows 7 home premium machine to an oracle database 11g on a RedHat 5 machine using SQL Developer. i got this error message on SQL Developer
    Status : Failure - Test failed :The Network Adapter could not establish the connection
    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> and TNSPING
    tnsping 172.x.x.x
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$Tnsnames.ora On Linux ,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )Listner on Linux ,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )/ect/hosts Linux ,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBillingand there is no problem of ping linux from windows
    Edited by: user11309581 on Apr 11, 2013 3:16 PM

    yes really i'm already enaple the port 1521 and SELINUX=disabled
    [root@ltebilling ~]# /etc/init.d/iptables status
    Table: filter
    Chain INPUT (policy ACCEPT)
    num  target     prot opt source               destination
    1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
    Chain FORWARD (policy ACCEPT)
    num  target     prot opt source               destination
    1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0
    Chain OUTPUT (policy ACCEPT)
    num  target     prot opt source               destination
    Chain RH-Firewall-1-INPUT (2 references)
    num  target     prot opt source               destination
    1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
    2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           icmp type 255
    3    ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0
    4    ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0
    5    ACCEPT     udp  --  0.0.0.0/0            224.0.0.251         udp dpt:5353
    6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:631
    7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:631
    8    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:1521
    10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
    11   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibitedbut from windows system when i'm try tnsping i got this error
    C:\Windows\system32>tnsping orc11g
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 11-APR-2
    013 14:44:09
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    D:\app\ubai\product\11.2.0\dbhome_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x
    .x)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orc11g))
    TNS-12535: TNS:operation timed out
    C:\Windows\system32>

  • Java code to connect to remote windows machine from local machine

    Hi,
    I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
    Exception.
    java.io.IOException: There was a problem while talking to <host name>:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:642)
      at ch.ethz.ssh2.Connection.connect(Connection.java:460)
      at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
      at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
      at ch.ethz.ssh2.Connection.connect(Connection.java:591)
      ... 3 more
    JAVA Code
    import ch.ethz.ssh2.Connection;
    import ch.ethz.ssh2.Session;
    public void setAuthenticationInfo(String hostname, String username,String password) {
           this.host = hostname;
           this.userid = username;
           this.password = password;      
           this.recentCommand = "";     
           System.out.println("setting authentication info completed for host=" + host );
      public void runCommand() throws Exception {
    try{
            // Setup ssh session with endpoint
           System.out.println("starting connection with " + host);
           Connection connection = new Connection(host);
           System.out.println("connection object created..");
           connection.connect();
           System.out.println("Connect to connection");
           connection.authenticateWithPassword(userid,password);
           System.out.println(connection.isAuthenticationComplete());
           Session session = connection.openSession();
          System.out.println("connected");
      }catch (Exception e) {
      e.printStackTrace();
    Regards,
    Praveen

    Hi baftos,
    I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
    As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
    Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
    Regards,
    Praveen

Maybe you are looking for

  • My applets run slow all of a sudden!

    I am running Windows XP SP3. Yesturday I tested one of my java applets and everything move around perfectly fine. Now if I try to run a java applet all of the items on the screen (stuff being drawn) move TWICE as slow. I tried running one on my lapto

  • Bit rate too high error

    hi, i am trying to burn my project which has 2 videos of 10 minutes each. one of those videos has 19 sub-menus, which are very simple pages with nothing more than a button that says play (leading to the 2nd video). I also have 19 subtitle streams. al

  • IPod Touch 4g iOs 6.1.6 can't read song created with iPad2 iOs 7.0.6

    hi , can you help me please? trying to open a song on Garageband on the iPod touch, it asks me to update to a more recent version. everything is already updated on both devices, what's happening? thanks a lot to anyone could help how to proceed. marc

  • A serial problem

    I upgraded my fc6 to fcstudio (3) one year ago. Everyting worked just fine. Suddenly one week ago,the fc7 programm asked for the serial. I entered the nbr; but i had the message wrong serial. So i folowed the steps from apples troubleshooting basics

  • RFC or Proxies

    Hi All,         If I have ECC6 and sap xi, then is it mandatory that I have to go for proxies and not RFC's? If I want to use RFC's instead of proxies at the sender end where sender is ECC6 system, then what could be the reasons for the same? Regards