Error connection to Telnet Server from a Java client GUI

Hi,
I have developed a GUI in Swing to get the server ip address, user is and password and then connect to the telnet server. When I enter the above details and hit the "Connect" button, The application hangs. I am ot sure, if the application conencts to the server and then hangs or hanging for some other reason. I have given some System.out.printl statements to keep track.
Below is my code. I would appreciate any help in this regards.
Thanks in advance.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class Login
private JFrame frm;
private JTextField serField;
private JTextField idField;
private JPasswordField pwdField;
public static void main(String[] str)
new Login();
public Login()
frm = new JFrame("Login Screen");
     frm.setSize(500,200);
     frm.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent we)
          System.exit(0);
     frm.getContentPane().setLayout(new FlowLayout());
     addLoginFields();
     frm.setVisible(true);
private void addLoginFields()
JPanel idPanel1 = new JPanel();
JPanel idPanel2 = new JPanel();
JPanel serverPanel1 = new JPanel();
JPanel serverPanel2 = new JPanel();
JPanel pwdPanel1 = new JPanel();
JPanel pwdPanel2 = new JPanel();
JPanel connectPanel = new JPanel();
JPanel cancelPanel = new JPanel();
JPanel labelPanel = new JPanel(new GridLayout(3,1));
JPanel fieldPanel = new JPanel(new GridLayout(3,1));
JPanel buttonPanel = new JPanel();
JButton connectButton = new JButton("Connect");
JButton cancelButton = new JButton("Cancel");
serverPanel1.add(new JLabel("Server "));
serField = new JTextField("rhosp035",10);
serverPanel2.setLayout(new FlowLayout(FlowLayout.LEFT));
serverPanel2.add(serField);
idPanel1.add(new JLabel("User ID"));
idField = new JTextField(30);
idPanel2.add(idField);
pwdPanel1.add(new JLabel("Password"));
pwdPanel2.setLayout(new FlowLayout(FlowLayout.LEFT));
pwdField = new JPasswordField(10);
pwdPanel2.add(pwdField);
labelPanel.add(serverPanel1);
labelPanel.add(idPanel1);
labelPanel.add(pwdPanel1);
fieldPanel.add(serverPanel2);
fieldPanel.add(idPanel2);
fieldPanel.add(pwdPanel2);
connectPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
connectPanel.add(connectButton);
cancelPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
cancelPanel.add(cancelButton);
buttonPanel.setSize(500,50);
buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
buttonPanel.add(connectPanel);
buttonPanel.add(cancelPanel);
JPanel infoPanel = new JPanel();
infoPanel.setSize(500,100);
infoPanel.add(labelPanel);
infoPanel.add(fieldPanel);
frm.getContentPane().add(infoPanel);
frm.getContentPane().add(buttonPanel);
connectButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae)
connectToUnix();
cancelButton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae)
System.out.println("Connection to Unix cancelled");
System.exit(0);
private void connectToUnix()
System.out.println("Connection to Unix to be added");
Socket clientSocket = null;
PrintWriter writer = null;
BufferedReader reader =null;
int code = 0;
try{
     clientSocket = new Socket(InetAddress.getByName(serField.getText()),23);
reader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
writer = new PrintWriter(new OutputStreamWriter(clientSocket.getOutputStream()));
while((code = reader.read()) != 243)
System.out.println("Server Response : " + code);
switch(code)
case 37:
//System.out.println("user id : " + idField.getText());
     writer.print(idField.getText());
break;
case 24:
          //System.out.println("password : " + pwdField.getText());
writer.print(pwdField.getText());
          System.out.println("code : " + code);
break;
     case 251:
          System.out.println("********* Login required again code : " + code);
break;
default:
System.out.println("--------------Default option code : " + code);
break;
writer.print(132);
catch(IOException ie)
System.out.println(ie.toString());
catch(Exception e)
     System.out.println("Exception : " + e.toString());
finally
     try{
reader.close();
clientSocket.close();
     catch(IOException ie)
System.out.println("While closing : " + ie.toString());

Also,
I would like to know I to check if the user id and password are valid.
How to disconnect from the client GUI?
Thanks.

Similar Messages

  • New install issue-unable to connect to DB server from a remote client.

    Hi experts,
    I am new to setting up oracle server so pls bear with me...
    I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
    1. Check with "ping" using the IP address ("ping 198.11.34.43"
    2. Check with "ping" using DNS name (e.g. "tnsping uranus")
    3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
    4. Check with "tnsping" using TNS service name
    5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
    6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
    7. Within SQL*Plus, try a select from table@remote_db_link
    thanks a lot in advance.

    user6391746 wrote:
    Hi experts,
    I am new to setting up oracle server so pls bear with me...
    I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
    1. Check with "ping" using the IP address ("ping 198.11.34.43"
    2. Check with "ping" using DNS name (e.g. "tnsping uranus")
    3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
    4. Check with "tnsping" using TNS service name
    5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
    6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
    7. Within SQL*Plus, try a select from table@remote_db_link
    thanks a lot in advance.solution depends upon which ERROR is thrown.
    Is COPY & PASTE broken for you?
    It is really, Really, REALLY difficult to fix a problem that can not be seen.
    use COPY & PASTE so we can see what you do & how Oracle responds.

  • Error connecting to planning server from EAS

    We implemented Hyperion Planning about 1 month ago. We are having this intermittent issue with connecting to Planning servers. When the users attempt to add a Business Rule, they select an outline, and browse to the planning servers. When they click one of the two servers they get the message "Error connecting to Planning server <<Server A>>". The message only happens on Server A.
    I check the planning service, it is running. I login directly to the planning application (http://<<Server A>>:8300/HyperionPlanning/) , it works fine. However I still get the error. The problem comes and goes, but once is happens the only solution seems to be restart all of the services on the Planning server.
    Is anyone experiencing this issue?
    If so is there a resolution? Is this a common thing with Hyperion Planning?
    I opened a TAR, but because the issue is only happening occasionally (1 day in 5) I thought I would try the forums. Any help or suggestions would be appreciated.

    Hi,
    What version of planning are you running, there was patch 9.3.1.1.1 that addressed
    6636367 (8-665086601) When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established. The time interval is specified in milliseconds and defaults to 300,000 (five minutes).
    This maybe the same sort of issue you are experiencing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error connecting to BOBJ server from Power Query

    I am getting this error when I try to connect to the BO server from Power Query;
    DataSource.Error: SapBusinessObjects: Unable to connect to the remote server
    Details:
       here it lists my URL which this posts didn't allow me to have.
    I know my server is otherwise up and running.  No problem connecting to Launchpad or CMC or IDT. 
    This is the 1st time I am using Power Query.  What is missing?
    Abdul

    Hi,
    This is a generic error about not being able to reach the server.
    You should make sure that there are no typos in the hostname and to include the port number, which is 6405 by default.
    e.g: http://powerquerysap:6405/biprws
    Tristan

  • Error while connecting to SAP Server from Windows XP Client.

    Hi,
    I am facing the problem while i am trying to connect my Windows XP Clients( With Service Pack 3, DI-API Installed and Microsoft SQL Server Native Client Installed) to SAP server i got follwoing Error.
    Connection Failed :
    SQL State : '08001'
    SQL Server Error : 233
    [Microsoft][SQL Native Client]Named Pipe Provider Could not open the connection SQL Server [233].
    Connection Failed :
    SQL State : "HYT00"
    SQL Server Error : 0
    [Microsoft][SQL Native Client]Login Timeout Expired
    Connection Failed:
    SQL State :'08001'
    SQL Server Error : 233
    [Microsoft][SQL Native Client]An Error has occured while establishing new connection to the server.
    When connecting SQL Server 2005, this failure may caused by the fact that under the default setting SQL Server does not allow remote connection.
    Regards,
    Arpit Shah

    Hi Arpit,
    Solution of Error in starting B1 after installation should help here too.
    Kind regards
    Mario
    SAP Business One Forums team

  • Error while connecting to SQL SERVER from OWB

    HI All,
    I got the following error while connecting to SQL SERVER from OWB(10gR2).
    1). Created DSN with (GMSCADA)
    2). tnsnames file is updated with the following information
    GMSCADA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.60.29)(PORT = 1433))
    (CONNECT_DATA =
    (SERVICE_NAME = SA)
    3). Tried to connect to SQL SERVER frm OWB
    Username: sa
    password: sa
    host: 172.16.60.29
    port: 1433
    service name: GMSCADA
    schema: sa
    I got the following error, when I click Test Connection:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB_3095
    Regards,
    Kumar.

    Hi David,
    What is Gateway, How I have to setup, Please let me know.
    I tried according to the Demo, But still I am facing the same problem. Which system IP I have to put in the host details.
    Can u please let me know.
    Regards,
    Kumar.

  • Unable to connect to Admin Server from second machine using WLST

    Hello,
    PROBLEM
    Can't get WLST to connect to admin server from 2nd host to register the domain.
    SETUP
    I have 2 Centos VMs running on Oracle Virtual box in a single laptop. Both the VMs use "Bridged Networking".
    VM-1 CONFIG
    cat /etc/hosts
    192.168.1.17
    dom1 dom1.my mac1
    192.168.1.51
    centos2 mac2
    VM-1 hosts admin server & one managed server
    VM-2 CONFIG
    192.168.1.51
    mac2
    192.168.1.17
    centos1 mac1
    VM-2 hosts just one managed server
    I can start up admin on VM-1 fine. The node manager is reachable too. Both the VMs are can be pinged from each other. I can also telnet to the admin server's port ( telnet 192.168.1.17 7001) from the second server.
    My HOST OS is Windows 7. I can ping from windows to both the VM IPs too. The reverse is working fine as well.
    I've tried both mechanisms of copying the whole domain from machine 1 over to machine2 & also using the pack.sh/unpack.sh combinations to transfer the domains.
    When I invoke WLST, this is what happens
    ./wlst.sh
    CLASSPATH=/apps/prod/appservers/weblogic/wls_10_3_6/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/apps/prod/appservers/weblogic/wls_10_3_6/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/lib/tools.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic_sp.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/features/weblogic.server.modules_10.3.6.0.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/webservices.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/apps/prod/appservers/weblogic/wls_10_3_6/utils/config/10.3/config-launch.jar::/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbynet.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbyclient.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbytools.jar::
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> connect('weblogic','weblogic123','t3://192.168.1.17:7001')
    Connecting to t3://192.168.1.17:7001 with userid weblogic ...
    Traceback (innermost last):
      File "<console>", line 1, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 648, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error connecting to the server : Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    Use dumpStack() to view the full stacktrace
    wls:/offline> dumpStack()
    This Exception occurred at Fri Oct 11 17:11:07 NZDT 2013.
    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    wls:/offline>
    Also, I can't invoke weblogic.Admin from the second VM despite setting the environment using "setWLSEnv.sh". i get the error "Error: Could not find or load main class weblogic.Admin".
    Please could you help me fix this? I've spent 3 days now trying numerous things without much luck :-(
    Kind Regards

    Hi Raj,
    Issue is with NM registry with domain home. Please follow the below steps and let us know the status.
    1 . Check whether the node manager port ( default 5556 ) is opened for communication on both Admin and Managed server.
    2 . After opening the port - We would need to enroll the node manager home with domain home to establish the communication between Admin and Managed server.
       a .  Start the Administration Server.
       b .  Using the Administration Console update the Node Manager credentials from the Advanced options under domain_nameArrow symbolSecurityArrow symbolGeneral.
       c .  Invoke WLST and connect to an Administration Server using the connect command. See Using the WebLogic Scripting Tool in WebLogic Scripting Tool.
       d .  Run nmEnroll using the following syntax:
            nmEnroll([domainDir], [nmHome])
    Running nmEnroll() ensures that the correct Node Manager user and password token are supplied to each Managed Server. Once these are available for each Managed Server, you can use nmConnect() in a production environment.
    Note:     You must run nmEnroll() on each machine that is running a Managed Server. Additionally, you should run nmEnroll() for each domain directory on each machine.
    For more info : General Node Manager Configuration
    Thanks
    Lakshman

  • Error connecting to ftp server

    Dear All,
             I'm doing file to file scenario through XI. The receiver communication channel is a normal file adapter and it is working perfectly fine . My sender communication channel is a FTP adapter. I'm trying to send a file from FTP to a folder on my integration engine. When i went into adapter monitoring, i got the error in the sender file adaper for ftp. The error is - " Error connecting to ftp server ".
             normally, i'm able to do the ftp from integration server to my ftp server, but through XI , it is giving me the above mentioned error. I think some of my properties are not specified correctly. Kindly advise . The properties that i have specified in the ftp adapter are -
    adapter type - file
    transport protocol - ftp
    message protocol - file
    adapter engine -  integration server
    server - ip address of the ftp host
    port - 21
    username - username of the ftp server
    password - password of the ftp user
    connect mode - per file transfer
    transfer mode -  binary
    folder - name of the folder created on the ftp root directory ( without the path ) Do i need to give the full path here ?
    file name - file in the above specified folder
    Kindly let me know.
    Regards.
    Naveen

    HI Naveen,
    This link explains all the parameters that need to be entered for a file adpater. Just check it out and compare it with your values and your FTP settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    //folder - name of the folder created on the ftp root directory ( without the path ) Do i need to give the full path here ?
    Yes, i think you should specify the full path here.
    Regards,
    bhavesh

  • Error connecting to Essbase Server when running business rules

    We recently migrated from v9.3 to v11.1.1.3. I have two users with Administrative access who need to run business rules on a native Essbase application, but cannot. They get the message 'Error connecting to Essbase Server'. They get this message when trying to set this execution database. They can't even expand the server to see the list of applications. I have tried deprovisioning them in Shared Services, refreshing security, then adding it all back in and refreshing again, but it doesn't work. My own id has identical access to that which I'm granting them, and I have no problems. I even created a native user with the same access and it works as well. No matter what I do, I cannot get these two users to be able to run their business rules in EAS.
    We also have a Planning application, and the Planning Administrative user has the same issue. However, this user is able to get around it by running rules using the Planning connection rather than the Essbase connection. She has the same issue of not seeing anything under the Essbase Servers when trying to set the execution database though.
    In version 9, we were not using Shared Services for Essbase security. Unfortunately our consultant chose to set it up using Shared Services security when migrating, and according to the documentation, one cannot go back to using Native Essbase security.
    I also tried running the Externalize Users wizard and the three users with issues failed to externalize. My own id did, and the native user I created succeeded.
    Has anyone experienced an issue like this or have any ideas on how to resolve?
    Thanks,
    Sabrina

    Follow up - Oracle has finally resolved this. It's so simple, yet no one thought to check until now. The three users with problems all have mixed case user id's in ldap. They have always logged into EAS with all lower case ids. In version 9, on native security, this was never a problem. But in version 11 using Shared Services (not sure which factor changed it), it doesn't work. The simple solution is to log in with their exact mixed case user ids. It only took Oracle three months and the creation of a bug issue to figure this out for us.
    Sabrina

  • How to connect to SQL Server from Forms 10g?

    Hello all,
    How do we connect to SQL Server database from Forms 10g?
    In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution.
    But is there a way we can connect directly to SQL Server from Forms using an ODBC connection
    without installing anything on the database server?
    Pls help!
    Regards,
    Sam

    Hello all,
    I was able to connect to SQL Server from Oracle using Generic Connectivity (HSODBC).
    Transparent gateway was not required.
    Followed metalink note 109730.1
    So, after I created a dblink to SQL Server, I created a synonym for the dblinked SQL Server table.
    When I used the synonym as the table source in Oracle Forms, I got the following error while querying.
    "ORA-02070 - ROWID is not supported in this context."
    This is because Forms has an invisible ROWID field and when data is fetched from SQL Server table
    no Rowid is fetched since SQL Server table doesn't have one.
    Is there a way to overcome this issue or do we have populate the block manually using a SQL query ?
    Pls suggest.
    Regards,
    Sam

  • Failure when connecting MS SQL SERVER from ODI ! could not load JDBS driver

    i have some trouble with connecting MS SQL SERVER from ODI.
    I have already downland jdbs driver 3.0 (and 2.0 ) and copy the sqljdbc4.jar to D:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers( where the oracle jdbs driver is already exitst )....but i have this error :
    could not load JDBS driver class..
    thanks

    After more investigation and even more chocolate, we've identified the problem and it's now working. For anyone else who strikes this problem in future, here's something to check/consider/try:
    Even though Squirrel SQL Client was connecting and working ok using the MS JDBC driver (v 3.0), it recorded this in its logs:
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the INTERSECT operation.
    We've found that the open source jTDS driver does not have the same issue as the Microsoft one.
    We've installed the current jTDS driver, recorded the driver name (net.sourceforge.jtds.jdbc.Driver) and the JDBC URL (jdbc:jtds:sqlserver://<hostname>:1433/<database>) and the connection is now working fine.
    Hope this helps other people...
    Thanks to those of you who offered suggestions and things to check...much appreciated.
    Robyn

  • HBR Error connecting to Essbase server

    Hi,
    Getting an error " HBR Error connecting to Essbase server" while selecting the outline in create new business rule.Tried the below workaround,but still getting the same error.
    * Copy the HBRServer.properties from AAS (<HyperionHome\Hyperion\AdminServices) to the Planning Server
    (<HyperionHome\Hyperion\HyperionPlanning\AppServer\InstalledApps\...)
    * Restart the services.
    * Login to Hyperion Planning application. Connect to each application at issue to establish RMI connection.
    * Log into AAS, Refresh security from Shared Services
    Any solution/ workaround could be of very helpful.

    Hi,
    Are you trying to create a business rule for planning or essbase, the error message you have posted is for trying to connect to essbase and you usually get that message if essbase is not started or unreachable.
    Cheers
    John
    http://john-goodwin.blogspot.com

  • "Connection failed ... There was an error connecting to the server"

    Hi,
    I have a late-2009 imac, running Snow Leopard and all the latest updates.
    However, since ugrading to ilife '09, I now see the following error
    "Connection failed
    There was an error connecting to the server
    "BeechMac". Check the servername or IP address and then try again"
    However, "Beechmac" was the name of the older G4 Mac from which I upgraded (using Time Machine) to the imac last year - and it no longer exists on the network.
    As a test, I copied over to this Mac Mini (also latest OS and updates) all the iphoto directory prior to update and then updated to ilife '11 - same problem is seen.
    I assume some files have some form of symbolic links to a networked partition ?
    The only difference to my network/system has been updating to ilife '11 - and all I use is iphoto.
    However, the error pops up every hour or so - and the mouse disappears and its tricky to gain mouse focus again to remove the message.
    I've scoured the Internet - but no help.
    - Paul

    I think I've identified the problem (or at least a solution).
    There were broken Alias links for some of the photos in my iphoto directory.
    I navigated Finder to the root of my iphoto collection and searched for "Kind: Alias"
    I then checked (using Right-Click:"Get info") that the Alias was working (if not a broken Jpeg icon was shown), and if not fixed up.
    It appears that in my system moves from taking photos from PC onto my original G5 Mac and then into iphoto (which had two partitions) some of the files had been aliased rather than copied. (Not sure exactly how this happened).
    Anyway, I was able to repair the broken file by going into the Terminal and copying the required JPEG onto the Alias.
    I wish there was an easier way to find broken Aliases - it was fairly tedious.
    - Paul

  • HBR running error (Urgent, please help) Error connecting to Essbase Server

    Hello All Expert
    When running business rule either from Planning Web (Planning 9.3.1.1.8) or EAS, sometime there will be a error "Error connecting to Essbase Server" appear.
    After the error appear, all the can't be run.
    But after a while, problem may disappear and all the rules can be run.
    Anyone having this problem before, please help
    Eric

    I am actively using the EAS, but the error is suddenly come that I think I am not logout by server

  • Starting weblogic server from a java application

    Hello,
    I am trying to start the weblogic server from a java application i wrote.
    the code:
    Process p=null;
    try{
    p= Runtime.getRuntime().exec("cmd /c c:/startWeblogic.cmd");
    catch (Exception e)\[
    this doesn't start the weblogic... Using the same line to start other types of files does work... only file with the extention of cmd i can't run.
    I even tried to write a bat file that calls the cmd file but it still does't work.
    Can someone help?
    THANKS!!!
    P.S.
    The Java application I used implement the SysTrayMenuListner - can this be the problem?

    no - nothing happened. it perform the next java code - and there is nothing else happen on the windows.
    maybe i don't check in the right place for the error you are talking about?
    i also tried i simple cmd file that does nothing - but still nothing...
    for any other file types it works properly.

Maybe you are looking for