Hi friendz..plz hlp me to access hardware details

..any way to retrieve hardware details using java..java methods or java classes supporting tis..i want build an application for a network admin..to get all the hardware details of a system such as hardisk capacity ..free space ..memmory etc..plz help me..

Hi,
Check out the following Eg: to handle exceptions of FM in Reports,
  CALL FUNCTION 'Z_CALL_TRANS' STARTING NEW TASK 'test'
        EXPORTING
          tcode          = 'SESS'
        EXCEPTIONS
          invalid_tcode  = 1
          not_authorised = 2
          OTHERS         = 3.
      IF sy-subrc = 1.
        MESSAGE 'Invalid T-code' TYPE 'E'.
      ELSEIF sy-subrc = 2.
        MESSAGE 'Not Authorised to use this Transaction' TYPE 'E'.
      ENDIF.
Sy-subrc is equal to the order of the exceptions declared in that function module.

Similar Messages

  • For Experts: Why does LabView cause System reboot while accessing hardware with driver?

    Hello NI Developers!
    I use LabView 7.1 under Windows XP
    I have a programm console application which accesses through Jungo Windriver PCI-E board.
    This program works fine - and performs DMA data transfer between PC and Board's memory.
    In order to implement this console application work together with LabView I did following:
    1) Added this function inside the source:
     _declspec(dllexport) void LVMainFunction(uInt32 *IntValue);
    _declspec(dllexport) void LVMainFunction(uInt32 *IntValue)
        AllocConsole();                   //Open new console window
        SetConsoleTitle(L"Debug Window"); //Set a title for console window
        freopen("CONOUT$","a+",stdout); //redirec standard output stream to current window so
                                        // so we are able to see "printf" outputs
       freopen("CONIN$","a+",stdin);    //redirec standard input stream to current window so
                                        // so we are able pass inputs from keyboard
       main();                          //Call applications main function which does all the work
    2) Compiled this new source as DLL library
    3) Call  LVMainFunction(...) function from LabView using Call Library Node
    In the result: Executing VI - opens new console window, shows debug outputs and receives keyboard inputs.
    It works fine till the last function, which perform DMA data transfer - and reboots PC.
    1) Why does this happen?
    2) I understand that opening console from Call Library Node, attaches together this console window and running VI. So If I close one of them - both windows closes.
         So does LabView have somekind of restrictions of accessing Hardware's functions? 
    I can read Board's resource information and view size of memory on board, interrupt functions and other information about device, but when I try to reach
    DMA my system reboots. And I understand that this should be some kind of LabView problem, cause I tried different implementations, even without use of
    console window - and the result is the same.
    3) Should I split the program in to two separate processes and perform data exchange using Sockets or Pipes techology?
    Thank you in advance!
    ACiDUser
    Message Edited by ACiDuser on 11-13-2008 09:37 AM

    Hello!
    At LAST!!!
    I solved this problem!
    From the beginning I was following National Instruments manual on how to build DLL with external IDE:
      http://zone.ni.com/reference/en-XX/help/371361A-01​/lvhowto/building_library_project/
    Set the Struct member alignment control to 1 Byte.
    Now this option caused my PC to reboot!
    So could someone explain  why this happened? and If it is a bad tip, so it's better to remove from manual. Then other people will not have such problems as I did
    - wasting 2 monthes of time determining the problem. 
    I changed it to  Set the Struct member alignment control to DEFAULT.
    and now everything works fine.
    Regards
    Message Edited by ACiDuser on 11-13-2008 11:14 AM

  • Imac mid 2011 os10.7.5 can't access hardware test.  could months ago, now no.

    using alt+D can get (wifi only) connection to page with world map in circle, below "connecting internet recovery" and statement the "this may take a while".
    Gives no option for ethernet , showing only wifi accounts even when wifi is turned off on compu.
    After waiting quite a while an exclamation point covers circle with world and below says:  apple.com/support -2002d - going there find nothing applicable to case.
    I was able to access with no problem several times up til last couple of months.  Can any one please advise how to access hardware test?????
    Many thanks.
    Carmenoax

    using alt+D can get (wifi only) connection to page with world map in circle, below "connecting internet recovery" and statement the "this may take a while".
    Gives no option for ethernet , showing only wifi accounts even when wifi is turned off on compu.
    After waiting quite a while an exclamation point covers circle with world and below says:  apple.com/support -2002d - going there find nothing applicable to case.
    I was able to access with no problem several times up til last couple of months.  Can any one please advise how to access hardware test?????
    Many thanks.
    Carmenoax

  • How to access hardware?

    Hi there,
    Could someone please tell me if it is possible to access hardware ports with java (i.e. like inport() and outport() in c)?
    Is there any separate API available? (-> NOT the COMM API!!!)
    If not, do i have to use JNI?
    Concluding, is there any commercial library that allows you to do this in java?
    Thanks in advance,
    John

    Hi again!
    I choosed to go on and use the JNI ability of java.
    I downloaded Borland c++ 5.5.1 which is a free 32-bit command line compiler for c++. I tried the "hello world" example in the JNI tutorial page and it worked great. However, when i tried to compile some code that contained the functions 'inportb' and 'outportb' (i.e. which is the reason of why i am using JNI) it tells me that these are undefined even if i imported the correct header files!
    After some search i find out that borland removed these functions for security reasons with windows! (WHAT!?)
    To conclude, my question is:
    Does anyone know any free c++ compiler that is able to generate .dll files and also supports the functions 'inportb' and 'outportb'
    Thanks a million times!
    John

  • I m in urgent need of sme alv reports in sd module so plz hlp me out.

    i m in urgent need of sme alv reports in sd module so plz hlp me out.
    if possible plz provide explanation so tht i can understand it fast and well.

    check with below standard reports :
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    <b>Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC</b>Customer
    Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    <b>Blocked orders - V.14</b>
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22
    Simple example what  i did - Monthly Sales Report
    TYPE-POOLS
    type-pools : slis.
    Tables
    tables : VBAK,
             VBAP.
    Internal table for VBAK Table
    data : begin of i_vbak occurs 0,
           vbeln like vbak-vbeln,
           bstnk like vbak-bstnk,
           vdatu like vbak-vdatu,
           end of i_vbak.
    Internal table for VBAP and MATNR
    data : begin of i_vbap occurs 0,
           vbeln like vbap-vbeln,
           matnr like vbap-matnr,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr like vbap-netpr,
           maktx like makt-maktx,
           end of i_vbap.
    Internal tables
    data : begin of i_sales occurs 0,
           vdatu like vbak-vdatu,
           bstnk like vbak-bstnk,
           matnr like vbap-matnr,
           maktx like makt-maktx,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr  like vbap-netpr,
           end of i_sales.
    Variable for ALV
    data : v_repid like sy-repid,
           gt_fieldcat    type slis_t_fieldcat_alv.
    Selection-screen
    selection-screen : begin of block blk with frame title text-001.
    select-options : s_vbeln for vbak-vbeln,
                     s_erdat for vbak-erdat,
                     s_ernam for vbak-ernam,
                     s_vdatu for vbak-vdatu obligatory,
                     s_BSTNK for vbak-BSTNK,
                     s_KUNNR for vbak-kunnr,
                     s_matnr for vbap-matnr,
                     s_KDMAT for vbap-KDMAT.
    selection-screen : end of block blk.
    Initilization
    initialization.
      v_repid = sy-repid.
    S T A R T  -  O F  -  S E L E C T I O N ****************
    start-of-selection.
    Get the data from VBAK and VBAP Tables
      perform get_vbak_vbap.
    E N D  -  O F  -  S E L E C T I O N *****************
    end-of-selection.
    Display the data
      perform dispolay_data.
    *&      Form  get_vbak_vbap
          Get the data from VBAK and VBAP Table
    FORM get_vbak_vbap.
    Get the data from VBAK Table
      select vbeln bstnk vdatu from vbak into table i_vbak
                         where vbeln in s_vbeln
                         and   bstnk in s_bstnk
                         and   vdatu in s_vdatu
                         and   kunnr in s_kunnr
                         and   erdat in s_erdat
                         and   ernam in s_ernam.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
    Get the data from VBAP Table
      select avbeln amatnr akdmat akwmeng a~netpr
             b~maktx into table i_vbap
             from vbap as a inner join makt as b on bmatnr = amatnr
             for all entries in i_vbak
             where a~vbeln in s_vbeln
             and   a~kdmat in s_kdmat
             and   a~abgru = space
             and   a~matnr in s_matnr
             and   a~matnr ne '000000000000009999'
             and   a~matnr ne '000000000000004444'
             and   a~matnr ne '000000000000008888'
             and   a~matnr ne '000000000000001111'
             and   a~werks = '1000'
             and   b~spras = 'E'
             and   a~vbeln = i_vbak-vbeln.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
      sort i_vbak by vbeln.
      sort i_vbap by vbeln matnr.
      loop at i_vbap.
        read table i_vbak with key vbeln = i_vbap-vbeln
                                binary search.
        if sy-subrc eq 0.
          i_sales-bstnk = i_vbak-bstnk.
          i_sales-vdatu = i_vbak-vdatu.
          i_sales-matnr = i_vbap-matnr.
          i_sales-kdmat = i_vbap-kdmat.
          i_sales-maktx = i_vbap-maktx.
          i_sales-netpr = i_vbap-netpr.
          i_sales-kwmeng = i_vbap-kwmeng.
          append i_sales.
        else.
          continue.
        endif.
        clear : i_sales,
                i_vbap,
                i_vbak.
      endloop.
      sort i_sales by vdatu bstnk matnr.
      refresh : i_vbap,
                i_vbak.
    ENDFORM.                    " get_vbak_vbap
    *&      Form  dispolay_data
          Display the data
    FORM dispolay_data.
    Fill the Fiedlcat
      PERFORM fieldcat_init  using gt_fieldcat[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
          IT_FIELDCAT                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_ADD_FIELDCAT                   =
      IT_HYPERLINK                      =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
      IT_EXCEPT_QINFO                   =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = i_sales
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    ENDFORM.                    " dispolay_data
    *&      Form  fieldcat_init
          text
         -->P_GT_FIELDCAT[]  text
    FORM fieldcat_init USING  e01_lt_fieldcat type slis_t_fieldcat_alv.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    Delivery Date
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'VDATU'.
      LS_FIELDCAT-OUTPUTLEN    = 12.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Delivery Date'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Purchase Order #Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'BSTNK'.
      LS_FIELDCAT-OUTPUTLEN    = 25.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Purchase Order #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-REF_FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-REF_TABNAME    = 'MARA'.
      LS_FIELDCAT-FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material #'.
      ls_fieldcat-seltext_M = 'Material #'.
      ls_fieldcat-seltext_S = 'Material #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MAKTX'.
      LS_FIELDCAT-OUTPUTLEN    = 40.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material Description'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Customer Material #
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KDMAT'.
      LS_FIELDCAT-OUTPUTLEN    = 35.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Customer material no.'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Quantity
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KWMENG'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Quantity'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Net Price
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'NETPR'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Net Price'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    ENDFORM.                    " fieldcat_init
    Thanks
    Seshu

  • Mail keeps opening in the background when accessing contact details

    I'm using iPhone 3G
    I have an App called FreeMemory (from the AppStore) than can view all running apps in the background.
    What I'll do is check FreeMemory and I can see that Mail is NOT running.
    Then I go ahead and open Contacts and tap on a particular contact name (I noticed that it takes a while to open the details of a particular contact).
    After that I close Contacts and go back to FreeMemory. Now I see Mail running in the background.
    (but when I only open Contacts and scroll through the list and I dont tap a contact name, it WONT open the Mail app).
    I can conclude that accessing a contact detail also opens Mail app which eats RAM since im using only iPhone 3G which has small RAM.
    *PLEASE note that all my mail accounts are already INACTIVE/DISABLED and my Fetch options are OFF and set to Manual. Also, I DONT have any email adress info of my contacts stored in their names.
    Any idea how I can prevent Mail from opening when I access contact details??
    thanks!

    Try with "Minimize to Tray" Add-ons
    *https://addons.mozilla.org/en-US/thunderbird/search/?q=minimize+to+tray

  • Remediation of conflicts in the 'Access Incident Details Extract' report

    Hi All,
    The 'Access Incident Details Extract' report captures both intra-role and inter-role conflicts at the user level.
    Is there a way to segregate the inter-role conflicts from the 'Access Incident Details Extract' report and do the remediation without following the process of intra-role remediation first?
    Please advise. Require the inputs urgently.
    Regards,
    Uma

    Hello,
    please also use our .NET sample lib on diamond.
    You will find lots of sampels how to access  report fields in crystal reports and to add, modify or delete them.
    You'll find diamond under :
    https://boc.sdn.sap.com/

  • Access the detailed navigation link using webdynpro

    Hi,
    I have a requirement where we have two different DC's of which one is a standard DC and the other one is custom DC with one application in each of them.My requirement is to navigate to the other application in the second DC directly on clik of a link or button from the current application.Also since these applications are displayed in detailed navigation i want to access the detailed navigation link location and activate the other Application instead of using WDPortalNaviagtion.
    The steps are:
    Development Component - DC1 - This is custom DC
    with application APP1
    Development Component -DC2 - This is standard
    with application APP2
    I have APP1 & APP2 in the detailed navigation.
    If i have a link or button in APP1 to navigate to APP2 i have to be able to activate the link on the detailed Navigation of APP2 to open up its content.

    Hi Swathi,
    Check the following threads:--
    Replace an iView dynamically by another one by portal navigating service
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1aa4d188-0e01-0010-2382-c5c65202c433
    http://help.sap.com/saphelp_nw04/helpdata/en/43/d1233b4c1d0a85e10000000a1553f6/frameset.htm
    Hope This Will Help
    Regards,
    Siddharth

  • How to find hardware details of IPVC-3515-MCU12

    Please help me with how to find hardware details of IPVC-3515-MCU12 & also for Cisco Unified MeetingPlace Express

    Hi Vijay,
    you can login into IPVC. Under Device---Basics, u can get Serial number, Hardware and Software version.
    regds,
    aman

  • Phone Hardware Details

    I am looking for a mean of getting Phone hardware details such as CPU, Memory, Serial numbers etc. From what i have seen there is not an api set that will specifically pull back this type of information. However, I hvae seen post on othere forums that seem to hint that you can get this information by establishing a connection to phones comm port.
    is this assumption correct and if it is so does anyone have any sample code or example on how to do this.
    Best Regards
    Bill Brant

    Hi alllies,
    Thanks for your post and welcome to the forums.
    Sorry to hear about the issues you have been having with your Lumia device and the freezing, I can assure you this is not a common problem amongst the Lumia range of devices.
    Have you tried contacting your local Nokia care line or Nokia care point?
    You can find this information on the below link:
    http://www.nokia.com/global/support/locations/
    Or alternatively you can also email : [email protected] If you do email then if you can please provide as much information as possible including contact details, full details of the issue you have been having, any reference numbers you may have and any other information you think it would be useful and we will look into this for you.
    Raoul_Duke
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • In Apex How to access Updateable detail report field.

    I am using Apex 4.0. i want to to access Updateable detail report field for example
    my updateable detail report one field is that srno
    i assign sr no as primary key.
    when i build master detail form then i want to add increment automatically through custom pl/sql source.
    but problem is that i don't know how to access Updateable detail report field.
    thanks
    Regards
    NOMAN RASHAD

    In your SQL:
    SELECT ename, job, your_function(sal, comm) your_calculation
       FROM empDenes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

  • Java Program accessing hardware driver

    I am planning to develope a project with a USB smart card reader. The USB smart card reader is for some form of authenication purpose of the card holder to verify that the authenticated user is using the program. The application will be a web based program in which a java applet (or java application) will be developed for the web page to access the local USB smart card reader. Can Java Applet has some form of ability to access the hardware, either by accessing the smart card API or it can directly access the USB port to read/write information directly to the smart card reader, provided that the USB reader can provide the low-level communication protocol.

    You will have to sign your applet
    And you might also need native libraries to access
    the card readerThanks for your prompt help.
    Because I am quite new to Java, I might ask some naive question.
    When you "sign" the applet, which I believe it will be done in the browser setting to trust the applet, this will loosen the security concern of the applet, right?
    The native libraries should then be in the form of a DLL in windows environment which the Java applet can call, right? And could you provide some sample code that how a DLL function call can be integrated into Jave.
    Thanks again for your help.

  • PLZ HELP WITH N95 ACCESS INTERNET AND EATING MY MO...

    Hi could anyone shed some light on my problem? I have a n95 unlocked but was previouse on orange but had to get it unlocked to stop it going on the orange net every hour or so. Iv looked in the manuale and on page 128 it states that to stop this from appening turn off multimedia retrieval. having done this and thought it worked 8 hrs later back to square 1..still access internet and mulitimedia retrieval is turned off still :.( iv tried turning everything off to do with net incl wifi bluetooth ect ect taken the memory card out. reseting to factory settings..in the device mgr my device software is..v11.0.026...plz if anyone can help let me know many thanks...

    Do you have any unsent Multimedia messages in the outbox?
    Do you have installed any other applications that may use data? or have them running in the background?
    Some examples:
    Podcasting
    Browser
    Instant Messaging applications (Windows Live!, Yahoo Go!, etc.)
    VoIP or SIP applications (Fring, Gizmo, etc.)
    Streaming applications (virtual radio, video streaming, Video Center)
    Widsets
    etc.
    If you don't know what's running or what's installed in the device, I recommend that you do a reset to delete all installed applications. Then see if it still connects.
    Cheers!
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Accessing hardware board with two VIs simultaneously

    Hello,
    I have a NI BNC-2090 board that I use to interface with a multimeter (which I get my data from) and an ion gauge (which needs to have its filament current regulated and held constant). I have a VI which I've written that performs both the data acquisition and current regulation, but it can only do one of these tasks at a time, which is undesirable because the filament current drifts when the data is being gathered.
    In order to prevent the filament current from drifting, I want to create two standalone programs that I can run in parallel, so that the filament current can be regulated continuously and so that data can be acquired on demand. I've attached two programs which I've made to do this.
    Each of the attached programs does its job very well. The problem I have arises when I try to run them both simultaneously. The error I get is Error -50103, which tells me the specified resource (my board, if I understand this correctly) is reserved.
    I tried to be a little more explicit in my task creation and I also tried defining global virtual channels in MAX to no avail.
    Any help would be greatly appreciated.
    Regards,
    Ali
    Solved!
    Go to Solution.
    Attachments:
    Standalone DAQ.vi ‏40 KB
    Standalone PID Feedback.vi ‏51 KB

    Ali H. wrote:
    Brian,
    Having all my reads in one task and all my writes in another makes sense, especially after I learned that the board has only one A/D converter.
    What I'm struggling with now is how to restructure my set up. Is there a way to share tasks between VIs and keep the VIs distinct like I want so that I can run them individually or together as I need? Or will that requirement force me to incorporate the VIs I posted as subVIs of another VI which passes the same read and write tasks to both subVIs? (If this is unclear, see attached png; the case structures are so I can choose which subVIs run and the while loop is there so I can turn them on and off).
    Thanks.
    Yes,  By adding in a Special type of Action Engine I've dubbed a "Resource Module" as a hardware access layer for yor task.  Since the Module is not re-enterant any vi can call the Resource Module without fear of causing DAQmx errors but, the second caller will wait for the first call to finish.   Here is an example notice that it keeps the resorurce discriptor (in this case a DAQmx Digital Out Task) on a Shift register to avoid the need for the caller to know what is going on with the resource (saves wires too).
    Jeff
    Attachments:
    Attenuator.vi ‏30 KB

Maybe you are looking for

  • Photoshop CS4 quits unexpectedly

    Hi, Please this issue is really freezing out our daily activities. I have a Mac in my office which has got a configuration as below, We are using PS CS4  on it since 2009 until couple of days back when it first popped up with an error report saying P

  • Derived table

    Plz re-Play   @ functions,@ prompts @ awareness are using in Derived table

  • PRI monitoring problem with SNMP

    Hello I'm having some problems with PRI monitoring. I'm using cpmDS1ActiveDS0 MIB on a 3800 VoIP gateway with 4 PRI (2x2) (IOS 12.4(4)T1) 1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0 - I can see PRI 0/0/0 total number of calls 1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.1

  • Every single time I move to another page, I get a pop-up. Yes, I have clicked on Tools and set browser to block ALL pop-ups. But Mozilla seems to be ingnoring.

    Suddenly, a month or so ago, every single time I open a new page, Mozilla opens a pop-up window. Yes, I have clicked on Tools, etc and set my settings to block ALL pop-ups. Yet, Mozilla has decided to circumvent this setting. If this situation is not

  • QBE report to update form link

    Running portal30 from 9iAS media on Solaris. Been searching topics for an answer before posting... I'm building an app that uses a QBE form to display the contents of a table through a view with UPDATE link enabled. When the user clicks the UPDATE li