Connect java to UNIX system

Hi Frnds,
I have a java application. from that i want to connect remote UNIX system and execute some commends and need to ftp some file from UNIX system to my system.
Please tell me the way available in java to do this task.
Please tell me the correct forum for this kind of things :-)
Thanks in advance,
Rashmy.

i hope this code will be useful to you.....i was using this a year back....it was workin......just change the passwords servername and file path accordingly....it requires finj jar....i have it with me but cant send that....company policy....:(....plz search that from net.
this code will upload a file to unix system
package vaibhav;
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.finj.FTPClient;
import org.finj.FTPConstants;
public class Xyz
     static String pwd = "yourPassword";
     public static void uploadFile()
          FTPClient client = new FTPClient();
try{
     String server = "servername";          
     client.open(server);
     client.login("vahuja", "abcd".toCharArray());
     client.setDataType(FTPConstants.ASCII_DATA_TYPE);
     client.setWorkingDirectory("/home/vahuja/temp/files");
     client.putFile(new FileInputStream("H:/Vaibhav/work/RegCap/wsdl/Fin_Fwd_overrides.csv"),"Fin_Fwd_overrides.csv");
     client.close();          
          catch(Exception e)
          {try{
          client.close();
          catch(Exception e1)
               e1.printStackTrace();
               e.printStackTrace();
     public static void main(String[] args)
          uploadFile();
}

Similar Messages

  • Connection to a Unix-Server with Java

    Hi!
    I've got a little problem! I must write a java programm that connects to a unix-server! The programm should connect to the server and writes a command like "ls"! How can I do this? Can someone help me?
    Thanks Flyer2004

    Hi,
    something to help you with your assignment.
    The code below will connect to a server on a port.
    public void run() {
    try
    Socket socket = new Socket( "abc.com" , 13312 );
    System.out.println( "Connected to the server" );
    PrintWriter pw = new PrintWriter( socket.getOutputStream(), true );
    BufferedReader stdIn = new BufferedReader( new InputStreamReader(System.in) );
    BufferedReader in = new BufferedReader( new InputStreamReader( socket.getInputStream() ) );
    String userInput;
    while ( (userInput = stdIn.readLine()) != null ) {
    pw.println( userInput );
    System.out.println("echo: " + in.readLine() );
    catch ( Exception ex )
    ex.printStackTrace();     
    you can use this code to connect to a port.
    now comes the server part.....
    ServerSocket serverSocket = new ServerSocket( 7777 );
    FileInputStream fis = new FileInputStream( "test.dat" );
    Socket socket = serverSocket.accept();
    OutputStream os = socket.getOutputStream();
    byte[] buffer = new byte[1024];
    int bytes = 0 ;
    int i = 0 ;
    while( ( bytes = fis.read( buffer ) ) != -1 ) {
    os.write( buffer, 0, bytes );
    os.flush();
    i++ ;
    System.out.println( "bytes sent : " + i + " KB " ) ;
    os.close();
    fis.close();
    The code above post's the file back...
    in your case you want the output of your command so use "Runtime.runexec" and run your command on the server..
    use the above code and replace the file downloading part with your code....
    send back the output of the same to the client...
    just in case ...
    if you want to do any random commands... you need to let your server knwo that and the code for that needs to be persent on the system.
    by the way this is pure vanilla and it needs to be modified a lot.
    Regards,
    myraid

  • ABAP to FTP connect to non SAP UNIX system

    Greetings~
    I'm looking for a way (via function modules and/or BAPI) to transfer data in flat files from an SAP UNIX system to a non-SAP UNIX system using an ABAP program. I see FM's FTP_CONNECT and FTP_COMMAND however these seem to only work with UNIX systems running SAP as they require RFC_DESTINATION information. Anybody know which (if any) FM's can be used without the necessity of the target system running SAP/RFC?
    Thanks!

    Hi Joseph,
    Please refer the below program.
    REPORT  ZHR_T777A_FEED.
    tables: t777a.                        "Building Addresses
    Internal Table for  Building table.
    data: begin of it_t777a occurs 0,
            build like t777a-build,       "Building
            stext like t777a-stext,       "Object Name
            cname like t777a-cname,       "Address Supplement (c/o)
            ort01 like t777a-ort01,       "City
            pstlz like t777a-pstlz,       "Postal Code
            regio like t777a-regio,       "Region (State, Province, County)
          end of it_t777a.
    Internal Table for taking all fields of the above table in one line
    separated by ‘|’(pipe).
    data: begin of it_text occurs 0,
          text(131),
          end of it_text.
    Constants: c_key  type i value 26101957,
               c_dest   type rfcdes-rfcdest value 'SAPFTPA'.
    data: g_dhdl type i,      "Handle
          g_dlen type i,      "pass word length
          g_dpwd(30).         "For storing password
    Selection Screen Starts
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE TEXT-001.
    parameters: p_user(30) default 'XXXXXXX'          obligatory,
                p_pwd(30)  default 'XXXXXXX'          obligatory,
                p_host(64) default 'XXX.XXX.XX.XXX'   obligatory.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE TEXT-002.
    parameters: p_file like rlgrap-filename default 't777a_feed.txt'.
    SELECTION-SCREEN END OF BLOCK blk2.
    Password not visible.
    at Selection-screen output.
      loop at screen.
        if screen-name = 'P_PWD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    g_dpwd  = p_pwd.
    Start of selection
    start-of-selection.
    To fetch the data records from the table T777A.
      select build stext cname ort01 pstlz regio
             from t777a
             into table it_t777a.
    Sort the internal table by build.
      if not it_t777a[] is initial.
        sort it_t777a by build.
      endif.
    Concatenate all the fields of above internal table records in one line
    separated by ‘|’(pipe).
      loop at it_t777a.
        concatenate it_t777a-build it_t777a-stext it_t777a-cname
                    it_t777a-ort01 it_t777a-pstlz it_t777a-regio
                    into it_text-text separated by '|'.
        append it_text.
        clear it_text.
      endloop.
    To get the length of the password.
      g_dlen = strlen( g_dpwd ).
    Below Function module is used to Encrypt the Password.
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = g_dpwd          "Actual password
          SOURCELEN   = g_dlen
          KEY         = c_key
        IMPORTING
          DESTINATION = g_dpwd.         "Encyrpted Password
    *Connects to the FTP Server as specified by user.
      Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Connecting to FTP Server'.
    Below function module is used to connect the FTP Server.
    It Accepts only Encrypted Passwords.
    This Function module will provide a handle to perform different
    operations on the FTP Server via FTP Commands.
      call function 'FTP_CONNECT'
        EXPORTING
          user            = p_user
          password        = g_dpwd
          host            = p_host
          rfc_destination = c_dest
        IMPORTING
          handle          = g_dhdl
         EXCEPTIONS
            NOT_CONNECTED.
      if sy-subrc ne 0.
        format color col_negative.
        write:/ 'Error in Connection'.
      else.
        write:/ 'FTP Connection is opened '.
      endif.
    **Transferring the data from internal table to FTP Server.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = g_dhdl
          FNAME          = p_file
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = it_text
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        write:/ 'File has created on FTP Server'.
      ENDIF.
    Call function 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'File has created on FTP Server'.
    To Disconnect the FTP Server.
      CALL FUNCTION 'FTP_DISCONNECT'
        EXPORTING
          HANDLE = g_dhdl.
    To Disconnect the Destination.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
        EXPORTING
          destination = c_dest
        EXCEPTIONS
          others      = 1.
    Regards,
    Kumar Bandanadham.

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • How do i make UNIX system calls in Java app?

    Is it possible to make UNIX system calls in a java app? I.E. perform a file copy/move to another machine within a program.
    Thanks,
    Erik

    If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
    If you want to access shared libraries you might want to look at www.swig.org

  • How to enable ping service on java-stack only system

    I have installed SAP NetWeaver 7.0 - Java Trial on local host.
    How can you activate the ping service there?
    It should work under "http://localhost:50000/sap/bc/ping"
    (I know how to activate it with transaction SICF in an abap system, but I have java-stack only here, so I can't call transactions. I can only use the Visual Admin, right?, but there I could not detect a ping service so far)
    More detailed:
    I created system "SAP_WebDynpro_XSS". (this is necessary for connecting to ECC abap backend for ESS Packages) and set following parameter:
    template:"SAP system using connection string"
         category: Web Application Server
              Web AS host name: chrisSAP:50000
              Web AS path: /webdynpro/dispatcher/
              Web AS protocol: http
    But when I test the "SAP Web AS Connection" for this system, I got following error:
    7. The Web AS ping service http://chrisSAP:50000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the Web AS, you can try to call the ping service manually.
    8. An HTTP/S connection to http://chrisSAP:50000/webdynpro/dispatcher/ was not
    obtained successfully; this might be due to a closed port on the Firewall.
    I guess step 8 did not pass because step 7 failed, and not because of a closed port or firewall (I made sure everything is open.)
    The strange thing is that the connection test fails, but the connection seems to work fine!
    I mean I can see the front ESS page in the portal when logging in with an ESS-user, and there are no errors in the log. If I change the SAP_WebDynpro_XSS parameters to some other made-up values, then the front ESS page does not come up and some errors appear with "SAP_WebDynpro_XSS" inside.
    That proofs that the connection is working despite the failed connection test, right?. But what can I do that the connection test passes? It seems that somehow SAP has hardcoded the path "/sap/bc/ping" which usually exists on an abap system. But I have java-stack only, so how can I tell that the function that runs the test?
    A system connection test fails, but the connection is working fine!
    If someone could explain that to me...

    Dear Srini Nookala,
    thank you for your answer. Unfortunately I don't understand the relation of my question to your answer.
    >> check with OSS note 1019335 SAP NetWeaver AS Java 6.40 SP21
    I have Version 7.0 SP14. I read the OSS note, but there are around 100 changes listed. I read them all, but couldn't figure out one that has to do with ping and system test. So which sentence inside the note are you referring to?
    >> The problem is due to JCo parameters configuration not properly, Ask Basis team, they will do it.
    I am basis team. I configured the JCo properly as described in manual and tested them afterwards. They run successful. Also all the links that you gave refer to JCO connections about how to set them up and test them. But what have JCO connections to do with System-connection tests? As far as I know JCO-connections are not used for system connectivity tests. You can set them up independent. I understand that JCO-connections are used for getting data from backend servers. But the system "SAP_WebDynpro_XSS" is defined for determing the webdynpros on localhost (frontend, not backend).
    So please can you explain me what JCO-connections which refer to remote hosts have to do with a ping service on local host that cannot be reached? And which part would be not configured "properly"? Timeouts? user?
    To define my question more properly:
    Is it possible to make the connection test work on a java-stack only host for a system that refers to itself (localhost)? Or is it a known bug?
    Some sub-questions
    Am I using the right system template (I am using "SAP system using dedicated application server")
    I have no abap on local host (chrisSAP). Only java stack. Usually path ..sap/bc/ping refers to an abap system, right? So in my opinion I have 3 possibilities:
    - install abap-stack on local host (portal) and activate ping service.
    - somehow install a ping service that runs under the given URL in Visual Admin (how?)
    - somehow tell the connection test to skip pinging and continue test. (How?)
    Any additional advice would be highly appreciated.

  • How to run a JAR file in Unix system?

    hi there
    ca anyone tell me how to run a JAR file in unix system or X window, thank you

    You want to create an executable JAR file? You do it in the following way.
    Create a manifest file such as manif.txt and the contents should contain
    Main-Class: foo
    assuming foo is the name of your main class. Then create the jar as follows
    jar cvfm foo.jar manif.txt foo.class
    I hope that helps you!
    you can find more info here http://java.sun.com/docs/books/tutorial/jar/

  • Can' t connect Java with MySQL

    My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
    SQLException: No suitable driver
    SQLState: 08001
    VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
    I don't believe that could be a reason.
    Installed versions are:
    Apache Tomcat 5.5.20 Server
    Apache HTTP Server 2.2.4
    PHP 5.2.0
    MySQL 5.2
    jre 1.5.0_11
    jdk1.5.0_11
    Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
    mysql-connector-java-5.0.4
    I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
    For installation I used manulas from:
    http://apacheguide.org/jsp.php
    http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
    Here is also a test code in java:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
       public class Connect
           public static void main (String[] args)
               Connection conn = null;
               try {
        conn =
           DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
                                       "user=monty&password=greatsqldb");
        // Do something with the Connection
    } catch (SQLException ex) {
        // handle any errors
        System.out.println("SQLException: " + ex.getMessage());
        System.out.println("SQLState: " + ex.getSQLState());
        System.out.println("VendorError: " + ex.getErrorCode());
       }i'm desperate, please help or tell me someone who'll know the answer.
    Thank You in advance

    hey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
    the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MySQLConnectionTest {
         public static void main(String[] args) {
    new MySQLConnectionTest().connTest();
    public void connTest() {
              String tableName = "portfolio"; //change as per setting
              String hostName = "10.81.9.39"; // please change for the target database ip or hostname
              String dbPort = "3306"; //change if not using the default
              String dbName = "tradingsystem"; //change as per the given DB name
              String username = "root"; //change as per setting
              String password = "password"; //change as per setting
              System.out.println("before try");
              Double data=0.0;
         Double data1=0.0;
              try {
    Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("before driver manager");
    Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
    String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
    System.out.println("quesry1="+query1);
    Statement stmt = conn.createStatement();
    ResultSet rs1 = stmt.executeQuery(query1);
    while(rs1.next())
         System.out.println("hiiiiii for rs1");
         System.out.println(rs1);
         Quantity=(Integer)rs1.getObject(5);
         MarketPrice=(Double) rs1.getObject(8);
         data=Quantity*MarketPrice;
         data1+=data;
         System.out.println("data1="+data1);
         i=0;
    rs1.close();
    stmt.close();
    conn.close();
    } catch (ClassNotFoundException e) {
    e.printStackTrace(System.err);
    } catch (SQLException e) {
    e.printStackTrace(System.err);
    i hope it will work for u...
    cheers,

  • Using Terminal with a dial-up connection to a Unix server

    Normally I use a cable modem at home to connect to a Unix server at work. All I have to do is fire up the Terminal application, type "telnet servername.domainname.com", and I am up and running.
    A couple days ago my cable modem service died and it is going to take a week to get it fixed. Wanting to find a temporary alternative connection, I remembered that my PowerMac G5 came equipped with an Apple internal modem. I connected the modem to a phone line, went to the Network configuration panel in System Preferences, and configured the modem to dial-up the Unix server at work. Using the Internet Connect application, the modem can connect to the Unix server, but that application attempts to make a PPP connection, not a plain old-fashioned command-line Unix connection.
    What I really want to do is use the Terminal application to dial-up the Unix server. Does anybody know how to do that?
    PowerMac G5   Mac OS X (10.4.4)  

    You need to know more about how the server at the other end is configured.
    Internet Connect will only manage an internet connection, typically via PPP. If the server at the other end is not configured as a PPP server then you're not going to get anywhere with it.
    If the server is set to use the modem as a standard serial interface then you'll need a terminal emulator that can manage the serial ports (terminal.app is not such an app).
    Fortunately there are many options, including the venerable ZTerm. This will let you use the modem to dial a number and log in over a simple serial line.

  • Connecting to an sap system

    Hi
    Just wanted to know if the JCO client service is the only way of connecting to an SAP system from enterprise portal.
    thanks
    Ram

    Hi Ram,
    no, it's the "old" way, the new one goes via JCA; see JCA/J2EE Connector Architecture with WAS 6.20 (R/3 Enterprise) and JCO x JCA and Java to SAP as well as the brand-new article https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/using j2ee connector architecture with ep6 iview development.pdf
    Hope it helps
    Detlev

  • Bank says Java not Unix compatible

    Hey all
    St George, a major Australian bank has an internet banking site that uses Java. Unfortunately, it only works with, and supports (Windows NT, 98, ME, 2000, XP) MacOS (9.2, 10.1, 10.2)
    In Mozilla-firefox in Linux the applet is grey except for a little red cross in the left top corner.
    A small discusson is here http://lists.slug.org.au/archives/slug-chat/2004/02/msg00094.html
    How can we encourage St George to embrace Java's cross platform operability?
    Their compatibility page is here https://www.stgeorge.com.au/int_bank/get_start/systest/default.asp
    I have included St George's response, and a copy of the java console if it interests you.
    marty
    Dear Marty
    Thank you for your email.
    I appreciate your input and I am sure that implementations on the banks
    behalf are always considered and processed through the opinions and
    decisions of our customers.
    Our intended purpose has always been to make banking more efficient and
    convenient and hopefully that is what we can achieve.
    Therefore, I will forward your email to our developers to look further
    into your suggested enhancements.
    If you have any further enquiries, please do not hesitate to email me
    again at [email protected]. Or alternatively, you can contact
    St.George Internet Banking on 1300 555 203. A consultant is available
    for your assistance 7 days a week, 8:00am - 9:00pm(EST).
    With kind regards,
    Wendy
    Electronic Banking
    St. George Bank Ltd
    Phone 1300 555 203
    Email: [email protected]
    Web: www.stgeorge.com.au
    Java(TM) Plug-in: Version 1.4.2_04
    Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
    User home directory = /home/mbarlow
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Memory: 5,608K Free: 1,446K (25%) ... completed.
    Reload policy configuration ... completed.
    Dump system properties ...
    acl.read = +
    acl.read.default =
    acl.write = +
    acl.write.default =
    browser.vendor = Sun Microsystems, Inc.
    browser.version = 1.1
    deployment.system.cacerts = /usr/java/j2re1.4.2_04/lib/security/cacerts
    deployment.system.home = /etc/.java/deployment
    deployment.system.jssecacerts =
    /usr/java/j2re1.4.2_04/lib/security/cacerts
    deployment.system.profile = /etc
    deployment.system.security.policy =
    file:/etc/.java/deployment/security/java.policy
    deployment.user.cachedir = /home/mbarlow/.java/deployment/cache
    deployment.user.certs =
    /home/mbarlow/.java/deployment/security/deployment.certs
    deployment.user.extdir = /home/mbarlow/.java/deployment/ext
    deployment.user.home = /home/mbarlow/.java/deployment
    deployment.user.jssecerts =
    /home/mbarlow/.java/deployment/security/deployment.jssecerts
    deployment.user.logdir = /home/mbarlow/.java/deployment/log
    deployment.user.profile = /home/mbarlow
    deployment.user.security.policy =
    file:/home/mbarlow/.java/deployment/security/java.policy
    deployment.user.tmpdir = /home/mbarlow/.java/deployment/cache/tmp
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    file.separator.applet = true
    http.agent = Mozilla/4.0 (Linux 2.6.7)
    http.auth.serializeRequests = true
    https.protocols = SSLv3,SSLv2Hello
    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
    java.awt.printerjob = sun.print.PSPrinterJob
    java.class.path = /usr/java/j2re1.4.2_04/classes
    java.class.version = 48.0
    java.class.version.applet = true
    java.endorsed.dirs = /usr/java/j2re1.4.2_04/lib/endorsed
    java.ext.dirs = /usr/java/j2re1.4.2_04/lib/ext
    java.home = /usr/java/j2re1.4.2_04
    java.io.tmpdir = /tmp
    java.library.path =
    /usr/java/j2re1.4.2_04/lib/i386/client:/usr/java/j2re1.4.2_04/lib/i386:/usr/lib/mozilla-firefox:/usr/lib/mozilla-firefox/plugins:/usr/lib/mozilla/plugins:/usr/lib
    java.protocol.handler.pkgs =
    sun.plugin.net.protocol|sun.plugin.net.protocol
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version = 1.4.2_04-b05
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.4
    java.util.prefs.PreferencesFactory =
    java.util.prefs.FileSystemPreferencesFactory
    java.vendor = Sun Microsystems Inc.
    java.vendor.applet = true
    java.vendor.url = http://java.sun.com/
    java.vendor.url.applet = true
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.4.2_04
    java.version.applet = true
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 1.4.2_04-b05
    javaplugin.lib = /usr/java/j2re1.4.2_04/lib/i386/libjavaplugin_jni.so
    javaplugin.nodotversion = 142_04
    javaplugin.proxy.config.list =
    javaplugin.proxy.config.type = browser
    javaplugin.version = 1.4.2_04
    javaplugin.vm.options = -DtrustProxy=true -Xverify:remote
    -Djava.class.path=/usr/java/j2re1.4.2_04/classes
    -Djava.protocol.handler.pkgs=sun.plugin.net.protocol
    -Xbootclasspath/a:/usr/java/j2re1.4.2_04/lib/plugin.jar:/usr/java/j2re1.4.2_04/lib/javaplugin_l10n.jar -Djavaplugin.lib=/usr/java/j2re1.4.2_04/lib/i386/libjavaplugin_jni.so -Dmozilla.workaround=true -Djavaplugin.nodotversion=142_04 -Djavaplugin.version=1.4.2_04
    line.separator = \n
    line.separator.applet = true
    mozilla.workaround = true
    os.arch = i386
    os.arch.applet = true
    os.name = Linux
    os.name.applet = true
    os.version = 2.6.7
    os.version.applet = true
    package.restrict.access.netscape = false
    package.restrict.access.sun = true
    package.restrict.definition.java = true
    package.restrict.definition.netscape = true
    package.restrict.definition.sun = true
    path.separator = :
    path.separator.applet = true
    sun.arch.data.model = 32
    sun.boot.class.path =
    /usr/java/j2re1.4.2_04/lib/rt.jar:/usr/java/j2re1.4.2_04/lib/i18n.jar:/usr/java/j2re1.4.2_04/lib/sunrsasign.jar:/usr/java/j2re1.4.2_04/lib/jsse.jar:/usr/java/j2re1.4.2_04/lib/jce.jar:/usr/java/j2re1.4.2_04/lib/charsets.jar:/usr/java/j2re1.4.2_04/classes:/usr/java/j2re1.4.2_04/lib/plugin.jar:/usr/java/j2re1.4.2_04/lib/javaplugin_l10n.jar
    sun.boot.library.path = /usr/java/j2re1.4.2_04/lib/i386
    sun.cpu.endian = little
    sun.cpu.isalist =
    sun.io.unicode.encoding = UnicodeLittle
    sun.java2d.fontpath =
    sun.net.client.defaultConnectTimeout = 120000
    sun.os.patch.level = unknown
    trustProxy = true
    user.country = AU
    user.dir = /home/mbarlow
    user.home = /home/mbarlow
    user.language = en
    user.name = mbarlow
    user.timezone = Europe/London
    Done.
    Trace level set to 5: basic, net, security, ext, liveconnect ...
    completed.
    Stopping applet ...
    Joining applet thread ...
    Destroying applet ...
    Disposing applet ...
    Quiting applet ...
    Joined applet thread ...
    setWindow: call before applet exists:41969218
    setWindow: call before applet exists:41969218
    Finding information ...
    Releasing classloader: sun.plugin.ClassLoaderInfo@eca36e, refcount=0
    Caching classloader: sun.plugin.ClassLoaderInfo@eca36e
    Current classloader cache size: 1
    Done ...
    Referencing classloader: sun.plugin.ClassLoaderInfo@eca36e, refcount=1
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    Connecting https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB.class
    with no proxy
    Connecting https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB.class
    with cookie "bbbHeight=651; bbbWidth=1012; Entity=; bhCookie=1"
    Loading Root CA certificates from
    /usr/java/j2re1.4.2_04/lib/security/cacerts
    Loaded Root CA certificates from
    /usr/java/j2re1.4.2_04/lib/security/cacerts
    Loading Https Root CA certificates from
    /usr/java/j2re1.4.2_04/lib/security/cacerts
    Loaded Https Root CA certificates from
    /usr/java/j2re1.4.2_04/lib/security/cacerts
    Loading JPI Https certificates from
    /home/mbarlow/.java/deployment/security/deployment.jssecerts
    Loaded JPI Https certificates from
    /home/mbarlow/.java/deployment/security/deployment.jssecerts
    Loading certificates from JPI session certificate store
    Loaded certificates from JPI session certificate store
    sun.plugin.cache.DownloadException
    at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
    at sun.plugin.cache.FileCache.get(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at
    sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Connecting https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB.class
    with no proxy
    Connecting https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB.class
    with cookie "bbbHeight=651; bbbWidth=1012; Entity=; bhCookie=1"
    Connecting
    https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB/class.class with no
    proxy
    Connecting
    https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB/class.class with
    cookie "bbbHeight=651; bbbWidth=1012; Entity=; bhCookie=1"
    sun.plugin.cache.DownloadException
    at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
    at sun.plugin.cache.FileCache.get(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
    at
    sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at
    sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Connecting
    https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB/class.class with no
    proxy
    Connecting
    https://ibank.stgeorge.com.au/html/stGeorge/gui/BBB/class.class with
    cookie "bbbHeight=651; bbbWidth=1012; Entity=; bhCookie=1"
    load: class stGeorge.gui.BBB.class not found.
    java.lang.ClassNotFoundException: stGeorge.gui.BBB.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
    Exception: java.lang.ClassNotFoundException: stGeorge.gui.BBB.class

    I also use Mozilla Firefox in Linux and the St. George Bank test fails ! ... I ask the bank to fix this at:
    https://www.stgeorge.com.au/contact_us/feedback.asp?orc=home

  • Do you have solution to add a signature on PDF files on HPUX (unix) system

    Hello,
    My company plans tio use PDF files for our customers billings and we need to add signature to them.
    As our PDF files are generated on a HPUX (unix) system, and quite 10000 files a day will be generated, do you have a solution do add signature to thses files directly on our unix system ?
    Thank you for help.

    Hello,
    just to let you know that I had a contact with DataLogics who developped a new toolkit that seems to manage digital signature .
    Adobe PDF Java Toolkit http://www.datalogics.com/products/pdfjt/
    I will let you know the results of my tests in the next weeks.
    thanks.

  • An error occured when connecting java with Ms Access

    Hello Everybody
    I am a new developer in java and want to connect java with Microsoft Access
    i am using JCreator LE
    My code is to insert 3 records for 3 members and then save them in DB and retrieve the information
    Here is the code
    import java.sql.*;
    public class Project3 {
        public static void main(String[] args) {
             try {
                  System.out.println("Beginning Connection");
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                String accessFileName = "Information";
                String connURL = "jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ="+accessFileName+".mdb;PWD=";
                Connection con = DriverManager.getConnection( connURL ,"","");
                Statement stmt = con.createStatement();
                System.out.println("Connection done successfully");
                stmt.execute("Create table Member(Name String,ID Integer)");
                stmt.execute("insert into Member values ('Joe','1234')");
                stmt.execute(" select * from Member");
                ResultSet rs=stmt.getResultSet();
                if (rs != null)
                     while (rs.next()){
                          System.out.println("Name: "+rs.getString("Name")+ "ID: " + rs.getString("ID"));
                stmt.close();
                con.close();
                catch (Exception e) {
                System.out.println("An error Occurred in Connecting with the DB " );
    }and the error is
    Beginning Connection
    Connection done successfully
    An error Occurred in Connecting with the DB
    it didn't insert information in the DB

    Well, thank u i have traced the error and fx it
    but
    how to modify the code and keep the user entering 3 values and search for the entered values??
    Here is the correct code
    import java.sql.*;
    public class Project3 {
        public static void main(String[] args) {
             try {
                  System.out.println("Beginning Connection");
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                String accessFileName = "jdbc:odbc:Project";
                String connURL = "jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ="+accessFileName+".mdb;PWD=";
                Connection con = DriverManager.getConnection( accessFileName);
                Statement stmt = con.createStatement();
                System.out.println("Connection done successfully");
                stmt.execute("Create table Member(Name String,ID Integer)");
                stmt.execute("insert into Member values ('Joe','1234')");
                stmt.execute(" select * from Member");
                ResultSet rs=stmt.getResultSet();
                if (rs != null)
                     while (rs.next()){
                          System.out.println("Name: "+rs.getString("Name")+ "ID: " + rs.getString("ID"));
                stmt.close();
                con.close();
                catch (Exception err) {err.printStackTrace();}
    }

  • MS-ACCESS from Unix system..

    Hi,
    I have a MS-Access database on Windows 2000 server. I need to write a java program running on a Unix system (AIX, Solaris or Linux) that accesses the database on the windows 2000 server. I can make it work on windows box using JDBC-ODBC bridge. How can I do that from a unix box? Thanks.

    The easiest way is to get a pure Java JDBC driver for
    MS Access. I am rather certain that that does not exist. There are certainly systems that provide a java only driver which allows one to access MS Access. But they involve more than just java.
    (Every time I searched the JDBC driver list for MS Access drivers all I found were proxy drivers.)

  • Unable to connect JAVA with Oracle

    I have jdk1.6 and oracle installed on my machine but unable to connect java with database
    have classes12.jar and ojdbc14.jar
    my environmental variables in respect to this are :
    JAVA_HOME= C:\Java\jdk1.6.0_04
    JRE_HOME=C:\Java\jdk1.6.0_04
    PATH=J:\oracle\ora92\lib;
    J:\oracle\ora92\bin;
    C:\Program Files\Oracle\jre\1.3.1\bin;
    C:\Program Files\Oracle\jre\1.1.8\bin
    CLASSPATH=J:\oracle\ora92\jdk\jre\bin\JdbcOdbc.dll;
    J:\oracle\ora92\jdbc\lib\classes12.jar;
    J:\oracle\ora92\jdbc\lib\ojdbc14.jar
    The code is
    import java.sql.*; public class dat1 {               public static void main(String[] args)throws SQLException,ClassNotFoundException {         try     {     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");     Class.forName("com.oracle.jdbc.OracleDriver");     } catch (ClassNotFoundException e) { System.out.println("unable to load driver"); return; }     } }
    the error message is
    Error in thread "main" java.lang.NoClassDefFoundError
    Please Help Me
    Thanks For Reading
    Thanks a lot in Advance For your ANSWERS

    maybe if you asked nicely instead of ordering people around we might tell you.
    As it is all you're going to hear is that you don't need both those jars, as they contain different versions of the same driver.
    I'm not going to tell you which you need, as you should have the documentation to tell you that. But then you also should have the documentation to tell you how to set your classpath properly and you failed to read that too.

Maybe you are looking for

  • How do I turn javascript and cookies on so I can get into my excite homepage and mail?

    I received the following message from Excite when trying to log-in to my homepage and email: "Right now, your browser's settings are configured to disable cookies and/or javascript. In order to access your account, you must change your browser's sett

  • PDF Font Issues

    I recently added some new fonts to my directory.  Since then, I have had font issues with my pdf's and previews where the characters are illegible.  I have tried using disabling fonts on Font Book for pdfs, and tried using Font Finagler and FontNuke

  • Problem in 11g tp3 lov

    Hi All, I have a create page with a lov (af:inputListOfValues )field country. But if I run the page, page is coming properly but on clicking of lov I am not getting the lov popup. below is code for your inspection <af:inputText value="#{bindings.ManI

  • Bought a new iPod touch today. Its in version 1.1.4 ???????

    I just bought a new iPod Touch, and the software version is 1.1.4. Isnt that supposed to be the new version 2.0 ?? Since this is a new iPod, I bet Apple should sell it with the latest updates!! Or, is this the way it is supposed to be?? Pls let me kn

  • Trigger jsxbin file using Vbscript

    Hi, I have tried the below code for run the jsxbin file under the Script Panel folder for InDesign CS6 using vbscript. The Indesign launch properly but the script does not execute. Also it is working fine in InDesign CS4 and CS5. Set myInDesign = Cre