Java import problem

Hi
We are writing a class in package util, which needs to import class from dataAccess package.
Our Code:
import dataAccess.* ;
import dataAccess.Abc;
Error Mesg:
C:\jakarta-tomcat-4.1.24\webapps\oppTrack\WEB-INF\classes\util\ImportToExcel.java:93: cannot resolve symbol
symbol : class Abc
location: package dataAccess
          dataAccess.Abc abcObj = new dataAccess.Abc();
Please can anyone figure out the problem.
Thanks In Advance.

The solution to the problem is simple and we figured out.
Solution - Set the class path.

Similar Messages

  • Java Importer problem

    Where can i find java.lang.Exception class file which i must have for Java exception handling? I used find utility of Windows and did find a Exception.class file shown in directory "java/lang". But somehow i could not find such directory on my hard disk! I copied it to a self-named directory and then tried to import it into forms, i got an error 'no def found 'java/lang'.
    Please help. I need to get it to work urgently.
    Thanks.

    Ron,
    the java.lang.Excpetion class is part of the Java platform and don't need to be present in a separate directory on your PC. Just import java.lang.Exception as you can see it in the Java importer class tree.
    Frank

  • JDBC Java- mysql problem help!

    Hi, I wnat to connect to mySQL fromo Java, I followed all the instructions from the mySql web page, yet I havent been able to do it, when I compile the java progrm I keep getting class not found exceptions, I am using Fedora Core and Java was already installed-well I chose to install it when I installed the operating system, the point is that the paths are all assigned by he system not by me.
    WHat can I do?, Ive been trying over andover again with no results, hopefully somebody can help, I tried to include all the configuration in this email,
    thank you
    my java program is the following:
    t.java
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class t {
    public static void main (String[] args) {
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    when I javac t.java
    I have the following error
    4. ERROR in t.java
    (at line 11)
    Class.forName("com.mysql.jdbc.Driver");
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Unhandled exception type ClassNotFoundException
    when I comment out the Class.forName the hello world rogram runs fine
    when I vi /etc/java java.conf this is the result
    # System-wide Java configuration file -- sh --
    # JPackage Project [www.jpackage.org]
    # Location of jar files on the system
    JAVA_LIBDIR=/usr/share/java
    # Location of arch-specific jar files on the system
    JNI_LIBDIR=/usr/lib/java
    # Root of all JVM installations
    JVM_ROOT=/usr/lib/jvm
    # You can define a system-wide JVM root here if you're not using the default one#JAVA_HOME=$JVM_ROOT/java-gcj
    # Options to pass to the java interpreter
    JAVACMD_OPTS=
    ~
    [root@localhost test]# echo $PATH
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    echo $JAVA_HOME
    it contains nothing
    ls /usr/share java*
    java
    java-1.3.0
    java-1.4.0
    java-1.4.1
    java-1.4.2
    java-1.5.0
    javadoc
    java-ext
    java-utils
    mysql-connector-java-3.1.13-bin.jar is under
    /usr/share/java
    in /etc/profile I have:
    export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java-3.1.13-bin.jar
    in /root/.bash_profile i have
    CLASSPATH=/usr/share/java/mysql-connector-java-3.1.13-bin.jar:/usr/lib/java-ext/mysql-connector/mysql-connector-java-3.1.13-bin.jar
    export CLASSPATH
    when I echo $PATH i have
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    Thanks duff,
    The driver seems to be found
    when I run
    public class t {
    public static void main (String[] args) {
    try
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    System.out.println("MySQL Driver Found");
    catch (ClassNotFoundException e)
    System.out.println("MySQL Driver NOT Found");
    e.printStackTrace();
    I feel somehow ive been focusing in the wrong side of the problem due to my ignorance in Java. Please help me to understand, the reson for which ithe runtime was telling me that there was an unhandled exception was because it is a requirement to handle all exceptions of this kind? why wouldnt it cmplain if I jst did the hello world without any exception handling, maybe because it is a requirement in the Class.forName...
    the other question is, is the message I was obtaining completely independent of the fact that the class was or was not found?
    Maybe, I should go with these questions to the newbies forum...
    thanks

  • Java importer: exception reporting

    I am using the Java Importer facility in Forms 6i to call to Java class methods from my form. I'm still at the development stage so my Java class methods raise (unexpected and expected) exceptions periodically. But Forms always reports this as an ORA-105100 error which makes it very difficult to debug.
    How can I pass the Java exception back to Forms and have it report the entire stack trace? What about run-time exceptions (e.g. Class not found, Class Cast exception, etc.)?
    Thanks,
    - NR

    Hi there
    I had the same problem and the documentation wasn't very good.
    Try importing 'throwable' (type in something like 'java.lang.throwable' on the input line) and then use the following code.
    It doesn't always return very meaningful messages but I geuss needs some refinement.
    EXCEPTION
    WHEN ORA_JAVA.EXCEPTION_THROWN
    THEN
    exc := ORA_JAVA.LAST_EXCEPTION;
    MESSAGE(throwable.getmessage(exc));
    ORA_JAVA.CLEAR_EXCEPTION;
    null

  • Java Importer Genrates Package

    hi all,
    i create one class named Hello.class. it contains one method named World() it return string value "Hello World". i'm using forms 6i (patch 10) and jdk 1.2.2 when i use java importer and i select this class from the java importer it create procedure named Hello. but the problem is it creates funciotn like new_9797 and world_347 instead of NEW or WORLD. why it adds some number with function. it creates lots of other functions also but all r with number. can u please help me.
    thanks in advance
    Shakeel

    This is because you have the option "Generate Persistent Names" set on - Go to the importer dialog - press the Options button and uncheck this box. That will solve your problem.

  • Java Importer - Works in Dev not on Web

    I'm having a problem and there's probably a simple solution:
    I use the Java Importer to call a java class while in developer. Works just fine.
    When I deploy to the web, it's not invoking the java class. I can't seem to trap it.
    Could it be a CLASSPATH problem on the App Server? What should I check for on the server?
    Thanks in advance.

    yes - probably a class path issue - depending on what set up you are using you may have to ensure this is set in the zone.properties file.
    Regards
    Grant ROnald
    Forms Product Management

  • Java Importer - Error Occuring While invoking

    I have installed form6i along with the forms6i server in my machine.When I try to invoke the Java Importer I am getting an error message as
    "PDE-UJI1 Unable to create JVM".
    I have set the classpath for importer.jar and also installed jre1.3 in the machine
    and I set the path for this also but Still I am having the same problem.
    Could any one help in this context.
    Thanks
    Venkatesh Kumar P
    Chennai
    India.

    you need JDK 1.2.2 in the path not 1.3
    Check metalink for this message

  • Java Importer and VJM

    Hi anybody,
    I am evaluating Java Importer functionality of Oracle9i Forms. The online help of Forms says:
    Running Applications with Imported Java
    Imported Java runs in the middle tier. The corresponding generated PL/SQL package calls into the Java class and the Java methods execute in a dedicated Java Virtual Machine (JVM) on the Forms Server. A dedicated JVM is created for each Forms Server application instance that uses the generated PL/SQL package to call the imported Java.
    This means, for every Forms application available on the Forms Server one dedicated VJM is created. All users connecting to this application use the same VJM.
    Am I right?
    Thanks for your help.
    Andreas

    1) I am currently using 9iAS version 9.0.2.2.0 (Forms version (9.0.2.11.0). Will this version reuse a single JVM or create one for every user?
    2) I am trying to implement a form with imported Java. I get an exception. I have tried the ORA_JAVA exception and error handling as indicated in the Forms Developer help (importing java.lang.exception) but it does not help. Stepping through the code I see that the generated JNI.GET_CLASS call fails for both my custom class and Exception_. Does this mean the JVM cannot be created? In my default.env file I have added my jar file to the classpath and the path already contained the jre/bin/classic directory. I saw a post about conflicts between the Forms and Reports classpath but I have not called reports when I run into this problem.

  • LR3.2 import problem on computer with Windows OS

    LR3.2 import problem on Windows OS
    This is a continuation of a question that I posed on August 22, 2010 in the discussion string "Cannot import CR2".  I have not been able to resolve the issue of importing an image into an existing folder location.  I had not been able to work on this issue for a number of weeks due to other circumstances, until today.   Note that the following people had attempted to provide answers and suggestions already:  ssprengel, JayS In CT.
    I use a laptop with a Windows operating system and a Macintosh desktop with Snow Leopard.  I run Lightroom on both of them.  The Windows laptop has Windows Vista Home service pack 2, version 6.0 [6002].  Around August 12th I upgraded from Lightroom 2 [481478], to Lightroom 3 on the laptop.  I left the LR2 on the laptop as well as LR3.  On September 12th I upgraded the laptop to LR3.2.  No other changes have been to the laptop or its software applications that I know of.
    My current attempts at resolving the issue reveal that when I created a new catalog "Test Catalog" in LR3 and saved that catalog to my desktop new folder labeled "Test Catalog" that I can import an image into LR3.2 to a new folder on the laptop's desktop.  I then deleted the images via LR3.2 Folders Remove function and tried to import the images into an existing folder as presented in the LR3.2 Import dialog, but get the error message "The following files were not imported because they could not be read.".   When I import images into a new folder placed on the desktop, I can use all functions in LR3 e.g. Develop module.  I cannot import images into existing folders on the laptop's hard drive - I have tried importing into the entire existing folders in the following hierarchy:  c:\users\Michael\My Documents\My Pictures\2010  but always get the same error message.
    LR3.2 does correctly backups upon exiting each time I quit the program, so I know that there isn't any issue of writing to that backup folder which is contained in an upper folder that contains the lightroom catalogs.  I have even created a new Word file, saved it into the folder with Lightroom catalogs, opened it up, modified it, saved it, and saw that it works OK, so that tells me there is no problem with a Read-Only folder attribute.
    I cannot recall if upon the upgrade from LR2.6 to LR3 that I chose to upgrade the catalog to LR3 version.  Would that matter, if yes, what do I verify, how do I manual upgrade the catalog.
    History of actions between August 10th that I have taken follows between the [[[[ and ]]]]:  
    [[[[Preference settings for Default Catalog are set to start with a specific catalog that I call "Lightroom master catalog", it is not set to the "Load most recent catalog". 
    All of the following were using my laptop:  Previously I had no problem with LR2 for any functions.  I just purchased an Epson 7000 media storage device, and in early August and practiced importing images into LR2, and those images were pulled in OK. Next, I upgraded to LR3.  I discovered that the Epson's images had been placed into a wrong folder when I opened LR3.  I used the remapping function in LR3 to move the images into the correct folder.  Next, I used a SanDisk card reader to import images into LR3 into an existing folder of images, but the following error message appeared "the following files were not imported because they could not be read" (Import Results said  'some import operations were not performed').  I tried importing a single image, and multiple images, but had the same error.  I tried switching the card reader to each of 4 different USB port on the laptop, with the same error occurring on each USB port used.
    In order to try to isolate the problem.  I took the SanDisk card reader with the memory card and successfully imported the images into LR3 on my Macintosh desktop computer; so to me the problem is not the card reader or the memory card.  I also used the SanDisk recovery disk while using my laptop to look at the files on the memory card and I could see all the images correctly while in the recovery program, but I have not copied the images to the laptop's hard disk, and have not tried an import into the laptop's LR3.  I did not import images directly from my camera to the laptop LR3 since I did not think it would help with the troubleshooting. 
    I then ran the Repair from the Adobe LR3 CD upgrade disk, on my laptop.  Then I tried doing the import using the SanDisk reader and memory card, but the same problem occurred and same error message, that the files could not be imported (I was trying to import into a folder of existing images).  I then used the Laptop's Control Panel function to remove LR3 application.  Then I did a fresh upgrade of LR3 on my laptop, but the same error message and I am unable to do any import of the memory card from the card reader.  I then tried to do an image import from the Epson 7000 into the laptop, and the same error message and I am unable to do any import into a folder with existing images.   I then tried doing an image import into LR2 on the laptop, and got the same problem to occur when trying to import into an existing folder of images.  I have a couple of  Canon EOS SLR digital cameras, and the issue occurs for any of the file types of the cameras.
    Went into LR3 Preferences, General Tab, I now checked the previously unchecked box for Import Options - "Show import dialog when a memory card is detected".
    Connected the Canon XTi directly with a cable to the laptop computer.  Note that Canon's information said that Picture Transfer Protocol is automatically used when the XTi is directly connected to a computer, so I did not need to change anything in the camera's menu for communications choices (there is no communication menu in fact).  I selected one image and copied it to the laptop desktop.  Tried to import it into LR3 into a folder of existing images but got the error message "Could not copy a file to the requested location."  While in LR3, I changed the location of where the file would be copied into - any of my existing folders of images; tried 5 different folders, but kept getting the same error message.
    With the card reader connected via USB port on the laptop, I copied one image file to the desktop, and then tried importing into LR3 into a folder of existing images.  Got the error message "Could not copy a file to the requested location."]]]]

    I am not clear if by 'import' you are trying to copy or move the files from a location to another or if you are adding the files to a catalog.  My comments may not, therefore, be too helpful.
    Firstly, with both LR2 and LR3 installed you will have both catalogs present, but if you try to open the LR2 catalog with LR3 you will be prompted to update the catalog.  You will thus know which catalog you are working on. 
    Secondly, if you are reading direct from the camera, you should connect using the 'PC connection' mode.
    Thirdly, there is an issue with reading .CR2 files directly from the early Canon DSLRs (in Europe named 300D, 350D, 400D).  While they are visible with the Canon software, they can not be seen with Windows explorer nor can they be accessed with Lightroom. 
    I suggest that you take the CF card out of the camera and copy the files using Windows Explorer in to the destination folder.  You are then sure that the files are on the PC.
    If you have the right Codec installed, you can view them with Windows photo gallery; if you don't, you can use one of the Canon software packages to view the files.  You are then sure that the files are not corrupted.
    Then import the files to your LR catalog using the normal import routine selecting 'add without moving'.  I have tried this routine  successfully using my 350D using both LR1.x and LR3.x.  If that doesn't work - I'm lost.
    Frank

  • On windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    on windows 8 and itunes I have importing problems the DVD is only reading the music cd from 1.5x to 4.0x for 95% of the time, it does hit speeds of 30x for the other 5% of the time. Is it a driver issue with the DVD or is it  a windows 8 issue?

    No. You have no alternative but to plug it into a computer running iTunes and restore it.

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • Final Cut Pro/GY-HD111E import problems?

    Final Cut Pro/GY-HD111E import problems?
    With a brand new Mac Pro and very latest Final Cut Studio complete with updates I'm having a little problem trying to import footage directly from a JVC GY-HD111E (yes I'm in PAL land, UK) via FireWire into FCP.
    Footage is 720p/25p and timeline is set up in FCP that way.
    I'm doing a 'capture now'. The first clip I'm trying to import is about 45 minutes long with no cuts/breaks whatsoever.
    What happens is after about 60 seconds or so, it FCP automatically breaks the clip for no reason and starts a new one, trouble is, when it does this I lose about 4 seconds of footage at that point.
    It continues to break clips randomly, sometimes after 40 seconds or so, sometimes after 95 seconds, but usually between 30 seconds and 2 minutes and each time it starts a new clip I lose between 1 and 6 seconds.
    As I say, there are zero breaks or cuts in this clip, I have a 45 minute clip that was shot in one take, not even a pause anywhere.
    Is this a JVC issue or a Final Cut issue?
    It's a pain as it simply means I can't import my 9 hours of footage hence I can't get on with this project.
    Any ideas why this phenomenon is happening?
    Thanks guys.

    I mean I get the same errors.
    Let me explain again.
    There are NO start/stop/pauses in this clip.
    I'm trying to import just ONE clip with no breaks, again, there are NO start/stop/pause, it is one continuous clip of 15 minutes duration.
    The JVC creates some sort of errors at the Firewire output stage, it drops frames or other errors, FCP gets confused and creates a new clip, even though it is the same clip, but due to the GoP structure, it looses a few seconds too hence I can't import the footage as I keep loosing bits here and there mid clip. It is randam, every 30 to 100 seconds or so it will do this.

  • JAVA Importer: ORA-105100 can't start the java virtual machine

    Hi,
    i am having trouble to make a work interaction between forms and java.
    My PL/SQL code is calling a java code situated in an imported class.
    the error i get says : can't start the java virtual machine
    I modified the CLASSPATH to add some jar files.
    What else should i do ?
    should i modify LIBPATH ?
    any idea ?
    Thanks
    Dan

    i just found this documentation Oracle Forms Developer and Forms Server 6i (Patch 4) at this adress
    http://download.oracle.com/otn_hosted_doc/forms/forms/p4_relnotef.pdf
    which says that i need jdk 1.2.2 to make it work but the documentation was published in 2001...
    Is there an earlier doc ? or an earlier doc of the java importer ?
    http://www.oracle.com/technology/products/forms/pdf/javaimporter.pdf
    any help would be appreciated

  • Java Session problem while sending mail(using javamail) using Pl/SQL

    Hello ...
    i am using Java stored procedure to send mail. but i'm getting java session problem. means only once i can execute that procedure
    pls any help.

    props.put("smtp.gmail.com",host);I doubt javamail recognizes the 'smtp.gmail.com' property. I think it expects 'mail.host'. Of course since it cannot find a specified howt it assumes by default localhost
    Please format your code when you post the next time, there is a nice 'code' button above the post area.
    Mike

  • Java Programming Problem

    Hi all,
    I was looking for this java programming problem which had to do with a large building and there was some gallons of water involved in it too somehow and we had to figure out the height of the buiding using java. This problem is also in one of the java books and I really need to find out all details about this problem and the solution. NEED HELP!!
    Thanks
    mac

    Yes, it will. The water will drain from the bottom of
    the tank until the pressure from the water inside the
    tank equals the pressure from the pipe. In other
    words, without a pump, the water will drain out until
    there is the same amount of water in the tank as in
    the pipe The water pressure depends on the depth of the water, not the volume. So once the depth of the water inside the pipe reaches the same depth as the water inside the tank it will stop flowing. This will never be above the height of the tank.
    I found this applet which demonstrates our problem. If you run it you can drag the guy up to the top, when water in his hose reaches the level of the water in the tank it will stop flowing out.

Maybe you are looking for

  • Install not working (ver 10.1, firefox, Win7 64)

    Kept downloading and running updater, as admin, no antivirus, on my new 64bit Win7 laptop. Installer always reports success, but the Player remains at ver 10.0. Eventually downloaded Adobe's uninstaller, ran it, it removed ver 10.0. Rebooted. Ran ins

  • Reg:document error

    Hi when i try to add A/R down payment invoice error occured: Duty status'with payment of duty' is not allowed for CENVAT tax code in down payment requests and invoices A R Down payment duty status message 140080010 40.  pls help me out. regards raj

  • Change text field based on dropdown

    Hello, I'm new to LiveCycle and am having trouble getting a textfield to change when I select different options in a drop-down menu.  I used the following script (tried using exit and calculate events also): Still not working.  What am I doing wrong?

  • Can i use it at away from home

    can we use apple tv away from home

  • I can not open my iPhoto it says it is either used by another applcation or has become unread be

    I can not open my Iphoto library it says it is either used by another application or has become unreadabe. I shut down and restart an then open Iphoto again but nothing is their.