SAPGUI for Java - Installs Fine, But Wont Run

Error when starting:  Could not find main class.  Program will exit.
This is displayed in a box entitled "Java Virtual Machine Launcher".
1) Windows XP
2) Java JRE 1.6 Patch 12 (the latest)
3) Path vars are set just like other PCs on which the Java Gui is working fine
4) Installation log claims to be successful
5) The error above displays when starting the GUI.  Cannot get far enough to turn tracing on.
6) Works on 6 our of 7 Pcs that we have tested.  If this PC is different than the rest, we are not able to easily determine what the difference is.
Ideas for troubleshooting would be welcomed.
Cannot find any notes/forum hits that seem to apply.
Thank you.

Hello John,
the error message you see is what typically happens when the JRE is too old to load the classes of the jars provided in the classpath.
Although your are writing you have Java JRE 1.6 Patch 12, please double check if this is the case on the particular PC and it is run from cmd when typing "java -version".
Best regards
Rolf-Martin

Similar Messages

  • HT2801 my disk drive will start up when i plug it in, and runs for about 30 seconds, but wont get recognized in my computer. It used to show up in the finder but that doesnt happen anymore

    my disk drive will start up when i plug it in, and runs for about 30 seconds, but wont get recognized in my computer. It used to show up in the finder but that doesnt happen anymore

    If you go to Disk Utility, can you see the drive on the left hand side? If not, then the drive is dead. You'll have to buy a new drive.
    Also, this forum is "Older Hardware". We specialise in hardware from the 1980s.

  • Solaris SAPGUI for Java 7.10 rev 8 try  error JniAgiLibAdaptor. init

    i have a problem java sapgui.
    Launch the Sapgui and then try to connect to any one of the three choices and it should produce the following error.
    i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    gui version;
    SAPGUI for Java 7.10 rev 8 (java),
    no library (lib)
    (Version ID 071000040800)
    Mon Mar 30 10:34:24 MEST 2009
    uw1059, 710_REL, 1054563
    Java VM: Sun Microsystems Inc. Version 1.6.0_14
    OS: SunOS(x86) Version 5.10
    The version of Java being used is:
    java -version
    java version "1.5.0_16"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02)
    Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
    Thank You,
    Ferhan
    JniAgiLibAdaptor.<init>: Cannot load JNI library
    details;
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:29)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at: java.awt.Component.processMouseEvent(Unknown Source)
    at: javax.swing.JComponent.processMouseEvent(Unknown Source)
    at: java.awt.Component.processEvent(Unknown Source)
    at: java.awt.Container.processEvent(Unknown Source)
    at: java.awt.Component.dispatchEventImpl(Unknown Source)
    at: java.awt.Container.dispatchEventImpl(Unknown Source)
    at: java.awt.Component.dispatchEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.proc
    Attempt to load shared library
    /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so failed.
    The library file exists, so either the program has
    insufficient privileges to access the library or the library
    is not loadable by the shared object loader.
    Please recheck the system requirements for your operating
    system and make sure all required libraries are installed.
    details;
    ava.lang.UnsatisfiedLinkError: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: ld.so.1: java: fatal: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: wrong ELF data format: ELFDATA2MSB (Possible cause: endianness mismatch)
    at: java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at: java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at: java.lang.ClassLoader.loadLibrary(Unknown Source)
    at: java.lang.Runtime.load0(Unknown Source)
    at: java.lang.System.load(Unknown Source)
    at: com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:56)
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:27)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicB

    > i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    >
    > gui version;
    > SAPGUI for Java 7.10 rev 8 (java),
    > no library (lib)
    > (Version ID 071000040800)
    > Mon Mar 30 10:34:24 MEST 2009
    > uw1059, 710_REL, 1054563
    > Java VM: Sun Microsystems Inc. Version 1.6.0_14
    > OS: SunOS(x86) Version 5.10
    The Java gui runs
    - on 64bit only
    - on SPARC hardware only (not on x86)
    If you execute the command
    file /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so
    you'll see that the library is just for SPARC.
    Markus

  • SAPGUI for Java error

    I installed "SAPGUI for Java" on Debian Etch. Installation went fine with no issues. When I add new connection and try to connect, I am getting below error message:
    Attempt to load shared library /opt/SAPClients/SAPGUI7.00rev4/bin/libJPlatin.so failed.
    The library file exists, so either the program don't has the previleges to access the library or the library is not loadable by the shared object loader
    Technical information:
    Error location: GuiJniLoader.loadPlatinLibrary()
    Error message: /opt/SAPClients/SAPGUI7.00rev4/bin/libJPlatin.so: Can't load IA 32-bit. so on a IA 32-bit platform
    When I click "OK" button, I am getting error
    JniAgilibAdaptor.<init>: Cannot load JNI library
    Any idea what might be the problem?

    Markus -
    Output of
    file /opt/SAPClients/SAPGUI7.00rev4/bin/libJPlatin.so
    /opt/SAPClients/SAPGUI7.00rev4/bin/libJPlatin.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
    My machine is a 32-bit one.
    Thanks,
    Phani

  • Copy values in ALV reports (cmd+Y/ctrl+Y) in SAPGUI for Java 7.00 rev.4?

    Hi all,
    I'm using SAPGUI for Java 7.00 rev.4 in Mac OSX.
    I use intensively ALV GRID reports. I do frequently need to copy multiple cells values from one column.
    In Windows GUI I do ctrl+Y, than select the area containing the cells and the values are copied in the clipboard.
    In Java GUI (OSX) but I cannot do cmd+Y on more cells of the same column!!!!!
    Any suggestion? Am I doing something wrong? Is it a known issue?
    Many thanks,
    Lorenzo

    Hello Lorenzo,
    you might have seen the release notes of SAP GUI for Java 7.10 rev 5 regarding the grid control.
    It has seen major changes (and improvements) in its core which have been a lot of work.
    The developer is now getting closer to the point where it is reasonable to implement add-on functionality like copying the content of multiple cells.
    It is planned for SAP GUI for Java 7.20, but it is not clear yet if it will be available also as part of a 7.10 revision.
    Best regards
    Rolf-Martin

  • Unable to launch sapgui for Java 7.00

    Hi,
    I encountered the following error when launching sapgui for java:
    [root@family home]# /opt/SAPClients/SAPGUI7.00/bin/guistart /H/n4shost/S/3201&expert=true
    [1] 6939
    [root@family home]# ############################# ERROR #############################
    24.11. 19:00:12.698 ERROR: Attempt to load shared library /opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so failed.
    The library file exists, so either the program
    don't has the privileges to access the library
    or the library is not loadable by the shared object loader
    Technical information:
    Error location: GuiJniLoader.loadPlatinLibrary()
    Error message : /opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so (/opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so: wrong ELF class: ELFCLASS32)
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so (/opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so: wrong ELF class: ELFCLASS32)
    Can someone help please?
    Regards,
    Lim

    > Error message : /opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so (/opt/SAPClients/SAPGUI7.00/bin/libJPlatin.so: wrong ELF class: ELFCLASS32)
    You need to run a 32bit JDK for a 32bit Java gui.
    Markus

  • SAPGUI for Java Support on Mac 10.4

    Hi,
    I am using Mac OS 10.4 Tiger version with SAP GUI 6.4 rev6.
    when I use SAPGUI 6.4 for eCATT Scripts, I  am not able to append or insert new rows in the Parameter list.
    Although, all the commands/pushbuttons are working as they should. On pressing the Append button, a line is inserted in the parameter list, I can add new parameter also. But the problem comes while saving the changes. The system message shows that test script saved successfully, but the changes are not reflected in the parameter list.
    The details about the hardware/ software am using are:
    Hardware:
    Machine Name:     iMac
    Machine Model:     PowerMac6,1
    CPU Type:     PowerPC G4  (3.3)
    Software:
    System Version:     Mac OS X 10.4 (8A428)
    Kernel Version:     Darwin 8.0.0
    SAPGUI for JAVA:
    SAPGUI for Java 6.40 rev 6
    (Version ID 064000040600)
    Build: Wed Dec 21 13:01:37 MET 2005 on uw1059
    Java VM: Apple Computer, Inc. Version 1.4.2-54
    OS: Mac OS X(ppc) Version 10.4
    I would like to know if anyone else has faced the same problem with this configuration?
    Do I need to change my configuration?
    I am currently using SAPGUI for Java 6.3 rev8 for my eCATT scripting without the above problem.
    One more problem is that am no more able to do recording through SAPGUI command in eCATT. OSS note 454939 says that SAPGUI for Java does not support eCATT. Use SAPGUI for windows for SAPGUI recordings.
    Does that mean SAPGUI recording in eCATT will not be supported for SAPGUI for Java any further?

    Hi,
    I am also need this Software.
    My PC Macbook 20010.
    Thak`s
    Rodolfo.

  • SAPGUI for JAVA error message "wrong logon langage!

    Hello,
    We are testing SAPGUI 7.10 on Linux
    but we have some problem when we want to connect to operation server and it works with other servers like development server.
    The error message is
    "Wrong longon language!
    This language is not allowed for this PC!
    You will be logged off!"
    All servers are in same kernel package 4.6D
    Version SAPGUI for Java is 7.10 rev 1 & rev 3
    OS SUSE 2.6.16.46-0.14
    String connection: /H/servername/S/3200
    Please help me!

    I try with an other PC but i have the same problem.
    In SM21, I didn't see error log of my logon test.
    I have the same language installed in all servers, i saw in SMLT but i think there is a conflict between language in the PC and the server.
    That is strange, it's worked with all server wich are not in cluster.
    also , i tried to connect to servers wich are in cluster with this connection string : conn:/M/servername/S/3600/Gservergroup but i have the same problem.
    I tried to connect to AS directly but i have the problem again.
    I don't understand what its means SM21 t-code.
    Thanks a lot for your help

  • SAPGUI for JAVA on HPIA64 error

    Dear all,
    We have installed SAPGUI for JAVA 7.00 in our HPIA64 server (hpux 11.23), using java1.4 version.
    While starting the sapgui with the following command I get the below error:
    cpchpsap:dv2adm 36> sapgui /H/binmain.cpchpsap.clorox.com/S/3253
    ERROR #############################
    23.12. 17:17:22.937 ERROR: Attempt to load shared library /home/dv2adm/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.sl failed.
    23.12. 17:17:22.937 ERROR: The library file exists, so either the program
    23.12. 17:17:22.937 ERROR: don't has the privileges to access the library
    23.12. 17:17:22.937 ERROR: or the library is not loadable by the shared object loader
    23.12. 17:17:22.937 ERROR: Technical information:
    23.12. 17:17:22.937 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
    23.12. 17:17:22.937 ERROR: Error message : /home/dv2adm/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.sl: '/home/dv2adm/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.sl' is not a valid load module: Bad magic number
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /home/dv2adm/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.sl: '/home/dv2adm/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.sl' is not a valid load module: Bad magic number
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1611)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482)
            at java.lang.Runtime.load0(Runtime.java:741)
            at java.lang.System.load(System.java:811)
            at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
            at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
            at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
            at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
            at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
            at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
            at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
            at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
            at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sap.platin.Gui.main(Gui.java:65)
    Please note our server is IA64 is a 64 bit server.
    Can anyone help me to sort out this issue.
    I have read this note 335515, but not able to understand fully
    Thanks
    Senthil

    SAPGUI for Java is not available for IA64/Itanium-2 - just for PA-RISC.
    Markus

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • How to eliminate Command Box in SAPGUI for Java in Portal?

    Greetings.
    We are planning to use SAPGUI for Java in Portal.
    How do we make sure the user does not go to a different transaction other than the one defined in the iView.
    Thank you.
    PK

    I am sending you a link for forum thread.Hope you find your query answered.
    Re: Hide the command box in sap gui
    Have a best day.

  • SAPGUI for Java 6.40 rev 2 available

    Hi all,
    SAPGUI for Java 6.40 rev 2 is now available at
    ftp://ftp.sap.com/pub/sapgui/java/640r2/
    This version includes the bugfix for the problem with Single Sign On, which was discussed in this forum before.
    Release notes can be found in the installers and the separate manual.
    Please refer to OSS note 689063 for supported platforms.
    (http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012003146900000299152003)
    Best regards
    Rolf-Martin Woersinger
    SAPGUI for Java project lead

    Hello,
    it might have been preferable to create a new thread for this.
    smartforms use ActiveXes, which are not there in SAP GUI for Java (see also transaction classification). The content of the message shown by the transaction is questionable however. What it wants to say is that this functionality is only available with SAP GUI for Windows.
    Best regards
    Rolf-Martin

  • Latest ABAP trial SAP 7.02    Installs fine BUT Please note  following:

    1) It works fine but DO NOT use  JAVA JRE 1.6  -- installation will fail at about 9 Hours on som esystems  (yes 9 hrs) on the 2nd last step of ABAP IMPORT.
    2) ensure you set the system paging file to at least 8 GB
    3) SAPGUI needs to be installed from the SAP_GUI_FOR_WINDOWS_720_PL3 folder    NOT SAPINSTGUI.exe file.
    4) For getting ABAP WEB DYNPRO to work follow the instructions in the guide on this forum  - I've lost the link but it's a PDF file called STEP BY STEP configuration for running WEBDYNPRO in SAP NETWEAVER  7.01 SR1 SP3 -- it's the same as for this version of the abap trial system. - ENSURE PARTICULARLY the HOST NAME AND HOSTS FILE instructions -- do this AFTER you've installed the system.
    5)  I set mine up on a laptop as a W2K3 Virtual machine having 2 GB of memory  (Main laptop has 4GB RAM).
    Took around 9 Hours to complete so run it overnight.
    Once it's up and running it's not too bad -- my host laptop is running Windows 7 X-64.  (You CAN install on W7 or W8 server -- either the 32 or 64 bit versions). . I prefer this stuff on a Virtual Machine M then I can move it to other computers without any problems.
    For ABAP developers this new version has some good features to test and of course you can play with WEB DYNPRO for ABAP.
    Cheers
    jimbo

    1) It works fine but DO NOT use  JAVA JRE 1.6  -- installation will fail at about 9 Hours on som esystems  (yes 9 hrs) on the 2nd last step of ABAP IMPORT.
    2) ensure you set the system paging file to at least 8 GB
    3) SAPGUI needs to be installed from the SAP_GUI_FOR_WINDOWS_720_PL3 folder    NOT SAPINSTGUI.exe file.
    4) For getting ABAP WEB DYNPRO to work follow the instructions in the guide on this forum  - I've lost the link but it's a PDF file called STEP BY STEP configuration for running WEBDYNPRO in SAP NETWEAVER  7.01 SR1 SP3 -- it's the same as for this version of the abap trial system. - ENSURE PARTICULARLY the HOST NAME AND HOSTS FILE instructions -- do this AFTER you've installed the system.
    5)  I set mine up on a laptop as a W2K3 Virtual machine having 2 GB of memory  (Main laptop has 4GB RAM).
    Took around 9 Hours to complete so run it overnight.
    Once it's up and running it's not too bad -- my host laptop is running Windows 7 X-64.  (You CAN install on W7 or W8 server -- either the 32 or 64 bit versions). . I prefer this stuff on a Virtual Machine M then I can move it to other computers without any problems.
    For ABAP developers this new version has some good features to test and of course you can play with WEB DYNPRO for ABAP.
    Cheers
    jimbo

  • Code compiles but wont run

    Hi,
    My prgram was working fine until I added some database stuff to it, now it will compile but it wont run, heres my relevent code:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.sql.*;
    public class DisplayController extends JFrame 
         public JTextField txtTime, txtInterest, txtAmount;
         public JLabel lblTotal;
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/Money?user=root&password=root";
         private Connection conn;
         private Statement stat;
         public JComboBox accountList;
         Vector vector1 = new Vector();
         ButtonHandler theButtonHandler = new ButtonHandler(txtTime, txtAmount, txtInterest, lblTotal);
       // set up GUI
       public DisplayController()
          super( "Goon Money Manager " );
          JTabbedPane tabbedPane = new JTabbedPane();
              /* sets up the transactions window and adds
                   it to the tabbedPane,this is where all the
                   transactions for all the accouns are displayed.
         try
                   Class.forName(JDBC_DRIVER);
                   conn = DriverManager.getConnection(DATABASE_URL);
                   stat = conn.createStatement();
                   ResultSet rs = stat.executeQuery("SELECT heading1 FROM demo");
                   while(rs.next()) vector1.add(rs.getObject(1));
              catch(SQLException sqlException)
                   System.exit(1);
              catch (ClassNotFoundException classNotFound)
                   System.exit(1);
              }

    thats exactly what I put in... what else can I do so I can see whats going on? Here's the entire code in case you need it:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    public class DisplayController extends JFrame 
         public JTextField txtTime, txtInterest, txtAmount;
         public JLabel lblTotal;
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/Money?user=root&password=root";
         private Connection conn;
         private Statement stat;
         public JComboBox accountList;
         Vector vector1 = new Vector();
         ButtonHandler theButtonHandler = new ButtonHandler(txtTime, txtAmount, txtInterest, lblTotal);
       // set up GUI
       public DisplayController()
          super( "Goon Money Manager " );
          JTabbedPane tabbedPane = new JTabbedPane();
    /* sets up the transactions window and adds
         it to the tabbedPane,this is where all the
         transactions for all the accouns are displayed.
          try
                   Class.forName(JDBC_DRIVER);
                   conn = DriverManager.getConnection(DATABASE_URL);
                   stat = conn.createStatement();
                   ResultSet rs = stat.executeQuery("SELECT accountName FROM Money");
                   while(rs.next()) vector1.add(rs.getObject(1));
              catch(SQLException sqlException)
                   System.exit(1);
                   sqlException.printStackTrace();
              catch (ClassNotFoundException classNotFound)
                   System.exit(1);
                   classNotFound.printStackTrace();
          JTextArea mainWindow = new JTextArea(600,300);
              accountList = new JComboBox(vector1);
              JPanel displayTabPanel = new JPanel(new FlowLayout());
              displayTabPanel.setLayout(new FlowLayout() );
              displayTabPanel.add(accountList);
              displayTabPanel.add(new JScrollPane(mainWindow));
              tabbedPane.addTab("Transactions",null,displayTabPanel,"Transaction List");
              accountList.addListSelectionListener(
              new ListSelectionListener()
                   public void valueChanged(ListSelectionEvent event)
                        try
                             ResultSet resultSet = stat.executeQuery("SELECT * FROM demo");
                             StringBuffer results = new StringBuffer();
                             ResultSetMetaData metaData = resultSet.getMetaData();
                             int numberOfColumns = metaData.getColumnCount();
                             for(int i = 1; i<=numberOfColumns; i++)
                             results.append(metaData.getColumnName(i) + "\t");
                             results.append("\n");
                             while (resultSet.next())
                                  for(int i = 1; i<= numberOfColumns; i++)
                                  results.append(resultSet.getObject(i) + "\t");
                                  results.append("\n");
                        catch(SQLException sqlException)
                             JOptionPane.showMessageDialog(null,sqlException.getMessage(),
                             "Database Error1", JOptionPane.ERROR_MESSAGE);
                             System.exit(1);
         );//end anonymous inner class
    /* sets up a savings planner to
         calculate various saving senarios
          JComboBox weekMonthYear;
              JLabel amount = new JLabel("Amount         ");
              JLabel time = new JLabel("Time               ");
              JLabel interestRate = new JLabel("Interest Rate");
              JLabel total = new JLabel("Total");
              JButton calc = new JButton("Calculate");
              JPanel top, panAmount, panTime, panTotal, panCalculate;
              JPanel panInterest = new JPanel();
              JPanel container1 = new JPanel();
              String comboNames[] = {"Weekly","Monthly","Yearly"};
              container1.setLayout(new BoxLayout(container1, BoxLayout.PAGE_AXIS));
              weekMonthYear = new JComboBox(comboNames);
              top = new JPanel();
              top.setLayout(new FlowLayout());
              top.add(weekMonthYear);
              panAmount = new JPanel();
              panAmount.setLayout(new FlowLayout());
              panAmount.add(amount);
              txtAmount = new JTextField(7);
              panAmount.add(txtAmount);
              panTime = new JPanel();
              panTime.setLayout(new FlowLayout());
              panTime.add(time);
              txtTime = new JTextField(7);
              panTime.add(txtTime);
              panInterest.setLayout(new FlowLayout());
              panInterest.add(interestRate);
              txtInterest = new JTextField(7);
              panInterest.add(txtInterest);
              panTotal = new JPanel();
              panTotal.setLayout(new FlowLayout());
              panTotal.add(total);
              lblTotal = new JLabel();
              panTotal.add(lblTotal);
              panCalculate = new JPanel();
              panCalculate.setLayout(new FlowLayout());
              panCalculate.add(calc);
              container1.add(top);
              container1.add(panAmount);
              container1.add(panTime);
              container1.add(panInterest);
              container1.add(panTotal);
              container1.add(panCalculate);
              tabbedPane.addTab("Savings Planner",null,container1,"Test Savings Senerios");
              JPanel budgetTop, budgetBottom, budgetMain;
              JList budgetList;
              JButton addBudget;
              JTextField txtAddBudget;
              budgetMain = new JPanel();
              budgetList = new JList();
              budgetList.setVisibleRowCount(10);
              budgetTop = new JPanel();
              budgetTop.setLayout(new FlowLayout());
              budgetTop.add(budgetList);
              addBudget = new JButton("Add Budgeted Item");
              txtAddBudget = new JTextField(20);
              budgetBottom = new JPanel();
              budgetBottom.setLayout(new FlowLayout());
              budgetBottom.add(addBudget);
              budgetBottom.add(txtAddBudget);
              budgetMain.setLayout(new GridLayout(2,1));
              budgetMain.add(budgetTop);
              budgetMain.add(budgetBottom);
              tabbedPane.addTab("Budget",null,budgetMain,"View and Edit your Budget");
          getContentPane().add( tabbedPane );
          setSize( 700, 400 );
          setVisible( true );
       } // end constructor
       public static void main( String args[] )
          DisplayController app = new DisplayController();
          app.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    } // end class DisplayController

  • SAPGUI for JAVA 7.00 rev 5 - ALV grid problem

    Hello all,
    I've created simple program using editable ALV grid to edit custom database table in the dictionary.
    After upgrading to rev 5 I can't delete any row from the grid. After clicking the minus sign on the grid toolbar nothing happens. In the release note for the rev. 5 is written that protected rows can be no longer deleted. But I haven't written any code to protect any row in the grid.
    When run on SAPGUI 7.00 rev 4 or SAPGUI for windows 7.10 it works.
    Thanks for any help.

    Hello Petr,
    both in "BCALV_GRID_EDIT" and in "BCALV_GRID_VERIFY" which we use as testreports for editable ALV grid, I can select a line and delete it using the the "delete line" icon in the grid's toolbar running SAP GUI for Java 7.00 rev 5.
    Can you somehow reproduce the issue with the mentioned reports (playing with the options)?
    Otherwise we would need access to your custom program. Then it would be helpful if you could <a href="http://service.sap.com/message">create a message</a> on component BC-FES-JAV and make your system available to us.
    Best regards
    Rolf-Martin

Maybe you are looking for

  • Call of duty 4 download

    I'll wait until the game seems to 6.8gb when downloading from the App Store for Mac?

  • RSA6 doesn't show appended fields

    Hello group, I added some fields in an append structure of BIW_PROJ for my 0PROJECT_ATTR extractor. When I call 0PROJECT_ATTR in RSA^I don't see these new fields. Former fields in the appens structure such as XSTAT and BWSTACQU (a status according to

  • Resizing a movie in a window and it's sprites

    I'm working on a kind-of slide show project. The 'show' runs in a resizable window. The projector (created with Director v10) has a lot of sprites (>60). Most of them should not be resized and should stay at a fixed position (e.g. at the right margin

  • SLR - transaction response time for all appl. servers together

    Hi, we want to have in SLR response time for defined transaction. We have activated necessary steps for monitoring transactions, started CPH and we can see in SLR average response times. We have several application servers and we want to have in SLR

  • OWSM Policy Monitor - clustering

    One of the Oracle document says, In OWSM 10.1.x production deployment, the gateways and PolicyManager can be load balanced (active/active) but the Monitor is not load balanced (active/passive). Why monitor is not load balanced? How monitor will be sc