No ocijdbc8 Error (RH71,ORA816,JDK1.3)

I meet same ploblem when change any element
for connect remote db:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.l
ibrary.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:209)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at JdbcCheckup.main(JdbcCheckup.java:42)
the program is $ORACLE_HOME/jdbc/demo/samples/oci8/bisic_samplem/JdbcCheckup.java
OS: RH7.1(japanese)
JDK : JDK1.3(JDK1.2.2 dont work on RH71)
ORACLE: oracle EE816 for Linux
(libocijdbc8.so is in the $ORACLE_HOME/lib)
JDBC: classes12.zip for solaris(oracle816)
please help me,thank you.
xu
null

Xu Fang,
OCI8 (JDBC 1.2 'thick' driver) is not supported on Linux (8.1.5,8.1.6 or 8.1.7). You can use the thin driver, but not the OCI8 driver.
Regards,
Josue Amaro
Linux Product Manager
Oracle Corporation
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Xu FANG ([email protected]):
I meet same ploblem when change any element
for connect remote db:<HR></BLOCKQUOTE>
null

Similar Messages

  • Fatal:relocation error: While running JDK1.4 on Sun Sparc Generic_106541-08

    Hi,
    I installed the new jdk1.4 on my Solaris-7 machine. Initially I installed 32-bit jdk1.4 and then installed 64-bit jdk1.4 as indicated on your (sun's) installation page. I used executable binary version of installation for installing the software.
    The installation was successfully completed. But while I run java command then it gave following error
    Error: failed /export/home/j2sdk1.4.0/jre/lib/sparc/client/libjvm.so, because ld.so.1: ./java: fatal: relocation error: file /export/home/j2sdk1.4.0/jre/lib/sparc/client/libjvm.so: symbol __1cG__CrunSregister_exit_code6FpG_v_v_: referenced symbol not found
    Why I am not able to execute any java command with this version? On the same machine I am able to run jdk1.2 and jdk1.3
    Please advise on it. It will be of great help If I get some suggestion.
    Thanks in Advance,
    Ashish

    In particular, patch 106327-14 seems to solve the problem.

  • Error while installing jdk1.5.07 on Windows 2000.(data1.cab file missing or

    I am unable to install jdk1.5.0.07/jdk1.5.0.11and while Copying files this error is generated.
    "Data1.cab file is missing or corrupt.". I have tried to download the same from Sun's download centre as offline installation.
    Please suggest a solution.
    Regards,
    Neha Shrivastava

    I have tried downloading it again and also used the installer which was successfully able to install on Windows XP.
    Also, a few days back I was able to install jdk1.5.0.07 but then my system was attacked by some trojan and I had to format it. Since then I am unable to install it using the same exe.

  • JD3 ocijdbc8 error

    I have downloaded and installed JD3 for evaluation.
    When testing the following simple jdbc test I get the following
    error:
    "F:\orant\ows\4.0\jdk\bin\javaw.exe" -mx50m -
    classpath "E:\jdev\myclasses;E:\jdev\lib\jdev-
    rt.zip;E:\jdev\jdbc\lib\oracle8.1.5
    \classes111.zip;E:\jdev\lib\connectionmanager.zip;F:\orant\ows\4.
    0\jdk\lib\classes.zip" package1.Test
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights
    Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library
    path
    at java.lang.Runtime.loadLibrary(Compiled Code)
    at java.lang.System.loadLibrary(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled
    Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance
    (Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at package1.Test.main(Compiled Code)
    CODE
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    class Test{
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    // Load the Oracle JDBC driver
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You can put a database name after the @ sign in the
    connection URL.
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:oci8:@dev8i", "whs_admin", "whs_admin");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select * from events");
    // Iterate through the result and print the employee names
    while (rset.next ())
    System.out.println (rset.getString ("EVENT_ID"));
    System.out.println (rset.getString ("PARENT_EVENT_ID"));
    I have previously used another IDE (KAWA) and this works fine.
    Thanks
    Mark
    null

    Mark,
    The OCI drivers require some client-side software. The version
    of the OCI client must match the version of the OCI driver you
    are using from JDeveloper rather than the version of the
    database you are connecting to.
    For example, if you are using the 8.1.5 JDBC OCI8 driver to
    connect to an Oracle 8.0.5 database, then you need the OCI 8.1.5
    client running on the same machine as JDeveloper.
    The OCI client software is included in the server distribution
    (if you have the database running locally), or from the Oracle
    Client software distribution.
    If you have either of the above installed locally, then make sure
    that ORACLE_HOME is set to the correct location in your
    registry.
    This is what JDeveloper uses to find the ocijdbc8.dll.
    If you have multiple Oracle Homes, you can explicitly set which
    one to use from JDeveloper by choosing Tools|IDE Options from the
    menu. Click the Environment tab, and choose an Oracle Home from
    the drop-down list.
    The JDBC thin drivers do not require this client-side piece.
    Laura
    Mark (guest) wrote:
    : I have downloaded and installed JD3 for evaluation.
    : When testing the following simple jdbc test I get the following
    : error:
    : "F:\orant\ows\4.0\jdk\bin\javaw.exe" -mx50m -
    : classpath "E:\jdev\myclasses;E:\jdev\lib\jdev-
    : rt.zip;E:\jdev\jdbc\lib\oracle8.1.5
    \classes111.zip;E:\jdev\lib\connectionmanager.zip;F:\orant\ows\4.
    : 0\jdk\lib\classes.zip" package1.Test
    : AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    : Copyright (c) 1997-1998 Borland International. All Rights
    : Reserved.
    : Copyright (c) 1997-1999 Oracle Corporation. All Rights
    Reserved.
    : java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library
    : path
    : at java.lang.Runtime.loadLibrary(Compiled Code)
    : at java.lang.System.loadLibrary(Compiled Code)
    : at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
    : at oracle.jdbc.driver.OracleConnection.<init>(Compiled
    : Code)
    : at oracle.jdbc.driver.OracleDriver.getConnectionInstance
    : (Compiled Code)
    : at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    : at java.sql.DriverManager.getConnection(Compiled Code)
    : at java.sql.DriverManager.getConnection(Compiled Code)
    : at package1.Test.main(Compiled Code)
    : CODE
    : // You need to import the java.sql package to use JDBC
    : import java.sql.*;
    : class Test{
    : public static void main (String args [])
    : throws SQLException, ClassNotFoundException
    : // Load the Oracle JDBC driver
    : Class.forName ("oracle.jdbc.driver.OracleDriver");
    : // Connect to the database
    : // You can put a database name after the @ sign in the
    : connection URL.
    : Connection conn =
    : DriverManager.getConnection
    : ("jdbc:oracle:oci8:@dev8i", "whs_admin", "whs_admin");
    : // Create a Statement
    : Statement stmt = conn.createStatement ();
    : ResultSet rset = stmt.executeQuery ("select * from
    events");
    : // Iterate through the result and print the employee names
    : while (rset.next ())
    : System.out.println (rset.getString ("EVENT_ID"));
    : System.out.println (rset.getString ("PARENT_EVENT_ID"));
    : I have previously used another IDE (KAWA) and this works fine.
    : Thanks
    : Mark
    null

  • ERROR on uninstalling JDK1.4.1_01,HELP

    HELLO��
    Cannot install JDK1.4,catching a message like this,"You already have the Java 2 SDK,SE v1.4.1_01 installed on this machine.would you like to uninstall it?"
    Chosen to uninstall and did no help.
    The os is Win2k,professional,and having uninstalled jdk1.4 through "control board".

    What I want to know is, "how to cleaning uninstall a JDK, excepting by jdk itself? "

  • Stack Overflow Error for JNI program with Jdk1.3

    I wrote a JNI wrapper for a third party sofware (written in C) to use some exported functions provided. My program runs fine when using Sun JDK1.2.2, but I got the following error when using Jdk1.3 to run the program (It's a runtime error, only the version of runtime virtual machine matters.)
    # An EXCEPTION_STACK_OVERFLOW exception has been detected in native code outside
    the VM.
    # Program counter=0x9073337
    A stack overflow was encountered at address 0x09073337.
    I tried IBM jdk 1.2.2, it gave me a similar error complaining about the stack overflow error.
    The vendor of the third party software denies any wrong doing in their code and I don't have their source code. A test client (simulate the Java client) I wrote in C works perfectly fine and as I mentioned earlier the same java progarm runs OK with jdk 1.2.2, without any change to my system stack size. Does any body know what this is about and the solution for this?
    Thanks!
    My email: [email protected]

    I had the same exception occur in my JNI code and I have some advice on things to look for.
    Symptoms: The C++ code runs fine when called in an native executable but when it is wrapped by a JNI call inside a DLL you get the following exception:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_STACK_OVERFLOW occurred at PC=0x100d72e5
    Function name=_chkstk
    The address will be different of course.
    In my tests I isolated the problem to an allocation of a char array like so at the top of one of my wrapped C++ methods:
    char buf[650000];
    As you see this code is requesting 650000 bytes of stack memory. When run in a native executable there was no problem but when I ran it wrapped in the JNI call it blew up.
    Conclusion: There is a much smaller stack space when using JNI OR the added overhead of my JNI wrapper exhausted the available stack space OR this is a stack space issue related to DLLs.
    Hope this helps. Anyone with insight on this please put in your 2 cents.

  • Error while using Javamail...pls help me...

    when i am using javamail for sending mail , i am getting error like,
    C:\jdk1.3\bin\mail>java MailSend
    [email protected] [email protected]
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException:
    at javax.mail.Transport.send0(Transport.java:218)
    at javax.mail.Transport.send(Transport.java:80)
    at MailSend.Send(MailSend.java:56)
    at MailSend.main(MailSend.java:73)
    and i define properties like,
    mailProp.put("java", "java");
    where , "java" is my system name, and there is also mail server on my system. and my system is connected with proxy server..
    when i am trying
    mailProp.put("mail.smtp.host", "java");
    then i am getting same type of error...
    so, what is that ? pls help me to solve my error...

    Surely there's more information associated with that MessaginException than
    you've included here.
    Turn on session debugging and run your program again.
    http://java.sun.com/products/javamail/FAQ.html#debug

  • Error msg pointing to nonexistent var (WARNING: LONG POST)

    I'm sorry to have to post my entire program, but I keep getting an error msg that points to a variable that is NOWHERE in my code. The var is called PwChar. It's mentioned in the error msg, but is nowhere in my code. This is even after saving and recompiling it THREE TIMES. Please, someone, tell me where this error appears in my code, if you even can. Your help will be greatly appreciated. Here is the error msg:
    C:\jdk1.2.1\bin>javac PwGenerator.java
    PwGenerator.java:228: Incompatible type for =. Can't convert java.lang.Character
    to char.
    pwChar = new Character((char) (newAsciiRange));
    ^
    PwGenerator.java:234: Incompatible type for =. Can't convert java.lang.Character
    to char.
    pwChar = new Character((char) (newAsciiRange[0]));
    ^
    2 errors
    Now here is my code (sorry for the length):
    // My Javafied Password Generator
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class PwGenerator extends JApplet
    private String pw;
    private JPanel centerPanel, northPanel, southPanel;
    private JComboBox numchars;
    private JCheckBox lettersUpper, lettersLower, numbers, specialChars;
    private JButton generate, reset;
    private JTextField textfield;
    private int asciiRange[], newAsciiRange[];
    private String pwLength[] = {"6", "7", "8", "9", "10", "11", "12"};
    private int lengthSelected;
    private JLabel pwLabel, numCharLabel;
    private boolean wantSpecialchars, wantNumbers, wantUppercase, wantLowercase;
    public void init()
    // instantiate widgets
    asciiRange = new int[94];
    numCharLabel = new JLabel("Number of characters for password");
    numchars = new JComboBox(pwLength);
    lettersUpper = new JCheckBox("Uppercase letters");
    lettersLower = new JCheckBox("Lowercase letters");
    numbers = new JCheckBox("Numbers");
    specialChars = new JCheckBox("Special characters");
    generate = new JButton("Generate password");
    reset = new JButton("Clear");
    textfield = new JTextField(12);
    pwLabel = new JLabel("Your new password is: ");
    // add widgets to the content pane
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    centerPanel = new JPanel();
    centerPanel.setLayout(new GridLayout(3, 2));
    centerPanel.add(lettersUpper);
    centerPanel.add(lettersLower);
    centerPanel.add(numbers);
    centerPanel.add(specialChars);
    centerPanel.add(generate);
    centerPanel.add(reset);
    c.add(centerPanel, BorderLayout.CENTER);
    northPanel = new JPanel();
    northPanel.setLayout(new FlowLayout());
    northPanel.add(numCharLabel);
    northPanel.add(numchars);
    c.add(northPanel, BorderLayout.NORTH);
    southPanel = new JPanel();
    southPanel.setLayout(new FlowLayout());
    southPanel.add(pwLabel);
    southPanel.add(textfield);
    c.add(southPanel, BorderLayout.SOUTH);
    } // end init
    public void start()
    // connect event handlers to the widgets
    numchars.addItemListener(new ItemListener() {
         public void itemStateChanged(ItemEvent e)
         lengthSelected = Integer.parseInt(pwLength[numchars.getSelectedIndex()]);
    CheckBoxHandler handler = new CheckBoxHandler();
    lettersUpper.addItemListener(handler);
    lettersLower.addItemListener(handler);
    numbers.addItemListener(handler);
    specialChars.addItemListener(handler);
    generate.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         setAsciiRange();
         trimAsciiRange();
    reset.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         textfield.setText("");
    } // end start
    public void setAsciiRange()
    int numRange[] = new int[10];
    int uppercaseRange[] = new int[26];
    int lowercaseRange[] = new int[26];
    int specialcharRange[] = new int[32];
    System.out.println("Welcome to setAsciiRange!");
    if (!wantSpecialchars && !wantNumbers && !wantUppercase && !wantLowercase)
    JOptionPane.showMessageDialog(this, "You must make a selection", "Error", JOptionPane.ERROR_MESSAGE);
    if (wantNumbers)
    for (int i=0, j=48; i<numRange.length; i++, j++)
         numRange[i] = j;
    System.out.println("Number " + i + " is " + j +"\n");
    } // end for
    } // end if
    if (wantUppercase)
    for (int i=0, j=65; i<uppercaseRange.length; i++, j++)
         uppercaseRange[i] = j;
         System.out.println("Uppercase letter " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantLowercase)
    for (int i=0, j=97; i<lowercaseRange.length; i++, j++)
         lowercaseRange[i] = j;
    System.out.println("Lowercase letter " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantSpecialchars)
    for (int i=0, j=33; i<15; i++, j++)
    specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=15, j=58; i<22; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=22, j=91; i<28; i++, j++)
         specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    for (int i=28, j=123; i<specialcharRange.length; i++, j++)
         specialcharRange[i] = j;
         System.out.println("Special char " + i + " is " + j + "\n");
    } // end if
    if (numRange != null)
    System.arraycopy(numRange, 0, asciiRange, 0, numRange.length);
    if (uppercaseRange != null)
    System.arraycopy(uppercaseRange, 0, asciiRange, firstEmptyElement(), uppercaseRange.length);
    if (lowercaseRange != null)
    System.arraycopy(lowercaseRange, 0, asciiRange, firstEmptyElement(), lowercaseRange.length);
    if (specialcharRange != null)
    System.arraycopy(specialcharRange, 0, asciiRange, firstEmptyElement(), specialcharRange.length);
    for (int i=0; i<asciiRange.length; i++)
    System.out.println(asciiRange[i]);
    private int firstEmptyElement()
    int i;
    for (i=0; i<asciiRange.length; i++)
    if (asciiRange[i] == 0)
         break;
    return i;
    private void trimAsciiRange()
    newAsciiRange = new int[firstEmptyElement()];
    for (int i=0; i<newAsciiRange.length; i++)
    newAsciiRange[i] = asciiRange[i];
    System.out.println("newAsciiRange element " + i + " is " + newAsciiRange[i]);
    public void generatePw (int selectedLength)
    int randomNum;
    char pwChar;
    pw = "";
    for (int i=0; i<=lengthSelected; i++)
    randomNum = 1 + (int) (Math.random() * newAsciiRange.length);
    try {
         pwChar = new Character((char) (newAsciiRange[i]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    catch(ArrayIndexOutOfBoundsException e) {
         System.out.print("Setting out-of-bounds index to 0");
         pwChar = new Character((char) (newAsciiRange[0]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    System.out.println(pw);
    textfield.setText(pw);
    private class CheckBoxHandler implements ItemListener
    public void itemStateChanged(ItemEvent e)
    if (e.getSource() == specialChars)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantSpecialchars = true;
         else
         wantSpecialchars = false;
    } // end outer if
    if (e.getSource() == numbers)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantNumbers = true;
         } // end if
         else
         wantNumbers = false;
         } // end else
    } // end if
    if (e.getSource() == lettersUpper)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantUppercase = true;
         else
         wantUppercase = false;
    } // end if
    if (e.getSource() == lettersLower)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantLowercase = true;
         else
         wantLowercase = false;
    } // end if

    I'm sorry to have to post my entire program, Ok - but next time please use code tags (even though it makes it easier this time, it makes it so much easier to read)
    but I
    keep getting an error msg that points to a variable
    that is NOWHERE in my code. Does your editor have a "find" function? In Notepad it's CTL-F
    The var is called
    PwChar. no, it's called pwChar
    It's mentioned in the error msg, but is
    nowhere in my code. This is even after saving and
    recompiling it THREE TIMES. Please, someone, tell me
    where this error appears in my code, if you even can.
    Your help will be greatly appreciated. Here is the
    e error msg:
    C:\jdk1.2.1\bin>javac PwGenerator.java
    PwGenerator.java:228: Incompatible type for =. Can't
    convert java.lang.Character
    to char.
    pwChar = new Character((char)
    r((char) (newAsciiRange));
    ^
    PwGenerator.java:234: Incompatible type for =. Can't
    convert java.lang.Character
    to char.
    pwChar = new Character((char)
    r((char) (newAsciiRange[0]));
    ^
    2 errors
    Now here is my code (sorry for the length):
    // My Javafied Password Generator
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class PwGenerator extends JApplet
    private String pw;
    private JPanel centerPanel, northPanel,
    l, southPanel;
    private JComboBox numchars;
    private JCheckBox lettersUpper, lettersLower,
    r, numbers, specialChars;
    private JButton generate, reset;
    private JTextField textfield;
    private int asciiRange[], newAsciiRange[];
    private String pwLength[] = {"6", "7", "8", "9",
    ", "10", "11", "12"};
    private int lengthSelected;
    private JLabel pwLabel, numCharLabel;
    private boolean wantSpecialchars, wantNumbers,
    s, wantUppercase, wantLowercase;
    public void init()
    // instantiate widgets
    asciiRange = new int[94];
    numCharLabel = new JLabel("Number of characters
    ters for password");
    numchars = new JComboBox(pwLength);
    lettersUpper = new JCheckBox("Uppercase
    case letters");
    lettersLower = new JCheckBox("Lowercase
    case letters");
    numbers = new JCheckBox("Numbers");
    specialChars = new JCheckBox("Special
    cial characters");
    generate = new JButton("Generate password");
    reset = new JButton("Clear");
    textfield = new JTextField(12);
    pwLabel = new JLabel("Your new password is: ");
    // add widgets to the content pane
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    centerPanel = new JPanel();
    centerPanel.setLayout(new GridLayout(3, 2));
    centerPanel.add(lettersUpper);
    centerPanel.add(lettersLower);
    centerPanel.add(numbers);
    centerPanel.add(specialChars);
    centerPanel.add(generate);
    centerPanel.add(reset);
    c.add(centerPanel, BorderLayout.CENTER);
    northPanel = new JPanel();
    northPanel.setLayout(new FlowLayout());
    northPanel.add(numCharLabel);
    northPanel.add(numchars);
    c.add(northPanel, BorderLayout.NORTH);
    southPanel = new JPanel();
    southPanel.setLayout(new FlowLayout());
    southPanel.add(pwLabel);
    southPanel.add(textfield);
    c.add(southPanel, BorderLayout.SOUTH);
    } // end init
    public void start()
    // connect event handlers to the widgets
    numchars.addItemListener(new ItemListener() {
         public void itemStateChanged(ItemEvent e)
    lengthSelected =
    d =
    Integer.parseInt(pwLength[numchars.getSelectedIndex()]
    CheckBoxHandler handler = new CheckBoxHandler();
    lettersUpper.addItemListener(handler);
    lettersLower.addItemListener(handler);
    numbers.addItemListener(handler);
    specialChars.addItemListener(handler);
    generate.addActionListener(new ActionListener()
    er() {
         public void actionPerformed(ActionEvent e)
         setAsciiRange();
         trimAsciiRange();
    reset.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         textfield.setText("");
    } // end start
    public void setAsciiRange()
    int numRange[] = new int[10];
    int uppercaseRange[] = new int[26];
    int lowercaseRange[] = new int[26];
    int specialcharRange[] = new int[32];
    System.out.println("Welcome to setAsciiRange!");
    if (!wantSpecialchars && !wantNumbers &&
    s && !wantUppercase && !wantLowercase)
    JOptionPane.showMessageDialog(this, "You must
    u must make a selection", "Error",
    JOptionPane.ERROR_MESSAGE);
    if (wantNumbers)
    for (int i=0, j=48; i<numRange.length; i++,
    ; i++, j++)
         numRange[i] = j;
    System.out.println("Number " + i + " is " + j
    is " + j +"\n");
    } // end for
    } // end if
    if (wantUppercase)
    for (int i=0, j=65; i<uppercaseRange.length;
    ength; i++, j++)
         uppercaseRange[i] = j;
    System.out.println("Uppercase letter " + i + " is "
    " + j + "\n");
    } // end for
    } // end if
    if (wantLowercase)
    for (int i=0, j=97; i<lowercaseRange.length;
    ength; i++, j++)
         lowercaseRange[i] = j;
    System.out.println("Lowercase letter " + i +
    " + i + " is " + j + "\n");
    } // end for
    } // end if
    if (wantSpecialchars)
    for (int i=0, j=33; i<15; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    for (int i=15, j=58; i<22; i++, j++)
    specialcharRange[i] = j;
    System.out.println("Special char " + i + " is
    i + " is " + j + "\n");
    for (int i=22, j=91; i<28; i++, j++)
         specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    for (int i=28, j=123;
    j=123; i<specialcharRange.length; i++, j++)
         specialcharRange[i] = j;
    System.out.println("Special char " + i + " is " + j
    j + "\n");
    } // end if
    if (numRange != null)
    System.arraycopy(numRange, 0, asciiRange, 0,
    ge, 0, numRange.length);
    if (uppercaseRange != null)
    System.arraycopy(uppercaseRange, 0, asciiRange,
    Range, firstEmptyElement(), uppercaseRange.length);
    if (lowercaseRange != null)
    System.arraycopy(lowercaseRange, 0, asciiRange,
    Range, firstEmptyElement(), lowercaseRange.length);
    if (specialcharRange != null)
    System.arraycopy(specialcharRange, 0,
    ge, 0, asciiRange, firstEmptyElement(),
    specialcharRange.length);
    for (int i=0; i<asciiRange.length; i++)
    System.out.println(asciiRange[i]);
    private int firstEmptyElement()
    int i;
    for (i=0; i<asciiRange.length; i++)
    if (asciiRange[i] == 0)
         break;
    return i;
    private void trimAsciiRange()
    newAsciiRange = new int[firstEmptyElement()];
    for (int i=0; i<newAsciiRange.length; i++)
    newAsciiRange[i] = asciiRange[i];
    System.out.println("newAsciiRange element " + i
    " + i + " is " + newAsciiRange[i]);
    public void generatePw (int selectedLength)
    int randomNum;
    char pwChar;
    pw = "";
    for (int i=0; i<=lengthSelected; i++)
    randomNum = 1 + (int) (Math.random() *
    om() * newAsciiRange.length);
    try {
         pwChar = new Character((char) (newAsciiRange));
         [b]pw += pwChar;
         System.out.print(pwChar + " ");
    catch(ArrayIndexOutOfBoundsException e) {
    System.out.print("Setting out-of-bounds index to
    o 0");
         pwChar = new Character((char) (newAsciiRange[0]));
         pw += pwChar;
         System.out.print(pwChar + " ");
    System.out.println(pw);
    textfield.setText(pw);
    private class CheckBoxHandler implements
    ts ItemListener
    public void itemStateChanged(ItemEvent e)
    if (e.getSource() == specialChars)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantSpecialchars = true;
         else
         wantSpecialchars = false;
    } // end outer if
    if (e.getSource() == numbers)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantNumbers = true;
         } // end if
         else
         wantNumbers = false;
         } // end else
    } // end if
    if (e.getSource() == lettersUpper)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantUppercase = true;
         else
         wantUppercase = false;
    } // end if
    if (e.getSource() == lettersLower)
         if (e.getStateChange() == ItemEvent.SELECTED)
         wantLowercase = true;
         else
         wantLowercase = false;
    } // end if

  • "Error running javac.exe compiler" when using ant to compile Eclipse plugin

    Hi
    I encounter an error "Error running C:\jdk1.5.0_06\bin\javac.exe compiler" when building my project using ant1.7.
    My project has 10 eclipse plugins, and each plugin is compiled by invoking following ant target
    <!-- ===================================================================
    Compile specified plugin
         target parameters:
              param.plugin.dir: the plugin directory
              param.plugin.targetJarFile: the name of jar file for the given plugin
              param.plugin.src.dir: the folder name of source codes. Note: it is relative path name
              param.fork: indicate if another process is forked to run javac
    =================================================================== -->
    <target name="compilePlugin">
         <!-- Prepare compile environment -->
         <!-- Delete obsolete build folder -->
         <delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
         <!-- Delete obsolete jar file -->
         <delete file="${param.plugin.dir}/${param.plugin.targetJarFile}" quiet="true"/>
         <mkdir dir="${param.plugin.dir}/${build.dir}"/>
         <!-- Compile source codes -->
         <javac      srcdir="${param.plugin.dir}/${param.plugin.src.dir}"
                   destdir="${param.plugin.dir}/${build.dir}"
                   failonerror="${javacFailOnError}"
                   verbose="${javacVerbose}"
                   debug="${javacDebugInfo}"
                   deprecation="${javacDeprecation}"
              optimize="${javacOptimize}"
                   source="${javacSource}"
                   target="${javacTarget}"     
                   fork="${param.fork}" memoryInitialSize="256m" memoryMaximumSize="512m">
              <classpath refid="compile.classpath" />
         </javac>
         <!-- Create plugin jar file -->
         <copy todir="${param.plugin.dir}/${build.dir}" failonerror="true">
              <fileset dir="${param.plugin.dir}/${param.plugin.src.dir}" excludes="**/*.java, **/package.htm*" />
         </copy>
         <jar jarfile="${param.plugin.dir}/${param.plugin.targetJarFile}" basedir="${param.plugin.dir}/${build.dir}"/>
         <delete dir="${param.plugin.dir}/${build.dir}" quiet="true"/>
    </target>
    Since each of first 9 plugins contains less than 500 java source files, we always set "param.fork" to false when invoking this ant target.
    For the 10th plugin, it has about 1000 source files. If we set "param.fork" to false, we will get the error "Error running javac.exe compiler". So we have to set "param.fork" to true when compiling it. This week, this plugin contains about 1250 files and we get the same error again when compiling it. I tried to increase the "memoryMaximumSize" to "768", but still couldn't get through it.
    BTW, There are about 150 jar files in our classpath for compiling plugins. Do many jar files cause this problem?
    Any help is highly appreciated.
    Many thanks
    Oceanman

    I encountered a very similar error and I was able to resolve it by removing the following parameters from the javac task:
    fork="${param.fork}"
    memoryInitialSize="256m"
    memoryMaximumSize="512m"My values were not the same as yours, before I removed them, the values were set to:
    fork="true"
    memoryInitialSize="256m"
    memoryMaximumSize="256m" Not sure why this fixed my problem but it did. I was using Ant 1.7 and Java 1.6_07 hope this helps.

  • Execute error..(pervel)

    the following is the entire error msg:
    C:\jdk1.3.1\bin>java -classpath Jess61a4\jess.jar ExSquare
    Exception in thread "main" java.lang.NoClassDefFoundError: ExSquare

    Please do not start a new thread when responding. I have posted my response into the original thread in the "Compiling" forum.

  • Jdk 1.4.0 install error! Please help me!

    Flatform : RedHat Linux7.1
    Program : j2sdk-1_4_0-linux-i386.bin
    I have this error after installing jdk1.4.0 and typing 'javac' :
    ===========================
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    repeat...
    Why this error do occur?
    How can I complete jdk1.4 installing?

    Try using the full path for javac, e.g., $JAVA_HOME/bin/javac, and if that works then the error is due to another javac (most probably /usr/bin/javac).
    For example, if you have RedHat and both Kaffe and J2SE are installed, the /usr/bin/javac is Kaffe's and is ran first because /usr/bin comes first in $PATH.
    You just have to remove that other javac or make that a symbolic link to the other one.

  • Error in put() method

    hi
    this is my first post here
    i have written a program
    but when ever i compile the code i get a error message which is posted below
    BounceThread.java : cannot resolve symbol: method put(int,java.lang.String)
    location: class java.util.HashMap;
    scoreMap.put(Ball.COUNTER,ae.getActionCommand()+"-"+Ball.SHAPE_COLOR);
            ^
    Note:BounceThread.java uses  or overrides a deprecated API
    Note: decomplie with -deprecation for details
    *1 error*im using jdk1.4.2, i tried with -Xlint:deprecation and all
    pls tell me wat am i doing wrong.
    any help will be appreciated

    dolphin_m70 wrote:
    hi
    this is my first post here
    i have written a program
    but when ever i compile the code i get a error message which is posted below
    BounceThread.java : cannot resolve symbol: method put(int,java.lang.String)
    location: class java.util.HashMap;
    scoreMap.put(Ball.COUNTER,ae.getActionCommand()+"-"+Ball.SHAPE_COLOR);
    ^
    Note:BounceThread.java uses  or overrides a deprecated API
    Note: decomplie with -deprecation for details
    *1 error*im using jdk1.4.2, i tried with -Xlint:deprecation and all
    pls tell me wat am i doing wrong.
    any help will be appreciatedHashMap has no method named "put" that takes an int and a String.
    Did you try reading the documentation ?

  • Java.lang.UnsatisfiedLinkError: no ocijdbc8

    I received the java.lang.UnsatisfiedLinkError: no ocijdbc8 error while running the following command:
    java OracleXML putXML -user xxx/xxx .....
    I saw a few posts regarding dll files for NT but nothing for AIX.
    Any help would be greatly appreciated.
    Thanks,
    John

    Hi Jinyu,
    Here are the things I was checking for to fix this error.
    I made sure the xsu12.jar and classes12.zip file were in the classpath, and they are.
    I made sure the directory that contains the libocijdbc8.so library was in the classpath. It wasn't so I added it.
    I added the directory that holds the libocijdbc8.so library to the LD_LIBRARY_PATH env variable.
    Thanks,
    John

  • Error: no jmvfw in java.library.path

    Hello
    Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
         at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
         at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)
         at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241)
         at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
         at java.lang.Thread.run(Thread.java:595)I get this error when use jdk1.5.0 but I don't have it when use older JDK...
    Anyone could know why it happens and how to make it working with JDK1.5.0??
    Thx
    Bartek

    SunForumsGuest wrote:
    FYI -- For some reason, on my Win7 x64 machine, if I installed JMF and the option "move dlls to windows/system" directory was checked, those DLLs were never installed on my system.
    If you UNCHECK that during install they will show up in the JMF/lib directory.
    C:\Program Files (x86)\JMF2.1.1e\lib
    Hope it helps. I've been going nuts until I just figured that out.Hello,
    thanks for the tip - I followed your instructions and have the dlls. However, when I try running some code, this error occurs:
    jmvfw.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    I cannot find dll's compiled for 64-bit on the Internet; has anybody else faced this problem?
    I use Netbeans under Win7.

  • The nullptrexception error + code

    this program is infact taken from an old forum message.
    The code and the error message in mentioned below. Please help me find out the reason for this error.
    Thanks a lot.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.util.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import com.sun.image.codec.jpeg.*;
    public class SwingCapture extends Panel implements ActionListener { 
    public static Player player = null;
    public CaptureDeviceInfo di = null;
    public MediaLocator ml = null;
    public JButton capture = null;
    public Buffer buf = null;
    public Image img = null;
    public VideoFormat vf=null;
    public BufferToImage btoi = null;
    public ImagePanel imgpanel = null;
    public SwingCapture() {   
    setLayout(new BorderLayout());
    setSize(320,550);
    imgpanel = new ImagePanel();
    capture = new JButton("Capture");
    capture.addActionListener(this);
    String str1 = "vfw:Philips USB PC-Camera:0";
    String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
    di = CaptureDeviceManager.getDevice(str1);
    ml = di.getLocator();
    try {     
    player = Manager.createRealizedPlayer(ml);
    player.start();
    Component comp;
    if ((comp = player.getVisualComponent()) != null)
    add(comp,BorderLayout.NORTH);
    add(capture,BorderLayout.CENTER);
    add(imgpanel,BorderLayout.SOUTH);
    catch (Exception e)
         e.printStackTrace();
    public static void main(String[] args) {   
    Frame f = new Frame("SwingCapture");
    SwingCapture cf = new SwingCapture();
    f.addWindowListener(new WindowAdapter() {      //overriding windowClosing
    public void windowClosing(WindowEvent e) {     
    playerclose();
    System.exit(0); }
    f.add("Center",cf);
    f.pack();
    f.setSize(new Dimension(320,550));
    f.setVisible(true);
    public static void playerclose() {   
    player.close();
    player.deallocate();
    public void actionPerformed(ActionEvent e) {   
    JComponent c = (JComponent) e.getSource();
    if (c == capture) {     
    // Grab a frame
    FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
    buf = fgc.grabFrame();
    // Convert it to an image
    btoi = new BufferToImage((VideoFormat)buf.getFormat());
    img = btoi.createImage(buf);
    // show the image
    imgpanel.setImage(img);
    class ImagePanel extends Panel {   
    public Image myimg = null;
    public ImagePanel() {     
    setLayout(null);
    setSize(320,240);
    public void setImage(Image img) {     
    this.myimg = img;
    repaint();
    public void paint(Graphics g) {     
    if (myimg != null) {       
    g.drawImage(myimg, 0, 0, this);
    The error message :-
    C:\jdk1.4_01\bin>java SwingCapture
    Exception in thread "main" java.lang.NullPointerException
    at SwingCapture.<init>(SwingCapture.java:38)
    at SwingCapture.main(SwingCapture.java:59)
    I am not sure that the code when pasted retains the same format. hence i specify the lines in the code where the error is being shown.
    line 38
    -> try {     
    player = Manager.createRealizedPlayer(ml);
    player.start();
    line 59
    ->public void windowClosing(WindowEvent e) {     
    playerclose();
    System.exit(0); }

    I think your line numbers may be off, so you're identifying the wrong lines of code.
    Anyway, is it possible that in this line:
    di = CaptureDeviceManager.getDevice(str1);getDevice returns null, so that the subsequent line
    ml = di.getLocator();would throw the NPE?

Maybe you are looking for

  • Application Virtualization 4.6 (SoftGrid) Acrobat Pro 9.2 and Office 2007

    I'm actually trying to sequence Acrobat Pro 9.2 together with Office 2007 in a dynamic suite composition with Application Virtualization 4.6 RC. I can sequence both applications and deploy them to the client. Everything seems to work fine, except the

  • Sharepoint installation

    I am trying to install SharePoint 2013 on a win server 2012 VM's which I created on my  desktop with enough horsepower .  I created two VM's with server 2012 and the plan is that I will put APP and SQL on one and WebApps on other server. meaning this

  • Reg: PDF to SWF Conversion

    Hi mate How do convert to pdf to swf using  flex application. Thanks

  • Palm TX - Won't even hard reset

    My Palm T/X will soft reset, but not hard reset.  It keeps going to the password screen. When I try to enter the password, it jumps to the Owners screen and that's it - it's stuck.  Needless to say, it won't Hotsync either. Any ideas on how to at lea

  • Data load failing with a short-dump

    Hello All, There is a data load failing with the following short-dump: Runtime Errors         UNCAUGHT_EXCEPTION Except.                    CX_FOEV_ERROR_IN_FUNCTION Full text: "UNCAUGHT_EXCEPTION" CX_FOEV_ERROR_IN_FUNCTIONC "CL_RSAR_FUNCTION========