Class DriverManager

Hi, I am creating a blackberry application that access a database of Plesk. I can't use the DriverManager class in BlackBerry Eclipse. Can someone tell me the alternatives? Thank you

You can use stubs (since 4.3) or ksoap2 to access a Web service on the BB. Use the search, there are a lot of topics about this.

Tags: BlackBerry Developers

Similar Questions

  • Need to call the PL/SQL Package in the group dynamics of approval class that implements IDynamicApprovalGroup

    Hi all

    This is regarding the approval of invoice AP I need in my project where the user selects the users/people approval when creating the invoice based on logic. There may be any number of users who could be part of the approval group.

    Approval users information is stored in a table with a single Bill.

    When the user initiates invoice approval, approval of the Bill should go to all the people/users selected in the invoice.

    I created the dynamic of approval group which is the result of a java class. This java class implements IDynamicApprovalGroup. (what is the oracle Developer Guide).

    I called PL/SQL to java class package to get all the details of users of custom for the current invoice table.

    I used the DriverManager.getConnection method by hard coding (JDBC URL, Username, Pwd) connection details that works perfectly fine.

    But I don't want to hard-code the connection details because it will change in bodies SIT/UAT/PROD.

    Please ask you to guide me if there is no solution for the information of connection without hard coding it.

    Following code used to get the connection details

    try {}

    Class.forName ("oracle.jdbc.driver.OracleDriver");

    System.out.println ("= class loaded");

    }

    catch (ClassNotFoundException ex) {}

    System.out.println ("= class loading error");

    ex.printStackTrace ();

    }

    Fitting out = null;

    CallableStatement cstmt = null;

    Try

    {

    connection = DriverManager.getConnection ("jdbc:oracle:thin:@xxhostname:1521/SID", "FUSION", "*");

    Connection = GetConnection ();

    System.out.println ("= connection =" + connection);

    prepare the call

    cstmt = connection.prepareCall ("{call XX_AP_INV_DYN_APPROVAL_PKG. {GET_GROUP_PARTICIPANTS (?,?)} ») ;

    cstmt.setString (1, '12345');   ID on invoice

    Exit of the register

    cstmt.registerOutParameter (2, java.sql.Types.VARCHAR);

    Call the stored procedure

    cstmt. Execute();

    System.out.println ("= procedure being executed");

    approvalGroupMembers = cstmt.getString (2).split("#");

    System.out.println ("= output:" + cstmt.getString (2));

    }

    catch (Exception ex) {}

    ex.printStackTrace ();

    }

    Finally

    {

    Try

    {

    If (cstmt! = null)

    close the callable statement

    {

    cstmt. Close();

    cstmt = null;

    }

    System.out.println ("= stmt closed");

    }

    catch (SQLException ex)

    {

    System.out.println ("= stmt close err");

    ex.printStackTrace ();

    }

    Try

    {

    If (connection! = null)

    close the connection

    {

    Connection.Close;

    connection = null;

    }

    System.out.println ("= closed conn");

    }

    catch (SQLException ex)

    {

    System.out.println ("= Close conn err");

    ex.printStackTrace ();

    }

    }

    Thank you

    Dipak.

    HI Dembélé - you should be able to call the provider database from the java class. Documentation is here. However, you need to specify the name of the data provider that is the same in all environments. Do you know what it is? If it's not I'll take a look and get back to you.

    __

    Peter Maurer

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • Java class to connect to Oracle Database Express Edition11g and URL

    Can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?

    I'm just starting to learn Java and with it, learn how to use the Oracle Database Express Edition11g and with it the Oracle SQL Developer...

    At this point, I have the Express Edition is installed and the SQL Developer installed and were able to establish a connection and to run a query and get a result.

    I use Eclipse for JAVA.  I have a work of class that performs a query on a database/table in MySQL.

    So now I'm eager to make the same use as the database Oracle Database Express Edition11g engine.

    And this means that two different versions of JAVA that I need to get the right to be able to do.

    The first is the value of the url variable.

    I now like

    String url = "jdbc:oracle:thin:@localhost";

    then

    Class.forName ("oracle.jdbc.OracleDriver");

    and then

    Connection connection = DriverManager.getConnection (url);

    The thing I'm puzzled on is in the URL where I 'localhost' was supposed to be the term generic and not so much as the text, you should use.

    I see in Web sites like 3 connection to Oracle Database XE

    and decrease example 3-2 by specifying the URL of database using the XE Client Setup

    There I see

    JDBC:driver_type: [username/password] @[//]host_name[: port] [XE]]

    And just what is and what is not is explained here.  So what I ended up with was

    String url = "jdbc:oracle:thin:@localhost";

    So if it was just a text to rest for a name I wonder just such a value or name might really where.

    I noticed that view that an app called "Oracle JDeveloper" has been used to create the values.   I don't have such a thing, or at least I don't think I do.

    Do I need?

    I have Oracle SQL DEVELOPER, where I used the following to connect to the database of the XE.

    My choice for Oracle's SQL Developer Help

    Name of connection: Connection1

    User name: Rod

    Password: myOracle11

    Host name: localhost

    Port: 1521, which is the default value

    SID: xe

    Above so I have to host name set to localhost

    Can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?

    1. I do nothing

    2. While wouldn't you say it

    3. no results from the earlier assignment.

    I asked "'can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?" "

    I showed the choice that I used in SQL Developer to connect to the schema.  And I was wondering, now that I had done this case those are the values that I could use in the Java class that I wrote.  The web site in the first post of this thread showed connection but he was using JDeveloper and SQL Developer.

    So I was wondering if the connection that I made using SQL Developer would do the same trick, and if I could use the values I did there.

    I'm happy to announce that YES, The values used to connect using SQL Developer work exactly like JDeveloper.

    So, given that in SQL Developer for Hostname I chose the value "localhost" "Rod" Username and password "myOracle11".

    I did the following JAVA CLASS that worked:

    package VC_2_9;

    Java for COBOL - copyright 1999 Doke & Hardgrave programmer

    import java.sql. *;

    public class DataBaseDemoOracle

    {

    Public Shared Sub main (string args [])

    {

    String CUST_LAST_NAME;

    / * String url = "jdbc:mysql://localhost/visualcafe";                     */

    String url = "JDBC: thin: @localhost';"

    / * String sqlQuery = "SELECT Name, SSNo, address, telephone OF THE customer;    */

    String sqlQuery = "SELECT CUST_LAST_NAME FROM DEMO_CUSTOMERS";

    //                                               |||||||||||||||

    Try

    {

    Class.forName ("oracle.jdbc.OracleDriver");

    Connection connection = DriverManager.getConnection (url, "Rod","myOracle11" ");

    Statement statement = aConnection.createStatement ();

    ResultSet rs = aStatement.executeQuery (sqlQuery);

    Boolean more = rs.next ();

    (more)

    {

    CUST_LAST_NAME = rs.getString (1);

    /* */

    System.out.println ("name:" + CUST_LAST_NAME);

    more = rs.next ();

    }

    RS. Close();

    aStatement.close ();

    aConnection.close ();

    }

    catch (ClassNotFoundException e)

    {System.out.println ("Exception caught" + e) ;}}

    catch (SQLException e)

    {If (e! = null)}

    {System.out.println ("SQLException taking" + e);}

    e = e.getNextException ();

    } / / end of while loop

    } / / end of capture

    } / / main end

    } / / end DataBaseDemoOracle.java

  • Error loading of Java classes in oracle

    Dear Experts,

    Here is my example Java class

    create or replace type varchar3_table in the table to the varchar2 (4000);

    /

    create or replace and compile the java source named MyBasicArrayList1 as

    package com.demo.testcode;

    import java.util.ArrayList;

    import java.util.List;

    import java.sql. *;

    Oracle.sql import. *;

    public class MyBasicArrayList1 {}

    public static ARRAY getlistA3() throws SQLException {}

    Connection Conn = DriverManager.getConnection("jdbc:default:connection:");

    ArrayList < String > ls = new ArrayList < String > ();

    PreparedStatement pstmt =

    conn.prepareStatement ("" select * from EMP "");

    Table array = conn.createArrayOf ("VARCHAR", ls.toArray ());

    pstmt.setArray (table 1);

    ResultSet rs = pstmt.executeQuery ();

    {while (RS. Next())}

    ls. Add (RS. GetString ("Ename"));

    ls. Add(""+RS.) GetInt ("empno"));

    }

    ArrayDescriptor dsc = ArrayDescriptor.createDescriptor ("VARCHAR3_TABLE", conn);

    return new ARRAY (dsc, conn, ls.toArray ());

    }

    }

    Select * from user_errors where type = 'JAVA SOURCE.

    No error

    Select object_name, status from user_objects where type_objet = 'JAVA SOURCE';

    VALID MYBASICARRAYLIST1



    Function


    create or replace function get_list1 returns VARCHAR3_TABLE as

    NAME of THE JAVA LANGUAGE 'com.demo.testcode.MyBasicArrayList1.getlistA3 () return oracle.sql.ARRAY;

    /

    Select * from table (get_list_1);

    Select double get_list1;

    ORA-29532: Java call terminated by eception Java exception: java.sql.SQLException: function not supported

    29532 00000 - "Java call terminated by eception Java exception: %s."

    * Cause: A mistake or a Java exception has been reported and could not be

    solved by Java code.

    * Action: Modify Java code, if this behavior is not expected.

    Please help solve this error

    Hello

    Why you have not checked the example related by John Stegeman in your previous post java class load returns array in plsql.

    Here's the test I did:

    create or replace type varchar3_table as table of varchar2 (4000);
    
    create or replace and compile  java source named mybasicarraylist1
      as
    package com.demo.testcode;
    
    import java.util.ArrayList;
    import java.sql.*;
    import static java.sql.Types.ARRAY;
    import oracle.sql.*;
    import oracle.jdbc.*;
    
    public class MyBasicArrayList1 {
    
        public static java.sql.Array getlistA3() throws SQLException {
    
            Connection conn = DriverManager.getConnection("jdbc:default:connection:");
            ArrayList ls = new ArrayList();
            PreparedStatement pstmt = conn.prepareStatement("select * from EMP");
            oracle.jdbc.OracleConnection oraConn = (oracle.jdbc.OracleConnection) conn;
    
            ResultSet rs = pstmt.executeQuery();
    
            while (rs.next()) {
                ls.add(rs.getString("ENAME"));
                ls.add("" + rs.getInt("EMPNO"));
            }
    
            java.sql.Array array = oraConn.createARRAY("VARCHAR3_TABLE", ls.toArray());
    
            conn.close();
            return array;
        }
    }
    /
    
    create or replace function get_list1 return varchar3_table as
    language java name 'com.demo.testcode.MyBasicArrayList1.getlistA3() return java.sql.Array';
    /
    
    select *
      from table(get_list1);
    
    COLUMN_VALUE
    --------------------------------------------------------------------------------
    SMITH
    7369
    ALLEN
    7499
    ...
    7902
    MILLER
    7934                                                                           
    
    28 rows selected.
    

    Kind regards.

    Alberto

  • Error on Java class calling in the Oracle database

    I have a java class indicated below:

    /*

    * To change this license header, choose license headers in the project properties.

    * To change this template file, choose Tools | Templates

    * and open the template in the editor.

    */

    package oracletree1;

    import java.sql.Connection;

    to import java.sql.DriverManager;

    import java.sql.ResultSet;

    import java.sql.SQLException;

    import java.sql.Statement;

    /**

    *

    * @author oracle

    */

    public class TREEUPDATER {}

    int levels;

    int NodeId;

    int ParentId;

    String FatherID;

    int ChildBed_new;

    int ChildBes_new;

    int ChildMande_new;

    int ChildBed_old;

    int ChildBes_old;

    int ChildMande_old;

    int ParentBed;

    int ParentBes;

    int ParentMande;

    Script string;

    String ValueState;

    String TreeState;

    Public TREEUPDATER() throws SQLException {}

    }

    public void update (levels int, int NodeIds, int childBed_old, int childBes_old, int childMande_old) throws SQLException {}

    This. ChildBed_old = childBed_old;

    This. ChildBes_old = childBes_old;

    This. ChildMande_old = childMande_old;

    This. Levels = levels;

    This. NodeId = NodeIds;

    String [] array;

    try {}

    Class.forName ("oracle.jdbc.driver.OracleDriver");

    } catch (ClassNotFoundException e) {}

    System.out.println ("where is your Oracle JDBC Driver?');

    return;

    }

    System.out.println ("Oracle JDBC Driver registered!");

    Fitting out = null;

    try {}

    connection = DriverManager.getConnection)

    "jdbc:oracle:thin:@192.168.1.12:1521:orcl", "tree1"

    'oracle');

    } catch (SQLException e) {}

    System.out.println ("connection failed! Check the console output");

    return;

    }

    If (connection! = null) {}

    Statement stmt = connection.createStatement ();

    Instruction stmt2 = connection.createStatement ();

    stmt.executeUpdate ("insert into test.java_test (id) values (21)" ");

    ResultSet rs = stmt.executeQuery ("SELECT * from value" + "where nodeid =" + NodeId);

    ResultSet rs2 = stmt.executeQuery ("select * from tree where id =" + NodeId);

    While (RS. Next {}

    This. FatherID = rs2.getNString("FatherID");

    This. ChildBed_new = rs2.getInt ("bed");

    This. ChildBes_new = rs2.getInt ("bes");

    This. ChildMande_new = rs2.getInt ("control");

    table = new String [100000];

    Table = FatherID.split ("_");

    for (int i = 0; i < array.length; i ++) {}

    ResultSet rs3 = stmt2.executeQuery ("SELECT * from tree" + "where id =" + array [i]);

    This. ParentId = rs3.getInt ("id");

    This. ParentBed = rs3.getInt ("bed");

    This. ParentBes = rs3.getInt ("bes");

    This. ParentMande = rs3.getInt ("control");

    connection.setAutoCommit (false);

    ParentBed = ChildBed_new - ChildBed_old;

    ParentBes = ChildBes_new - ChildBes_old;

    This. TreeState = rs2.getNString ("state");

    If (TreeState.equalsIgnoreCase ("BED")) {}

    This. ParentMande = ParentBed - ParentBes;

    } else {}

    This. ParentMande = ParentBes - ParentBed;

    }

    This. Script = ("update the bed = bed set value +" + ParentBed + "and bes = bes +" + ParentBes + "and control = control +"+ ParentMande ")

    + ' where id = "+ ParentId);»

    stmt2. ExecuteUpdate ("" + Script);

    }

    }

    }

    }

    }

    I have a main class, which show below:

    /*

    * To change this license header, choose license headers in the project properties.

    * To change this template file, choose Tools | Templates

    * and open the template in the editor.

    */

    package oracletree1;

    import java.sql.SQLException;

    /**

    *

    * @author oracle

    */

    public class OracleTree1 {}

    /**

    @param args command-line arguments

    */

    Public Shared Sub main (String [] args) throws SQLException {}

    TODO logical application of the code here

    TREEUPDATER t = new TREEUPDATER();

    }

    }

    I was responsible for these classes in oracle database 11 g 2 and I want to use a trigger to execute the updating() method. If I created a procedure like this:

    CREATE OR REPLACE PROCEDURE REPORT4

    (

    LEVELS IN NUMBERS

    NODEID NUMBER

    CHILDBED_OLD NUMBER

    CHILDBES_OLD NUMBER

    CHILDMANDE_OLD NUMBER

    ) AS

    Name of the java LANGUAGE "TREEUPDATER.updating (1,2,3,4,5);

    But when I want to compile and run this procedure, I get this error:

    Error: PL/SQL: analysis of completed Compilation unit

    Error (9,16): PLS-00311: the declaration of 'TREEUPDATER.updating' (1,2,3,4,5) is incomplete or incorrect

    Can any one solve this?

    Thank you

    The correct syntax for PORCEDURE4 is:

    No it's not. I already gave the correct syntax, which apparently ignored you.

    I don't know how can pass these parameters to this method.

    My question is clear?

    It is clear that you are interested in reading the documentation. All the answers are there.

    You're mixing two things:

    (1) creating the procedure (once), and I already told you how to do it

    (2) the procedure call

    For 1)-do you only once :

    CREATE OR REPLACE PROCEDURE REPORT4)

    LEVELS IN NUMBERS

    NODEID NUMBER

    CHILDBED_OLD NUMBER

    CHILDBES_OLD NUMBER

    CHILDMANDE_OLD NUMBER

    )

    AS

    JAVA LANGUAGE

    NAME of ' oracletree1. TREEUPDATER.updating (int, int, int, int, int)';

    For 2)-procedure call:

    ...

    BEGIN

    ... of the code

    -you call proc with your real settings:

    procedure4 (v_levels, v_nodeid, v_childbed_old, v_childbes_old, v_childmande_old);

    ... rest of your code

    END;

    Pay attention to remarks from other institutions.

  • Error Trying to use java.lang.Class.forName ("oracle.jdbc.OracleDriver") ';

    I use SDDM 4.0.1.836.  I get the error message "wrapped java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver (Query Test n ° 3).

    importPackage(java.sql);
    java.lang.Class.forName ("oracle.jdbc.OracleDriver");
    conn = java.sql.DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:DESN", "READONLY_USER", "READONLY");
    stmt = conn.createStatement();
    rset = stmt.executeQuery("SELECT * FROM DUAL");
    rset.close();
    stmt.close();
    conn.close();
    
    

    There is an archived topic,unable to connect to oracle (not found driver) transformation script , but this issue has not been resolved.

    It seems that the thread has been forgotten.

    You need to add following the datanodeler64.conf and/or datamodeler.conf

    AddJavaLibFile... /... /JDBC/lib/ojdbc6.jar

    Philippe

  • Cannot run a class

    have downloaded the sqljdbc4.jar to the MS site and has placed my directory. Here, I also have my java file as shown below.

    I exported the variable CLASSPATH export CLASSPATH =. : / usr/java/lib

    I have compiled the java file as

    javac - classpath. testmssql < < he created a class file and not errorrs.

    But if I run it now I get error

    bash - $3.2 java testmssql

    Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:200)

    3.2 - bash$ testmssql.java more

    import java.sql. *;

    class testmssql

    {

    Public Shared Sub main (string args []) throws Exception

    {

    Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver");

    Connection con = DriverManager.getConnection ("jdbc:sqlserver://localhost:1433; (databaseName = TPDB","sa","xxxxxxx");

    Statement st = con.createStatement ();

    ResultSet rs = st.executeQuery ("Select count (*) from tsr_account_status"); replace the name of your table

    While (RS. Next())

    {

    String s1 = rs.getString (1);

    String s2 = rs.getString (2);

    System.out.println("userid:"+S1+"password:"+S2);

    }

    con. Close;

    }

    }

    I have tried all means of operation but no luck. :

    as you can see the driver jar file is in the right place.


    as you can see the driver jar file is in the right place.


    as you can see the driver jar file is in the right place.

    (oemdb) / home1/oracle > pwd

    Oracle/home1 /.

    (oemdb) / home1/oracle > ls - ltr *.jar

    -rw - r - r - 1 oracle dba 563117 Aug 19 15:57 sqljdbc.jar

    -rw - r - r - 1 oracle dba 584207 Aug 19 15:57 sqljdbc4.jar

    (oemdb) / home1/oracle > java - classpath/home1/oracle testmssql

    Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:200)

    at java.security.AccessController.doPrivileged (Native Method)

    (oemdb) / home1/oracle > java - classpath /home1/oracle/sqljdbc4.jar testmssql

    Exception in thread "main" java.lang.NoClassDefFoundError: testmssql


    (oemdb) / home1/oracle > java - classpath /home1/oracle/sqljdbc4.jar:. testmssql

    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version in .class file number

    at java.lang.ClassLoader.defineClass1 (Native Method)

    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)














    SamiA. wrote:

    MS site I had supported versions and it is said that JRE 1.5 is supported and iam using 1.5.

    so why iam not use the java version of right?

    Java and JDBC specification support

    Version of the JDBC driver JRE Versions Version of the JDBC API
    4.0 1.5, 1.61 3.0, 4.0
    3.0 1.5, 1.6 3.0, 4.0
    2.0 1.5, 1.6 3.0, 4.

    Well, this is not what says the site I found.

    http://TechNet.Microsoft.com/en-us/library/ms378422.aspx

    sqljdbc4.jar class library requires a Java Runtime Environment (JRE) version 6.0 or 7.0. Using sqljdbc4.jar on JRE 5.0 will throw an exception.

    You must use version 6 or 7.

  • JDBC class not found

    Hi guys,.

    I'm trying to connect to DB with this code with using eclipse but it gives me the msg that I write in the catch statement (unable). But when I try to connect to the same DB with ij tool I could connect and I write sql statements(update_etc).i could not understand what the problem is any idea?

    try { String className = "org.apache.derby.jdbc.EmbeddedDriver";  // path of driver class Class.forName (className);                                  String dbUrl = "jdbc:derby:firstdb"; Connection conn = DriverManager.getConnection(dbUrl); conn.close ( ); } //end try catch(ClassNotFoundException e) { System.out.println ("Unable"); }

    Hey Garibanus,
    qimbal2 is correct in eclipse, you need to add external jar files

    to do this, you can follow these simple steps...

    1 > right click on the java project
    2 > click on the Properties tab
    3 > click the third link on the left side "add external jars".
    4 > then add the derby pilot project...

    Maybe this will help you...

  • Class.forName in jdbc

    Hello

    I know that this has been discussed a few times before but I'm still not clear on this.

    Why do we Class.forName while the implementation of jdbc.

    In which case it is for the class loading, why have we not need for another class. How reactivates JVM knows how to find the class and load it when we pray for the other classes.

    (I understand that calling Class.forName calls the static method in this document, which records the pilot as a driver available in the DriverManager class, but my question is why do we need to load jdbc class and not for others).

    Any response will be a great help.

    -Andy

    TheAvalanche wrote:
    Using Class.forName (or the service-loader) allows the use of drivers that did not exist when the program was written

    If they existed or not, the point key here (and I completely missed during the validation of my answer) is that you can see what driver use prior to execution, which means that your application can be run against DBs from different vendors without any code changes.

  • Error won't let me go to another class (has got me pulling out my hair)

    Good buddies, so basically I have 2 buttons in the mainfraime class. The first button leads to the candidate page and the second page of voters. The first button works and redirects the user to the PasswordDemo page, but to the hell out of me I can't understand why he refuses to acknowledge the 'profile' class as its supposed to go to when the user clicks the second button. He keeps telling me that "the Profile() method is not defined for the Mainframe type. Help, please.

    Class mainframe:
    //The applications first or the main frame
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    
    public class Mainframe extends JFrame {
    
            private JButton myFirstButton;
            private JButton mySecondButton;
            private javax.swing.JButton jButton1;
            private javax.swing.JButton jButton2;
            private javax.swing.JLabel jLabel1;
            private javax.swing.JLabel jLabel2;
            private javax.swing.JLabel jLabel3;
    
            // Constructor for a new frame
    
            public Mainframe() {
    
                    super("Welcome Page");
                    
                    
    
                    myFirstButton = new JButton("Contestant");
                    myFirstButton.setFont(new Font( "Arial", Font.BOLD, 18));
                    myFirstButton.setBackground(Color.red);
    
                    mySecondButton = new JButton("Voter");
                    mySecondButton.setFont(new Font( "Arial", Font.BOLD, 18));
                    mySecondButton.setBackground(Color.ORANGE);
    
                    Container c = getContentPane();
                    FlowLayout fl = new FlowLayout(FlowLayout.LEFT);
                    c.setLayout(fl);
    
                    c.add (myFirstButton);
                    c.add (mySecondButton);
    
                    ButtonHandler handler = new ButtonHandler();    //creation of a new Object
                    myFirstButton.addActionListener(handler);          // Attach/register handler to myFirstButton
                    mySecondButton.addActionListener(handler);        //Attach/register handler to mySecondButton
    
                    setSize(400, 300);
                    show();
                    
           
            
            }
    
    
            public static void main(String [] args) {
    
                    // Make frame
                    Mainframe f = new Mainframe();
    
                    f.addWindowListener(
                            new WindowAdapter() {
                                    public void windowClosing(WindowEvent e) {
    
                                            // This closes the window and terminates the
                                            // Java Virtual Machine in the event that the
                                            // Frame is closed by clicking on X.
                                            System.out.println("Exit via windowClosing.");
                                            System.exit(0);
                                    }
                            }
                    );
            } // end of main
    
            // inner class for button event handling
            private class ButtonHandler implements ActionListener {
                    public void actionPerformed(ActionEvent e) {
                            if (e.getSource() == myFirstButton) {
                            
                                 PasswordDemo inputForm = new PasswordDemo();
                                    //inputForm.setVisible(true);
                                    
                                    try
                                    {
                                    PasswordDemo.createAndShowGUI();
                                    inputForm.setVisible(false);
                                    }
                                    
                                    catch(Exception d)
                                    {
                                         
                                    }
                                   // new PasswordDemo();
                            }
                            if (e.getSource() == mySecondButton) {
                                 
                           //     Profile p = Profile();
                                
                           //     p.setVisible(true);
                                  
                           }
                    }       
            }
            
            public void actionPerformed (ActionEvent e)
            {
                String cmd = e.getActionCommand();
    
                if (mySecondButton.equals(cmd)) {
                     boolean success=true; 
                     if(success)
                     {
                     Profile p = Profile();
                    
                       p.setVisible(true);
                
                     }
                     
                }
    
            
          //  private void mySecondButtonActionPerformed(java.awt.event.ActionEvent evt)
        //    {
         //        Profile p = Profile();
                
         //       p.setVisible(true);
         //   }
    
            
    } // end of outer class
    }
    Profile class:
    import java.awt.event.ActionListener;
    import java.sql.*;
    
    public class Profile extends javax.swing.JFrame {
    
        public Profile() {
            initComponents();
        }
    
        @SuppressWarnings("unchecked")
    
        private void initComponents() {
    
            titleLabel = new javax.swing.JLabel();
            nameAccess = new javax.swing.JLabel();
            ageAccess = new javax.swing.JLabel();
            heightAccess = new javax.swing.JLabel();
            weightAccess = new javax.swing.JLabel();
            lastNameAccess = new javax.swing.JLabel();
            descriptionAccess = new javax.swing.JLabel();
            nameLabel = new javax.swing.JLabel();
            lastNameLabel = new javax.swing.JLabel();
            ageLabel = new javax.swing.JLabel();
            heightLabel = new javax.swing.JLabel();
            weightLabel = new javax.swing.JLabel();
            descriptionLabel = new javax.swing.JLabel();
    
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    
            titleLabel.setFont(new java.awt.Font("Gungsuh", 1, 18)); // NOI18N
            titleLabel.setText("\"User\"'s Profile");
    
            nameAccess.setText("Name: ");
            nameLabel.setText("");
            
            lastNameAccess.setText("Last Name: ");
            lastNameLabel.setText("");
    
            ageAccess.setText("Age: ");
            ageLabel.setText("");
    
            heightAccess.setText("Height: ");
            heightLabel.setText("");
            
            weightAccess.setText("Weight: ");
            weightLabel.setText("");
            
            descriptionAccess.setText("Description: ");
            descriptionLabel.setText("");
            
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(nameAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(nameLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(lastNameAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lastNameLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(ageAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(ageLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(heightAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(heightLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(weightAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(weightLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(descriptionAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(descriptionLabel)))
                    .addContainerGap(151, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(titleLabel)
                    .addGap(13, 13, 13)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(nameAccess)
                        .addComponent(nameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lastNameAccess)
                        .addComponent(lastNameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(ageAccess)
                        .addComponent(ageLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(heightAccess)
                        .addComponent(heightLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(weightAccess)
                        .addComponent(weightLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(descriptionAccess)
                        .addComponent(descriptionLabel))
                    .addContainerGap(139, Short.MAX_VALUE))
            );
    
            pack();
        }// </editor-fold>
    
        /**
         * @param args the command line arguments
         */
        
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
    
                public void run() {
                    new Profile().setVisible(true);
                }
            });
        }
        // Variables declaration - do not modify
        private javax.swing.JLabel ageAccess;
        private javax.swing.JLabel ageLabel;
        private javax.swing.JLabel descriptionAccess;
        private javax.swing.JLabel descriptionLabel;
        private javax.swing.JLabel heightAccess;
        private javax.swing.JLabel heightLabel;
        private javax.swing.JLabel lastNameAccess;
        private javax.swing.JLabel lastNameLabel;
        private javax.swing.JLabel nameAccess;
        private javax.swing.JLabel nameLabel;
        private javax.swing.JLabel titleLabel;
        private javax.swing.JLabel weightAccess;
        private javax.swing.JLabel weightLabel;
        // End of variables declaration
    }
    Class PasswordDemo:
    import javax.swing.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Arrays;
    import java.net.*;
    import java.io.*;
    import java.util.Scanner;
    
    public class PasswordDemo extends JPanel
                              implements ActionListener  {
        private static String OK = "ok";
        private static String HELP = "help";
        private static String Register = "Register";
    
        private JFrame controllingFrame; //needed for dialogs
        private JTextField username;
        private JPasswordField passreg;
        private JTextField usernamefield;
        private JPasswordField passwordField;
    
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
    
        private JTextField name;
        private JTextField age;
        private JTextField height;
        private JTextField weight;
    
     private javax.swing.JPanel jPanel1;
    
        private void gothere() {
    
                      JFrame f = new JFrame("This is a test");
                      f.setSize(400, 300);
                      Container content = f.getContentPane();
                      content.setBackground(Color.white);
                      content.setLayout(new FlowLayout());
                     // content.add(new JButton("Button 1"));
                      //content.add(new JButton("Button 2"));
                      //
    
    
    
             name = new JTextField("Please put your name here", 20);
              name.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(name);
    
              age = new JTextField("Please put your age here", 20);
              age.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(age);
    
              height = new JTextField("Please indicate your height here", 20);
              height.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(height);
    
              weight = new JTextField("Please indicate your weight here", 20);
              weight.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(weight);
    
              content.add(new JButton("Submit"));
    
    
               f.setVisible(true);
        }
    
    
         public PasswordDemo(JFrame f) throws Exception {
            //Use the default FlowLayout.
            controllingFrame = f;
    
            //Create everything.
            usernamefield = new JTextField(10);
            usernamefield.setActionCommand(OK);
            usernamefield.addActionListener(this);
    
            passwordField = new JPasswordField(10);
            passwordField.setActionCommand(OK);
            passwordField.addActionListener(this);
    
            passreg = new JPasswordField(10);
            passreg.setActionCommand(Register);
            passreg.addActionListener(this);
    
            username = new JTextField("This is a sentence", 20);
            username.setActionCommand(Register);
            username.addActionListener(this);
    
            JLabel reg = new JLabel("If you are a new contestant please register: \n");
            JLabel user = new JLabel("Username: \n");
            user.setLabelFor(username);
            JLabel pass = new JLabel("Password: \n");
            user.setLabelFor(passreg);
    
    
            JLabel label = new JLabel("Enter your username and password to log in: ");
            label.setLabelFor(usernamefield);
            label.setLabelFor(passwordField);
    
            JComponent buttonPane = createButtonPanel();
    
            //Lay out everything.
            JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
            textPane.add(reg);
            textPane.add(user);
            textPane.add(pass);
            textPane.add(username);
            textPane.add(passreg);
    
            textPane.add(label);
            textPane.add(usernamefield);
            textPane.add(passwordField);
    
    
    
            add(textPane);
            add(buttonPane);
        }
    
        public PasswordDemo() {
              // TODO Auto-generated constructor stub
         }
    
    
         protected JComponent createButtonPanel() {
            JPanel p = new JPanel(new GridLayout(0,1));
            JButton okButton = new JButton("OK");
            JButton helpButton = new JButton("Help");
    
            JButton regButton = new JButton("Register");
    
            okButton.setActionCommand(OK);
            helpButton.setActionCommand(HELP);
            regButton.setActionCommand(Register);
            okButton.addActionListener(this);
            helpButton.addActionListener(this);
            regButton.addActionListener(this);
    
            p.add(okButton);
            p.add(helpButton);
            p.add(regButton);
    
            return p;
        }
    
        public void actionPerformed (ActionEvent e)
        {
            String cmd = e.getActionCommand();
    
            if (OK.equals(cmd)) { //Process the password.   
    
                boolean success=true;                        //Sign In
    
                 String Username="";
                 String Password="";
                 
                 Username = this.usernamefield.getText();
                 Password = this.passwordField.getText();
    
                 try
                 {
                     success=check2(Username,Password);
                }
    
                 catch(Exception d)
                 {
                      System.out.println("Got out");
    
                 }     
    
    
                 if(success)
                 {
                 JOptionPane.showMessageDialog(controllingFrame, "Sign in Successful");
                 
                 
                 Form F = new Form(Username);
                 
                 F.setVisible(true);
                 
                 
                 }
                 else
                 JOptionPane.showMessageDialog(controllingFrame, "Sign in was unsuccessful");     
    
            }
    
            else if(HELP.equals(cmd)) { //The user has asked for help.
                JOptionPane.showMessageDialog(controllingFrame,
                    "You can get the password by searching this example's\n"
                  + "source code for the string \"correctPassword\".\n"
                  + "Or look at the section How to Use Password Fields in\n"
                  + "the components section of The Java Tutorial.");
            }
    
            else if(Register.equals(cmd)) {  //*****************************************************
                 boolean success=true;
    
                 String Username="";
                 String Password="";
    
    
    
                 Username = this.username.getText();
                 Password = this.passreg.getText();
    
    
    
                 try
                 {
                      success=check(Username,Password);
                 }
    
                 catch(Exception d)
                 {
                      System.out.println("Something bad happened");
    
                 }
    
    
                 if(success)
                 JOptionPane.showMessageDialog(controllingFrame, "Registration successful");
    
                 else
                 JOptionPane.showMessageDialog(controllingFrame, "Registration was unsuccessful");
    
    
            }
        }
    
        //Must be called from the event dispatch thread.
        protected void resetFocus() {
            passwordField.requestFocusInWindow();
        }
    
        static void createAndShowGUI() throws Exception {
            //Create and set up the window.
            JFrame frame = new JFrame("Registration Page");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    
            //Create and set up the content pane.
            final PasswordDemo newContentPane = new PasswordDemo(frame);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
    
            //Make sure the focus goes to the right component
            //whenever the frame is initially given the focus.
            frame.addWindowListener(new WindowAdapter() {
                public void windowActivated(WindowEvent e) {
                    newContentPane.resetFocus();
                }
            });
    
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        }
        public static void main(String args[]) {
            //Schedule a job for the event dispatch thread:
            //creating and showing this application's GUI.
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    //Turn off metal's use of bold fonts
              UIManager.put("swing.boldMetal", Boolean.FALSE);
              try{
              createAndShowGUI();
              }
    
                catch(Exception e)
                {
    
                }
                }
                     });
                 }
    
        public void sendUserPass(String user,String pass)throws Exception
        {
    
             //Send request
    
    
             Class.forName("com.mysql.jdbc.Driver");
    
              Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
    
              System.out.println("connected :D:D:D:D");
    
              PreparedStatement state = con.prepareStatement("Insert Into Contestant (USERNAME,PASSWORD) values ('"+user+"','"+pass+"')");
    
              state.executeUpdate();
    
              /*while(Result.next())
              {
                   System.out.println(Result.getString(1)+"\t"+Result.getString(2));
    
              }*/
    
              //server should reply by updating database
        }
    
    
        public boolean check(String user,String pass)throws Exception
        {
    
             //Send request
             Socket Sock = new Socket ("LocalHost",5000);
             
             DataOutputStream toServer = new DataOutputStream(Sock.getOutputStream());
             BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
             
             String sentence="";
             
             toServer.writeBytes("1\n");
             
             sentence=buff.readLine();
             
             System.out.println(sentence+"\n");
             
             toServer.writeBytes(user+" "+pass+"\n");
             
             String answer="";
             
             answer = buff.readLine();
             
             if(answer.equals("No"))
                  return false;
             
             return true;
      
             /*Class.forName("com.mysql.jdbc.Driver");
    
              Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
    
              System.out.println("connected :D:D:D:D");
    
              PreparedStatement state = con.prepareStatement("Select Username From Contestant where '"+user+"'= username");
    
              ResultSet Result = state.executeQuery();
    
              if(!Result.next())
              return true;*/
    
              
    
              //server should reply by updating database
        }
        
        
        public boolean check2(String user,String pass)throws Exception
        {
             Socket Sock = new Socket("localhost",5000);
             
             DataOutputStream toServer = new DataOutputStream (Sock.getOutputStream());
             BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
             
             toServer.writeBytes("2\n");
             
             System.out.println("Well I sent the message");
             
             String sentence = buff.readLine();
             
             toServer.writeBytes(user+" "+pass+"\n");
             
             System.out.println(sentence);
             
             sentence=buff.readLine();
             
             System.out.println(sentence+"\n");
             
             
             if(sentence.equals("No"))
                  return false;
             
             return true;
        }
    
    
    }
    Profile p = Profile();
    

    Who says "call a 'Profile' method name that is defined in the current class"

    Maybe what you mean is:

    Profile p = new Profile();
    

    who says "create a new instance of the profile class and invoke its no. - arg constructor."

  • Java connect to lite (Resource Manager) and db (drivermanager)

    Hello, I have a rather strange problem that I would like to ask for your help.
    12:21

    I want to create a simple java application that connects to oracle db 11g to perform sql queries
    and also in oracle 10 lite. my code is as follows:

    ResourceManager rm = null;
    String url=username+"/"+password+"@jdbc:oracle:thin:@//"+serverhost+":"+serverport+"/" + serverservice;
    Try
    {
    Initialize Resource Manager
    ResourceManager.initialize (url);

    Retrieve an instance of ResourceManager
    RM = ResourceManager.getInstance ();



    with 11g I try to connect using:
    (if I managed to connect I want to perform queries in the mobileadmin schema (oracle repository of lite))


    String url="jdbc:oracle:thin:@//"+server+":"+port+"/" + service;
    DriverManager.registerDriver ((Driver) Class.forName ("oracle.jdbc.OracleDriver") .newInstance ());

    / * //ive tried it too
    String url = "JDBC: thin: @(DESCRIPTION =" +) "
    "(ADDRESS_LIST =" +) "
    "(ADDRESS = (PROTOCOL = TCP)"+) "
    "(HOST = \"servername")" +
    "(PORT=1521)" + "
    ")" +
    ")" +
    "(CONNECT_DATA =" +) "
    "(Service_name=service)" + "
    "(SERVER=DEDICATED)" + "
    ")" +
    ")";

    */


    c = DriverManager.GetConnection (url, username, password);


    both of them make my program freeze for 3-4 minutes and then I get a:
    java.sql.SQLException: IO exception: the network adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
    to oracle.jdbc.driver.OracleConnection. < init > (OracleConnection.java:428)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    to servermanager. ServerManagerView.ConnectToServer_and_ViewUsers_and_Disconnect (ServerManagerView.java:658)
    to servermanager. ServerManagerView.jButton1MouseClicked (ServerManagerView.java:625)
    to servermanager. ServerManagerView.access$ 400 (ServerManagerView.java:43)
    to servermanager. ServerManagerView$ 4.mouseClicked(ServerManagerView.java:245)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
    at java.awt.Component.processMouseEvent(Component.java:6266)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


    It's the same for both. the strange thing is that, if I replace the server host name "localhost" and I run in
    the same machine as the server, it connects and works perfectly without changing anything else at all. My Network (I think is configured correctly, because I can connect
    oracle 11 g and oracle DB lite developer sql, mobile web page manager, Toad, etc.)

    because my server uses dynamic ip I have created also a microsoft loopback adapter as the documentation says:
    http://download.Oracle.com/docs/CD/B28359_01/install.111/b32006/reqs.htm#insertedID6

    But even with or without the loopback adapter, I get the same behavior. does anyone know how can I encounter this problem?

    Thank you for your time

    Published by: user2955130 on October 12, 2009 02:45

    OK, that makes no sense. If you can connect with SQL Developer from a remote machine, I don't see why your code does not work.

    Humor me and run the following code:

    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    
    import java.text.DateFormat;
    
    import java.util.Calendar;
    import java.util.Date;
    
    public class JDBCTest {
    
        private static Connection con = null;
    
        public static void main(String[] args) {
    
            String MOBILE_SCHEMA   = "mobileadmin";
            String MOBILE_PASSWORD = "yourpassword";
            String JDBC_URL        = "jdbc:oracle:thin:@127.0.0.1:1521:XE";
    
            try {
                DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.OracleDriver").newInstance()));
                try {
                    System.out.println(getTime() + "Get JDBC Connection " + JDBC_URL);
                    con = DriverManager.getConnection(JDBC_URL, MOBILE_SCHEMA, MOBILE_PASSWORD);
                    System.out.println(getTime() + "Established Connection");
                    con.close();
                    System.out.println(getTime() + "Connection closed!");
                } catch (SQLException sqle) {
                    sqle.printStackTrace();
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    
        private static String getTime() {
            Calendar c = Calendar.getInstance();
            Date date = c.getTime();
            DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.LONG);
            String format = dateFormat.format(date);
            return format + " | ";
        }
    }
    

    Basically the same thing as you, just remove the resource... Manager but your stack trace does not mention that.

  • Problems with Apple in class

    We have a classroom set of successful however iPads Meraki.  We have imported the information class and the teachers of the school of Apple.  Watching iPads I can see that the profile of education has been eliminated from the MDM, but the teacher still cannot start the App class.  Suggestions for troubleshooting?

    Even if we do not Meraki, (we use OS X Profile Manager), we can get the training profiles to load on our iPad pros.  Loads on everything...

    suggest post you the link for the deployment of mMeraki: https://documentation.meraki.com/SM/Profiles_and_Settings/Configuring_an_Educati on_Payload_for_Apple_Classroom

  • I download Apple Quicktime for use in my class of biology to my PC - not a procuct apple how I can do

    I download Apple Quicktime for use in my class of biology to my PC - not a procuct apple how I can do

    Apple has removed QuickTime for Windows. Why do you need it?

  • disc will not load or not going to classes

    disc will not load or going to class in a mini

    What do you mean by "does not load?

    Y at - it a disc stuck in the player? We must look carefully into the slot.

    What model Mac?

    The optical drive in my 2009 Mini failed about three years ago.

    See also:

    Get help with the SuperDrive slot on your Mac - Apple Support loading

  • Mozilla, your last update does not include the last cert of intermediaries of extended validation from Verisign, Symantec class 3 EV SSL CA - G2, please fix ASAP

    Your last update of firefox, Mozilla does not include the last cert of intermediaries of extended validation from Verisign, Symantec class 3 EV SSL CA - G2, please fix ASAP

    Firefox never includes the intermediate certificates.
    It is the responsibility of a server to include all the intermediate certificate required to make it possible to build a certificate chain that ends with a trusted root certificate embedded.

    Note that Firefox automatically records the intermediate certificates that servers send in certificates for future use Manager (they appear labelled as 'Software security device' in the References tab).
    If a server does not send a complete certificate chain then you get an untrusted error when Firefox has stored missing intermediate certificates to visit a server in the past that a send it, but you get an untrusted error if this intermediate certificate is not yet registered.

Maybe you are looking for

  • Firefox version 28.0 works in Windows 8.1?

    I use Windows XP and I have the latest version of Firefox which is version 28.0. I want to buy a new computer, but I want to be able to use Firefox and all the addons I have. I saw a reference to Firefox 17 working in Windows 8.1 but not version 28.0

  • Pavilion s5360f: s5360f usb 3

    Is it possible to add the usb 3 to this model.  There 1 unused pci-e slot, but it doesn't have a slot open for external ports. I could remove a sound card to free up a slot, but he is not close to the pci-e external location. Is there any pci-e cards

  • why I all of a sudden have a yellow padlock next to facebook and I can't

    original title: yellow lock why I all of a sudden have a yellow padlock next to facebook and I can't

  • help required for the re-installation of windows XP

    I lost my CD to reinstall windows that came with my Dell PC, now I need to format the system, but I can't do without the CD. I tried to use another CD, but it does not take my registered code. Please suggest a solution?

  • DNS Broke - nslookup successful but Ping fails

    Hello I'm working on an old client computer that is running Windows XP SP2. The computer is unable to connect because of a sort of DNS issue, so it appears. See, very strange: C:\Documents and c > nslookup digg.com Server: quarter - pri.sys.gtei .net