Java.lang.NoClassDefFound Error!!!!!!!!!!!!!!!

Path and classpath are fine, code complies but keep getting
above error message. Oracle db is version is 8.0.5, have tried
both the OCI and thin JDBC drivers (jdbc80520-nt.zip).
The URL I am using is "jdbc:oracle:oci8:@bromit.kb.com:1521:dgl3"
Thanks,
Colman
null

Colman Glynn (guest) wrote:
: Path and classpath are fine, code complies but keep getting
: above error message. Oracle db is version is 8.0.5, have tried
: both the OCI and thin JDBC drivers (jdbc80520-nt.zip).
: The URL I am using is
"jdbc:oracle:oci8:@bromit.kb.com:1521:dgl3"
: Thanks,
: Colman
your connection string appears to be a mixture of the "thin" and
"oci8"
use either
1) "thin" in place of "oci8"
or
2) for "oci8" insert a tnsname entry to replace the following
"bromit.kb.com:1521:dgl3"
i hope this helps ...
null

Similar Messages

  • "Exception in thread "main" java.lang.NoClassDefFound Error" in XP

    I was creating programs just fine for awhile. Then, for some unknown reason, I start getting the runtime error message, "Exception in thread "main" java.lang.NoClassDefFound Error." I set my PATH in the following manner:
    Start | Control Panel | Performance and Maintenance | System | Advanced | Environment Variables | Use Variables for Owner | PATH | Edit | C:\j2sdk1.4.2_04;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\jre\bin | Ok | Ok | Ok
    I then closed the dialog boxes and restarted my computer. I then tried to run a program that ran before, only to get the same runtime error! Can someone please help me???

    NoClassDefFoundError happens because the JVM cannot find some class from your program, not because the OS cannot find your JVM (PATH regulates the latter, but not the former). JVM looks up classes in directories (or JAR files) specified through the -classpath option, like "java -classpath c:\myclasses MyMainClass". Read the online doc for the "java" launcher for more info.

  • Error:"exception in thread main:java.lang.noclassdeffound error.

    Hi,
    I am new to this java tech and programming. I just started learning and installed j2sdk1.4.0_03. I wrote a small hello world program and compiled it without any errors. When I execute the same using java hello command, I am getting an error like this: exception in thread "main" java.lang.noclassdeffound error. I am not able to resolve this issue. Please let me know the sol.
    thanks
    venkatraman

    send the program u have typedUmm... Why?
    Anyway @NovaKane: Welcome. Together with seifist and sunny we have at
    least three new posters who show enough intelligence to find chuck's
    solution (or one of the many hundreds of others like it) and the politeness
    to thank him for it. What's the forum coming to?
    If you need it there is a description of the classpath here:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
    Again, welcome. And thanks for raising the intelligence level (and politeness
    quotient) of the fora.

  • Java.lang.NoClassDefFound Error:msgsend

    Hi,
    I am trying to run my first Java Mail program, sending mail.
    I had compiled the source - no Errors.
    Now, when i try to execute it says
    Exception in thread 'main' java.lang.NoClassDefFound Error:
    I have download the JavaMail and JAF and has put the files under proper dir and verified the class variable. I am using Jdk1.3.

    The reason of this run time error is : Java is not able to locate main method of specified class File. or class file itself is not locatable.
    Check :
    1. Either u are not in same folder where ur class file is.
    2. or If u are running from some other directory, ur class file path is not in CLASSPATH.
    3.or There will be some mistake in definition of main method.
    Bye,
    Shaan

  • App world is showing this error "Uncaught exception: java.lang.NoClassDefFound Error"

    Few days back I received some App world updates through wireless network. After installing those updates and restarting mobile when I clicked on App world icon following error is being displayed "Uncaught exception: java.lang.NoClassDefFound Error". In fact I can't enter into appworld.
    Please suggest remedy
    Regards,
    Hitendra SIngh

    Hello hitmech07,
    Go to www.blackberry.com/appworld on your BlackBerry smartphone browser and attempt to reinstall the appliction.
    Cheers,
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • Epa2sda  java.lang.NoClassDefFound error..?

    hi,
    <b>I am using nwds 7.0.0 and ep 7 and j2sdk1.4.2_07</b>
    I have set all the class path variable as per the blog -
    https://service.sap.com/sap/support/notes/696084.
    but when i am writing the command to convert epa file to sda-
    "epa2sda ab.epa abc.sda"
    it gives  <b>Exception in thread "main"java.lang.NoClassDefFound error:</b> org/apache/tools/ant/main.
    what should i do to convert the epa file into sda file.

    hi Harini,
    my ndwd version is "7.0.0"
    This is the "sapmake.bat" file which i have been using.(giving error)
    <------->
    echo off
    setlocal
    if "%JAVA_HOME%" == "" goto nojavahome
    if "%SAPIDE_HOME%" == "" goto nosapidehome
    goto start
    :nojavahome
    echo JAVA_HOME environment variable is not set
    goto end
    :nosapidehome
    echo SAPIDE_HOME environment variable is not set
    goto end
    :start
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\org.apache.ant_1.5.3\ant.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\org.apache.ant_1.5.3\optional.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.tssap.sap.libs.logging\lib\logging.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\SLUtil.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\SDMutil.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\jar4sap.jar;%ANTCLASSPATH%
    if exist "%JAVA_HOME%\lib\tools.jar" set ANTCLASSPATH=%JAVA_HOME%\lib\tools.jar;%ANTCLASSPATH%
    %JAVA_HOME%\bin\java.exe -classpath "%ANTCLASSPATH%" org.apache.tools.ant.Main -Dsapmake.home="%SAPIDE_HOME%/sapmake_util" -Dbasedir="." -buildfile "%SAPIDE_HOME%/sapmake_util/build.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
    :end
    set ANTCLASSPATH=
    <----
    >

  • Could not find the main class. & java.lang.NoClassDefFound error:

    sir / madam
    I am facing problems with j2ksdk1.4.0 beta instalation on my windows 2000 advance server.
    while installing pops up a message saying could not find the main class.
    while using java or javac it says
    Exception in thread main
    java.lang.NoClassDefFound error:
    com/sun/tools/javac/main
    even when double clicking java plugin from the control panel
    I get the Java virtual machine launcher saying could not find the main class.
    I don't have any other java sdk installed.
    And i have my environment variables (classpath, path and java_home) set correctly.
    this same j2sdk1.4.0 version is installed in the windows 98 system and it's working fine.
    Kindly do help me to solve this problem.
    eagerly awaiting for your response.
    Thanking you
    Sajeev Nair
    [email protected]

    you must check with the classpath
    please see that you have not repeated %classpath%
    at the end of the class path like you do in win98.
    similiarly with %path%
    in win2000 it is automatically taken care off.

  • Java.lang.noclassdeffound error when installing oracle BI EE 10g

    Hello,
    I am trying to install Oracle BI EE 10g and I am getting an error "java.lang.noclassdeffound in thread main" The install shield closes on clicking OK on the error message box.
    I have installed JDK1.6.
    Please help.
    Thanks,
    Krishna.

    Have you actually started the OC4J? Test that your webservice is running by access the root home page.

  • URI:/OA_HTML/AppsLocalLogin.jsp Exception java.lang.NoclassDefFound error

    Hi,
    Users are getting Request URI:/OA_HTML/AppsLocalLogin.jsp Exception java.lang.NoclassDefFoundError error, when they are trying to login to EBS,
    They cleared Cache at browser level and Cleared Cache Jinitiator, Do i need to check anything else
    EBS version is : 11i.
    OS : Linux

    Sawwan,
    We have not made changes .
    client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
    [Mon Jan 18 14:38:45 2010] [error] client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
    [Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
    [Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
    [[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
    Edited by: HumanDBA on Jan 18, 2010 11:48 AM

  • Java.lang.NoClassDefFound Error while invoking dbua(9.2.0.8)on Sun Solaris.

    Hi Friends,
    I had installed Oracle 9.2.0.1(software alone) on Sun solaris box and then i installed the patchset 9.2.0.8 on the same Oracle 9i Home.It's installed.
    But when i try to run dbca to cretae a database from $ORACLE_HOME/bin it throws the error:
    java.lang.NoClassDefFoundError
    i had set the PATH,ORACLE_SID,ORACLE_HOME,LD_LIBRARY_PATH but still getting the error.
    Please suggest a fix.
    Regrads,
    Arun

    Do you have JAVA_HOME set in your environment?
    What's the result of
    env
    Make sure DBCA is calling the java under $ORACLE_HOME not from other installation.

  • Problems with java.lang.NoClassDefFound error *solved*

    realising my stupidity I have solved the problem
    I am quite new to java and I have been using the Java for Dummies book to help me to learn it. I decided to use the command line tools instead of an IDE and hadn't encountered any problems until recently. I took a break from learning Java after reaching the end of the book but have decided to come back to it. The problem now is that when I run my programs I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPriviledged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.localClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    This occurs from a simple hello world program:
    class HelloWorld
       public static void main(String[] args)
          System.out.println("Hello, World!");
    }I have no idea what the problem is, although by looking at similar threads it would appear that it may be something to do with the classpath variables however I do not know much about this as I followed a tutorial on the internet to set the classpath up.
    Edited by: this_is_phil on Jun 19, 2008 11:11 AM

    this_is_phil wrote:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)This part of the error message means you typed in "helloworld" but the class that java found was named HelloWorld. In Java, those are different - java is case sensitive. It will work if you enter HelloWorld.

  • App World Java.lang.NoClassDefFound Error

    Hi Everyone,
    Lately i have downloaded updates for App Wolrd. After reboot, the arror Uncaught exception: java.lang.NoClassFoundError appear and i could not porceed. How could i get rid of this message.
    Using Bold 9700.
    Please help.
    This problem has been posted and please ignore it.

    Hey All.
    We are investigating this error and there is no estimated time when it will be resolved.
    I will provide an update once I have one 
    www.blackberry.com/btsc/KB29364 - Article relating to the issue.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Data Warehouse:java.lang.NoClassDefFound Error while using OWB API for Java

    I was writing code to use the OWB APIs for Java:
    I have imported the folowing files:
    oracle.owb.connection.RepositoryManager;
    oracle.owb.connection.OWBConnection;
    oracle.owb.connection.ConnectionFailureException;
    when jvm tries to get instance of Repositary Manger by the following code
    reposManager = RepositoryManager.getInstance();
    I get the following exception:
    Exception in thread main
    java.lang.NoClassDefFoundError: com/objectspace/jgl/HashMap
    I have checked my OWB and Java environment but I cant locate com/objectspace/jgl.jar file. Can some one tell me were this jar is located in so i can import it.

    Either use some criteria you develop related to one of the keys on the table or use some sort of record limiting method.
    Note the method of limiting will vary related to the database you are using. You will have to look at the documentation.
    For example I am told this will work in MySQL to get 200 records starting at record 100.
    SELECT * FROM myTable ORDER BY whatever ASC LIMIT 100,200
    Because you are running out of memroy I assume the table is large,
    I am not sure what the impact of the above will have on performance because if in the above if the order by is not based on an index at the server level all the records will be selected and sorted before the records are limited.
    I would make sure you have an appropriate index.
    If you use the advanced search over the user forums using "resultset paging" and possibility the database you are using you should be able to get some ideas.
    I hope this makes sense to you.
    rykk

  • Java.lang.NoClassDefFound Error while using OWB API for Java

    I was writing code to use the OWB APIs for Java:
    I have imported the folowing files:
    oracle.owb.connection.RepositoryManager;
    oracle.owb.connection.OWBConnection;
    oracle.owb.connection.ConnectionFailureException;
    when jvm tries to get instance of Repositary Manger by the following code
    reposManager = RepositoryManager.getInstance();
    I get the following exception:
    Exception in thread main
    java.lang.NoClassDefFoundError: com/objectspace/jgl/HashMap
    I have checked my OWB and Java environment but I cant locate com/objectspace/jgl.jar file. Can some one tell me were this jar is located in so i can import it.

    Do you have JAVA_HOME set in your environment?
    What's the result of
    env
    Make sure DBCA is calling the java under $ORACLE_HOME not from other installation.

  • Newbie - java.lang.NoClassDefFound Error

    I installed the JDK on my system (I'm running Windows ME). I typed in a simple "Hello World" program directly from a book. I used the Jikes compiler to compile it and then tried to run it. I got no errors from Jikes, but when I ran it, I got "NoClassDefFoundError". I'm guessing I don't have something set up properly, but I don't know what. I added the c:\java\bin directory to the PATH variable and the path to the RT.JAR file to the CLASSPATH variable. I am changing the PATH and CLASSPATH variables in a separate batch file that I execute when I want to work with Java. What am I missing?

    This question has been asked here millions of times before....
    Firstly, do not add rt.jar to your CLASSPATH. This is not necessary for JDK 1.2 or newer. Go to the directory that contains your class file and type:
    java -classpath . HelloWorld
    Note that the classname is case sensitive, so don't type "helloworld" or "Helloworld" or whatever. Also don't type ".class" behind the name.
    Read this:
    Setting the class path
    http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
    Installation notes
    http://java.sun.com/j2se/1.4/install-windows.html
    JavaTM 2 SDK Tools and Utilities
    http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
    Jesper

Maybe you are looking for

  • Can I run a DVD through my macbook pro and stream to the apple tv?

    Can I run a DVD through my MacBook Pro and steam to the apple tv?

  • Change Vendor Email Address

    Hi,   I need to change the vendor email address, i found the table adr6 and i can join the table LFA1 with the Address number, but i don´t think that this the way to do it. Can someone have a function module to change the email address in massive way

  • Nx8500gt mtd256eh spdif connection

    Hi, I installed my card today HDMI looks good!! The problem is with the audio. I have an Asus M2NPV-VM mobo, it has three pins on the SPDIF socket (+5v, SPDIF_OUT and GRN). I Connected the red lead to SPDIF_OUT and the black to GRN but didn't get any

  • Service ORG determination based on partner function

    Hi Pls let me know - How to tell from the config which partner function from a transaction say case or complaint, is being used to determine the service ORG unit at the header level of the transaction? Also Suppose I have 2 partner functions 1. A - s

  • Application level logging in OC4J_SECURITY

    Hi, Runing Oracle App Server 10.1.4. Attempting to debug some application issues with a custom login jsp app deployed to our sso home's OC4J_SECURITY container. I am not finding expected error stacks from my app or system.out messages in the plethora