Error: Class java.util.ArrayList not found in import

Bear with me, I'm learning. That's part of the problem.
I'm trying to teach myself JSP using a book based on Tomcat, but running it on an Oracle 9iAS server that I don't control. (The DBAs do that.) I'm running into constant problems compiling and using classes and such, I think because of the different directory structures on the two servers. (See subject error.)
So, what I'd like to know is: how do I set up a default/main/whatever-you-want-to-call-it directory under which I can store my practice applications, such that 9iAS will function correctly? We're not using OC4J as far as I can see (no such directory, though there is a J2EE_containers folder), just JServ. Or, conversely, can someone explain in simple terms the basic 9iAS directory structures for deploying apps on 9iAS? I've been 'round and 'round the Oracle documentation until my head spins, and can't find this basic information.
Help, please!!

You will have to make Kawa to use the correct jdk
Look into
Options-> Directory
Make a new Profile if it point to your old jdk version
Thanks
Joey

Similar Messages

  • Error:Class java.util.date not found

    i have installed 9iAS on my computer.And i want to develop program on JSP.i tried the url below
    http://eyuksel/servlet/IsItWorking
    and i got "it is working" message.when i try to execute my first jsp file i get the error:
    Errors compiling:d:\ias\apache\apache\htdocs\_pages\\_first.java
    d:\ias\apache\apache\htdocs\_pages\_first.java:55: Class java.util.date not found.
    out.print( new java.util.date() );
    ^
    1 error
    what must i do or how can i install the java classes.
    kind regards...
    null

    Thank you very much.It worked:)
    Java is case-sensitive.
    try
    java.util.Date
    instead of
    java.util.date
    null

  • When compiling I get msg: Class java.io.* not found in import.

    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    public class CheckNumber {
    //program that checks the input buffer has valid integer value
         public static void main(String[] args) {
              String inLine = null;
              int checkInteger = 0;
              try {
              BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
              System.out.print("Enter a valid Integer and hit <ENTER>: ");
              inLine = inStream.readLine();
              checkInteger = Integer.parseInt(inLine);
              } catch (NumberFormatException nfe) {
              System.out.println("You did not enter a valid Integer: " + nfe);
              return;
              } catch (IOException e) {
              System.out.println("IOException: " + e);
              return;
              System.out.println("You entered a valid Integer: " + checkInteger);
    Compiling produced the following output:
    C:\jdk\work1>javac CheckNumber.java
    CheckNumber.java:1: Class java.io.InputStreamReader not found in import.
    import java.io.InputStreamReader;
    ^
    CheckNumber.java:2: Class java.io.BufferedReader not found in import.
    import java.io.BufferedReader;
    ^
    CheckNumber.java:12: Class java.io.BufferedReader not found in type declaration.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:12: Class java.io.InputStreamReader not found in new.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:15: Class java.io.BufferedReader not found in void main(java.lang.String[]).
    inLine = inStream.readLine();
    ^
    CheckNumber.java:21: Exception java.io.IOException is never thrown in the body of the corresponding try statement.
    } catch (IOException e) {
    ^
    6 errors

    I recently did a standard installation of jdk 1.5.
    This is the first time I am trying import.
    I set the path:
    set path=c:\jdk\bin
    Hmm...
    C:\jdk\bin>java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
    C:\jdk\bin>javac -J-version
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    There's no javac.exe file.
    I have javaw.exe and java.exe.

  • MyApplet.java:2: Class netscape.javascript.JSObject not found in import.

    Hi,
    Im getting: MyApplet.java:2: Class netscape.javascript.JSObject not found in import.
    import netscape.javascript.JSObject;
    Where can i get this package. Someone said jaws.jar, but its not to be found. Im new on this project and I dont know how the old people compiled this applet.
    JDK version is:
    Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
    Thanks

    Thanks man!
    I installed the jdk1.4 on my workstation. I then compiled the program via JDeveloper and pumped the class over to my server.
    Thanks again.

  • Class javax.rmi.PortableRemoteObject not found in import

    I have successfully tested test1.jsp calling stateful ejb test1ejb under JDEV9032. On deploying to standalone OC4J903, the following error occurred on accessing the jsp:
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:D:\O9IAS\j2ee\home\application-deployments\test\testWEB\persistence\_pages\\_test1.java
    Line # Error 10
    Class javax.rmi.PortableRemoteObject not found in import. import javax.rmi.PortableRemoteObject;
    Appreciate some pointers on how to troubleshoot this problem. Thanks. William Chew.

    This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.

  • Class javax.crypto.SecretKey not found in import.

    While compilation i am getting this error.
    Class javax.crypto.SecretKey not found in import.
    I am not able to figure it out . Please help me for that.
    Is it related to some classpath setting.

    This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.

  • Source file for java.util.Vector not found ?

    Hi !
    In the Source Editor, hold down the Ctrl key and move the mouse over a class identifier belonging to the NetBeans APIs. A hyperlink appears. Click on the hyperlink and the cursor jumps to the related NetBeans API class.
    (Alt--O)
    Can anybody tell me, why this doesn't work in an Mobile Application ?
    thanks.
    (Show JavaDoc (Alt-F1) doesn't work in Mobile and EE ??)

    do you link javaee and javame sources with Netbeans?
    (you should ask it on a NetBeans forum??)

  • Class not found in import

    I am new to the Java technology and am running into some problems getting started. Initially, I was getting the following error: Class javax.swing.JOptionPane not found in import. After realizing that I needed to unzip the src.zip file, I did so. I tried compiling again and got the same message. I came across a website that talked about setting the CLASSPATH. So I set the class path like so: set CLASSPATH=.;C:\;c:\j2sdk1.4.2_04\src;. Finally! I got passed the first error. However, what followed was quite depressing. 50 Errors! Looks like the compiler can not find any class I import that starts with "sun.". I looked where I can see the javax folder and there is no sun folder. Did I miss something in the installation? Is there a workaround for this? I thought I read somewhere that you shouldn't import sun.* classes, but what happens when it is in the delivered packages? TIA Ryan

    Well to start off... The file Src.zip only contains source files nothing compiled so it useless unless you want to look at the source code, the Java Class files are in a "Jar" file...
    Set your (system) path to c:\j2sdk1.4.2_04\bin
    your ClassPath should only point to the new class files that you created...
    ( I don't even have the ClassPath set on my computer)
    And this link deals with setting the classpath...
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    That should take care of it... Here are some links for you to check out...
    The Java Tutorial
    http://java.sun.com/docs/books/tutorial/index.html
    Essentials of the Java Programming Language: A Hands-On Guide, Part 1 and 2
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/
    Language Essentials Short Course
    http://java.sun.com/developer/onlineTraining/JavaIntro/contents.html
    Tutorial Index
    http://java.sun.com/developer/onlineTraining/index.html
    - MaxxDmg...
    - ' He who never sleeps... '

  • Error(86,88): incompatible types; found: java.util.ArrayList

    Hi,
    I'm getting following error :
    Error(86,88): incompatible types; found: java.util.ArrayList, required: com.sun.java.util.collections.ArrayList
    The line JDev is complaining about contains the following code :
    com.sun.java.util.collections.ArrayList runtimeErrors = container.getExceptionsList();
    I really don't have a clue where this error comes from. If I right-click on ArrayList it brings me to the correct declaration.
    Does somebody know what I'm doing wrong?
    Thanks in advance for you help!
    Kris

    Kris,
    try changing the code to :
    java.util.ArrayList runtimeErrors = container.getExceptionsList();apparently container.getExceptionsList() returns a java.util.Arraylist not a com.sun.java.util.collections.ArrayList
    HTH,
    John

  • Newbie help with collection java.util.ArrayList

    Hi,
    the documentation for the class ArrayList is given as
    public class ArrayList<E>
    extends AbstractList<E>
    what is that <E> over there ? Similarly, what is the <T> in an iterator ? Exact problem along with code is at the end of the post.
    I am a C++ programmer and am very comfortable with the STL, but that approach i.e. ArrayList<Job> does not work over here :(
    PLease help.
    TIA,
    Madhu.
    Code Details:
    I have a class (Job) which I wish to add to the list using the add method. Obviously, it gives an error.
    Code goes as
    class MyQueue extends java.lang.Object
    private java.util.ArrayList jobsList=new java.util.ArrayList(100);
    public void addtoMyQueueatIndex(Job newJob,int Index)
    jobsList.add((java.lang.Object)newJob,Index);
    Error is :
    MyQueue.java:96: cannot find symbol
    symbol : method addtoMyQueueatIndex((java.lang.Object,int)
    location: class java.util.ArrayList
    jobsList.add((java.lang.Object)newJob,Index);

    Are you using J2SDK 1.5.0 beta 1 or J2SDK 1.4.2? Are you using the docs from 1.5 and the compiler from 1.4.2?
    private java.util.ArrayList jobsList=new java.util.ArrayList(100); //-- 1.4.2 code
    private java.util.List<Job> jobsList = new java.util.ArrayList<Job> (100); //-- 1.5.0 code (preferred style)
    private java.util.ArrayList<Job> jobsList = new java.util.ArrayList<Job> (100); //-- 1.5.0 codeAs a matter of style, use the interface and not the real class when declaring a variable like the jobsList above whenever possible or applicable.
    You do not need to cast the object newJob to Object. And you have inverted the positions of the parameters.
    void add(int index, E element)
    Inserts the specified element at the specified position in this list (optional operation).
    jobsList.add(Index, newJob);

  • OMWB under Linux redhat AS 3 : Java 1.4 not found

    Hi,
    I have already used the oracle migration workbench under Windows with a total sucess.
    But passing to Linux Redhat AS 3; Trying to launch the migration workbench by the ./omwb.sh ... the stressing error follows :
    Java 1.4 not found. Java 1.4 requiered
    I installed the j2re and j2sdk rpms without any changes
    please help ! thinks

    Hello All,
    I solved the problem by executing the following commands :
    $ java -version
    ... placeholder message ...
    $ su -
    # alternatives --remove java /usr/share/java/libgcj-java-placeholder.sh
    # alternatives --remove javac /usr/share/java/libgcj-javac-placeholder.sh
    # alternatives --remove jar /usr/bin/fastjar
    # alternatives --remove jar.1.gz /usr/share/man/man1/fastjar.1.gz
    # cd /usr/bin
    # ln -s /usr/java/jre1.5.0/bin/java java
    ... also set the links for javac etc ...
    # exit
    $ java -version
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
    Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
    $
    Procedure of JDK is similar to J2RE...
    It seems that it wasn't a difficult problem
    sorry and thinks
    Tchao

  • Package not found in import --please help me

    Hi,
    when I try to import jack.samples.*(<%@ page import="jack.samples.*" %>)
    into the jsp ,it throws me error stating
    "Package jack.samples not found in import".
    1)After this,added path to this jar file in classpath i.e D:\jack\samples\samples.jar
    2)still,error appears.
    3)Now,added this jar file to jdk lib classes. still,error appears.
    can somebody throw me light on how to trouble shoot this.
    Thanks
    Jack

    Hi,
    I was able to solve the above problem ,the moment I declared the constructor
    has public.Now,I am trying to retreive the Item class partno value and it
    throws me "
    d:\ibm\WAServer\temp\default_host\WCSServlets\_jameco_2F_softproduct_2E_jsp_jsp_1.java:784: No method matching getPartNo&#40&#59;&#41&#59; found in class jack.samples.Item. temp= i.getPartNo&#40&#59;&#41&#59;&#59&#59;
    I wonder what could be the cause.The code of Item class is here:
    package jack.samples;
    import java.util.*;
    public class Item {
    int partno;
    String mfgno;
    String description;
    double cost;
    public Item(int p,String m,String d,double c) {
    partno = p;
    mfgno=m;
    description=d;
    cost = c;
    public int getPartNo() {
         return partno;
    public double getCost() {
         return cost;
    The JSP code :
    <%
    Iterator thisLot=linkTab.iterator(); // Iterate to get all items
         while(thisLot.hasNext()) { // output all the elements
         Item i = (Item) thisLot.next();
    here it fails ******     temp= i.getPartNo();
    %>
    Thanks
    Jack

  • Error(23,19): method getName(java.lang.String) not found in class javax.swi

    Hi , when i try to run my program, i keep getting the error msg:
    Error(23,19): method getName(java.lang.String) not found in class javax.swing.JTextField
    I have checked the java API and it inherits from the awt.Component class and should be accessible via the jtextfield.
    I have tried the following:
    trying to initailise the JTextField at the start.
    Using getName works if i use it within the loop after setting the name.
    Does anybody know what i am doing wrong please?
    public class clsMember extends JPanel implements ActionListener {
        private JButton jbtnLog;
        private String surname;
        private JTextField txtItem;
        public clsMember() {
            super(new SpringLayout());
            makeInterface();
            surname = txtItem.getName("Surname").toString();
    private void makeInterface() {
         //code omitted
               for (int i = 0; i < numpairs; i++) {
                JLabel l = new JLabel(strLabels, JLabel.LEADING);
    this.add(l);
    //if the array item is salutation create a combobox
    if (strLabels[i] == "Salutation") {
    jcomSalutation = new JComboBox(strSalutation);
    jcomSalutation.setSelectedIndex(0);
    this.add(jcomSalutation);
    } else {
    txtItem = new JTextField(10);
    l.setLabelFor(txtItem);
    txtItem.setName(strLabels[i].replaceAll(" ", "")); //this is where the label is set and if i do a system.out it shows fine. getName works here too.
    this.add(txtItem);
    //code omitted

    If i have a loop that creates the jtextfields such as
                    txtItem = new JTextField(10);
                    l.setLabelFor(txtItem);
                    txtItem.setName(strLabels.replaceAll(" ", ""));
    this.add(txtItem);How is it then possible to assign to a string the value of a *specific jtextfield*. Lets say that one of these JTextfields has the name surname.
    How is it possible for me to writeString surname = surnamejtextfield.getText();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Javah error java.lang.Object not found

    Hi guys-
    I'm trying to run a javah command to generate a .h file... I'm using windows2000 & jdk1.1.8... when I run the command from DOS prompt I keep getting the same eror as java.lang.Object not found: aborting.. I've checked all the classpath and it seems ok ... I have CLASSPATH=..;c:\jdk1.1.8\lib\classes.zip
    Can anybody help me with this???
    Thanx

    Maybe try ; right click my computer ,click the advanced tab and select enviroment variables,click on classpath and then edit,check if it's correct.I had the sam problem and that seemed to fix it. :)

  • Oracle 9i on XP Pro  error: Java Runtime Environment not Found

    I run the universal installer and get this message: Java Runtime Environment not found at c:/doc...blah blah blah...local settings/temp/OraInstall/jre/bin/jrew.exe
    I've installed Java 1.4 more than once with success, but the universal installer keeps trying to locate jrew.exe at the above location (which doesn't exist in the temp directory)
    Q: why does it look here and/or how can I fix it?
    Thanks in advance,
    -Brent

    For windows installations you are not in need to install Java prior to installing Oracle , remove all Java installed , clean registry and environment variables , restart machine then start reinstallation

Maybe you are looking for

  • I am unable to delete an email account/profile in the settings for Mail/Contacts/etc.

    I have 3 email accounts and on 2 of them there is the "Delete Account" red button at the bottom, but for one of them it is not an option. This particular account that I am trying to remove was installed using the iOS setup tool from GoDaddy.com, whic

  • ITunes 7.02 issues

    Here are my biggest gripes with iTunes 7 . i buy alot of iPods. in fact whenever a new one comes out, i pre-order it and pretty much get it the same day it comes out. And so I re-load my music onto the new iPod and everytime, no wait, EVERYTIME, at s

  • Hp color laserjet 2025 and windows 7

    Subject  I have two hp color laserjets.  Toolbox cannot be installed with windows 7 pro.  Toolbox worked well with windows xp pro. How can I determine amount of remaining color toner and other necessary information without toolbox.  There is no toolb

  • How to save JPEG files in PSE5.0 ?

    OK. newby Q again.  how the heck does one know what to choose when it comes to saving an image as a JPEG?  the following three boxes pop up: IMAGE OPTIONS: QUALITY> FORMAT OPTIONS: BASELINE> PROGRESSIVE> SIZE: up to 2 MBps?

  • Best way to merge 2 different networks/companies in same building

    I would like to get some thoughts on best practice regarding joining 2 different networks in the same building.  2 different companys 2 different networks, we are merging. Once networks are joined we will trust the windows domains. Both networks are