NoClassDefFoundError: oracle/sql/OPAQUE

I've got some configuration problem with the XSU utility. It runs the getXML with all these settings fine. But when I run the putXML I get this result:
C:\Documents and Settings\kstclair>java OracleXML putXML -user "jandj/xprojxabc" -conn "jdbc:oracle:thin:@10.1.10.11:1521:UNIT1" -fileName "/testXML/transformed.goodusers.xml" user_data
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/OPAQUE
at OracleXML.Put_XML(OracleXML.java:444)
at OracleXML.ExecutePutXML(OracleXML.java:397)
at OracleXML.main(OracleXML.java:181)
Anybody seen this and know what it means? I've looked in most of the jars and can't even find this package sequence.

Oops. I don't know if I missed in the doco, or if it's not there. If you use Oracle 8.1.7, then don't use the xsu12.jar. It will seem to work, and will even respond to getXML commands. But apparently you need to use the xsu12_817.jar instead. Most of the doco and examples are written for 9i users, so this point gets missed.

Similar Messages

  • Oracle.sql.Opaque

    Hi, I am using the JDBC drivers for Oracle 8.1.7 (classes12.zip ( 1,892 kB)) and when i am trying to generate xml using XDK (xdk_java_9_2_0_5_0.zip). If i use methods like insertXML or OracleXMLSave it throws me an exception: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/OPAQUE.
    Then I use the driver for 9i (classes12.zip (1,143,559 bytes)) and it works fine, but I want to know what am I doing wrong, because my base document is Oracle 8i Application Developer’s Guide - XML. And I think these drivers have to work.
    Another issue, thinking about performance and throughput, what driver should i use if my bd is 8.1.7, is it better to work with the specific version or the lastest?
    Thanks

    I believe the 9.2 XDK requires the use of the 9.2 JDBC drivers.
    In general, later versions of the JDBC driver will work with older versions of the database, but not vice versa. The 8.1.7 JDBC drivers won't necessarily work with a 9.2 database, but the 9.2 JDBC drivers will work with an 8.1.7 database.
    Justin

  • Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType

    I have the following code written in java in a unix box and this is the error I get when compiling the code. I am not able to find which specific jar or class file I need, Kindly help.
    XMLHelper.java:0: Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType.
    ^
    1 error
    OracleResultSet orst = .... some code to get data
    orst.next();
    //either of the following 2 lines give the same error
    //XMLType dXml = XMLType.createXML(orst.getOPAQUE(1)) ;
    XMLType dXml = (XMLType)orst.getObject(i);
    xmlDoc = dXml.getDOM();
    Please help

    Hello,
    from the little information in your post i would say try to import oracle.sql.*, oracle.jdbc.* and oracle.xdb.*. Make sure your project can access the following libraries ojdbc14.jar and xdb.jar.
    Regards, Marc

  • Tomcat: java.lang.NoClassDefFoundError: oracle/sql/NUMBER

    hi,
    i have managed to come this far with my "simple" webapplication under tomcat.
    the exception is:
    java.lang.NoClassDefFoundError: oracle/sql/NUMBER
    since i have tried to put the classes12.jar in every reasonable directory without effect, i have to bother this forum. does anyone know "where the dog is burried"(german saying)?
    greetz
    Selim Keser

    Hi yves,
    This class is in the jdev_home/jdbc.lib/ojdbc14.jar.
    But prior to deploying your ADF application, did you install the ADF runtime libraries to Tomact as explained here?:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=j2ee_ptomcatdeploy_html
    Thanks
    Prasanth

  • Abot oracle.sql.opaque exception

    Wheen I run a program which is retreiving xmltype data from databse using a application then it works fine. But If I use jsp for same a deploy it on OC4jJ server it fgives exception at this line
    xml = (XMLType)resultSet.getObject(1);
    Excpeuin is ClassCasrtException: oracle.sql.OPAQUE
    Please expalon. Methis is given below it works fine with application
    public Vector doSelect (String keywords[]) throws Exception
    //System.out.println("++++ Start of doSelect() method ++++");
    // String SQLTEXT="SELECT extract(warehouse_spec,'/"+ str + "') as XMLDocument FROM WAREHOUSES";
    /* select extract (value(t),'/VideoSubIndex')
    * from mastersvideo x,TABLE (xmlsequence (
    * extract (x.vindex,'/VideoIndexes/VideoSubIndex'))) t
    * where existnode(value(t),'/VideoSubIndex[Transcription="So basically"]')=1
    // String SQLTEXT="SELECT extract(x.vindex,'/VideoIndexes/VideoSubIndex/Transcription') as XMLDocument FROM mastersvideo x"+
    // " where existsnode(x.vindex,'/VideoIndexes/VideoSubIndex[Transcription=\"So basically\"]')=1";
    String SQLTEXT="select extract (value(t),'/VideoSubIndex') from mastersvideo x,TABLE (xmlsequence (extract (x.vindex,'/VideoIndexes/VideoSubIndex'))) t where existsnode(value(t),'/VideoSubIndex[Transcription=\"So basically\"]')=1";
    // String SQLTEXT="select extract (value(t),'/VideoSubIndex') from mastersvideo x,TABLE (xmlsequence (extract (x.vindex,'/VideoIndexes/VideoSubIndex'))) t where existsnode(value(t),'/VideoSubIndex[ora:contains(Transcription,\"way\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1";
    //keywords="sql";
    //description="basically";
    for(int i=0;i<keywords.length;i++)
    System.out.println("KeyWords Received"+keywords);
    String SQLTEXT=null;
    if (keywords.length>0)
    SQLTEXT="select extract (value(t),'/VideoSubIndex') from mastersvideo x,TABLE (xmlsequence (extract (x.vindex,'/VideoIndexes/VideoSubIndex'))) t where existsnode(value(t),'/VideoSubIndex[ora:contains(@KeyTerm,\""+keywords[0]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1"+
    " OR existsnode(value(t),'/VideoSubIndex[ora:contains(Transcription,\""+keywords[0]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1";
    for(int i=1;i<keywords.length;i++)
    System.out.println("Value of i "+i+" And Value Here"+keywords[i]);
    SQLTEXT+=" OR existsnode(value(t),'/VideoSubIndex[ora:contains(@KeyTerm,\""+keywords[i]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1"+
    " OR existsnode(value(t),'/VideoSubIndex[ora:contains(Transcription,\""+keywords[i]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1";
    // SQLTEXT+=
    // Running Query
    // String SQLTEXT="select extract (value(t),'/VideoSubIndex') from mastersvideo x,TABLE (xmlsequence (extract (x.vindex,'/VideoIndexes/VideoSubIndex'))) t where existsnode(value(t),'/VideoSubIndex[ora:contains(@KeyTerm,\""+keywords[0]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1"+
    // " OR existsnode(value(t),'/VideoSubIndex[ora:contains(Transcription,\""+keywords[0]+"\")>0]','xmlns:ora=\"http://xmlns.oracle.com/xdb\"')=1";
    //System.out.println(SQLTEXT);
    OraclePreparedStatement sqlStatement = null;
    //OracleResultSet resultSet = null;
    ResultSet resultSet = null;
    oracle.xdb.XMLType xml = null;
    try
    System.out.println("SQL := " + SQLTEXT);
    sqlStatement = (OraclePreparedStatement) getConnection("scott","tiger").prepareStatement(SQLTEXT);
    System.out.println("+++++ OraclePreparedStatement created +++++");
    // resultSet = (OracleResultSet) sqlStatement.executeQuery();
    resultSet = sqlStatement.executeQuery();
    System.out.println("***** Query Executed *****");
    // return resultSet;
    Vector resVector=new Vector();
    while(resultSet.next())
    System.out.println("Hello Miss World");
    xml = (XMLType)resultSet.getObject(1);
    //System.out.println("Hello World");
    resVector.add(xml);
    // xml.get
    System.out.println(xml.getStringVal());
    //System.out.println("Hello Miss World");
    System.out.println("Vector size is "+resVector.size());
    return resVector;
    catch(NullPointerException npe)
    catch (SQLException SQLe)
    if (sqlStatement != null)
    sqlStatement.close();
    throw SQLe;
    /*if(resultSet!=null)
    resultSet.close();
    System.out.println("**** Resultset closed ****");
    if(sqlStatement!=null)
    sqlStatement.close();
    System.out.println("**** Resultset closed ****");
    System.out.println("### Returning Vector ###");
    return null;
    } // End of Function doSelect()

    I believe the 9.2 XDK requires the use of the 9.2 JDBC drivers.
    In general, later versions of the JDBC driver will work with older versions of the database, but not vice versa. The 8.1.7 JDBC drivers won't necessarily work with a 9.2 database, but the 9.2 JDBC drivers will work with an 8.1.7 database.
    Justin

  • Java.lang.NoClassDefFoundError: oracle/sql/STRUCT after 11g/GF3.1.2 upgrade

    We have recently upgraded all of our servers from:
    Java 1.6.31 to 1.6.32
    and
    Glassfish 3.1.1 to 3.1.2
    We upgraded our development server from Oracle 10g to 11g.
    Our live servers are working fine. Our development server now is spewing out a java.lang.NoClassDefFoundError: oracle/sql/STRUCT error whenever it encounters a servlet or page which uses this class.
    ojdbc14.jar and sdopai.jar were included within the WAR file, and I have tried with them excluded from the WAR file to no avail. We have tried reverting the version of ojdbc.jar on the server to the earlier version, this has made no different.
    Any ideas? The full stack trace is below:
    [#|2012-05-28T16:15:34.950+0100|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=80;_ThreadName=Thread-2;|StandardWrapperValve[EnterDataSS]: PWC1406: Servlet.service() for servlet EnterDataSS threw exception
    java.lang.NoClassDefFoundError: oracle/sql/STRUCT
    at oracle.spatial.geometry.JGeometry.load(JGeometry.java:3097)
    at Bto.Location.LocatorUtils.JavaScriptifySDO(LocatorUtils.java:97)
    at Bto.Chats.Controllers.EnterDataModuleMain.<init>(EnterDataModuleMain.java:136)
    at Bto.Chats.SessionBean.initialiseEdm2(SessionBean.java:348)
    at Bto.Chats.Servlets.Enter.EnterDataSS.processRequest(EnterDataSS.java:36)
    at Bto.Chats.Servlets.ChatsServlet.doGet(ChatsServlet.java:90)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
    at com.sun.grizzly.http.ajp.AjpProcessorTask.invokeAdapter(AjpProcessorTask.java:135)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: oracle.sql.STRUCT
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 33 more
    |#]

    >
    Our live servers are working fine. Our development server now is spewing out a java.lang.NoClassDefFoundError: oracle/sql/STRUCT error whenever it encounters a servlet or page which uses this class.
    ojdbc14.jar and sdopai.jar were included within the WAR file, and I have tried with them excluded from the WAR file to no avail. We have tried reverting the version of ojdbc.jar on the server to the earlier version, this has made no different.
    >
    If your code can't find the class then you have the classic NoClassDefFoundError problem you get when any other referenced class can't be located.
    The oracle/sql/STRUCT class is in the ojdbc14.jar, ojdbc5.jar and ojdbc6.jar so if it can't be found then that class is missing from the jar you are using (which you can tell by examining the jar contents) or the jar is missing from the classpath being used.
    As already mentioned you need the Oracle 11 JDBC files to support Java 1.6
    Here is the official Oracle JDBC page that shows the Oracle DB versions supported for each of the JDBC drivers available and also describes the JDBC jars and what JDK versions they support.
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_01
    >
    Which JDBC drivers support which versions of Javasoft's JDK?
    pre-8i OCI and THIN Drivers - JDK 1.0.x and JDK 1.1.x
    8.1.5 OCI and THIN Drivers - JDK 1.0.x and JDK 1.1.x
    8.1.6SDK THIN Driver - JDK 1.1.x and JDK 1.2.x (aka Java2)
    8.1.6SDK OCI Driver - Only JDK 1.1.x
    8.1.6 OCI and THIN Driver - JDK 1.1.x and JDK 1.2.x
    8.1.7 OCI and THIN Driver - JDK 1.1.x and JDK 1.2.x
    9.0.1 OCI and THIN Driver - JDK 1.1.x, JDK 1.2.x and JDK 1.3.x
    9.2.0 OCI and THIN Driver - JDK 1.1.x, JDK 1.2.x, JDK 1.3.x, and JDK 1.4.x
    10.1.0 OCI and THIN Driver - JDK 1.2.x, JDK 1.3.x, and JDK 1.4.x
    10.2.0 OCI and THIN Driver - JDK 1.2.x, JDK 1.3.x, JDK 1.4.x, and JDK 5.0.x
    11.1.0 OCI and THIN Driver - JDK 1.5.x and JDK 1.6.x
    11.2.0 OCI and THIN Driver - JDK 1.5.x and JDK 1.6.x
    Please note that JDK 1.4 is not supported by the 11 drivers.

  • Java.lang.NoClassDefFoundError: oracle/sql/CharacterSet

    Okay, I give!
    I keep getting this runtime error when running this program I wrote.
    the oracle directory (where all the classes are stored) resides in the directory where my Class files live. I even added: ./
    to my classpath, but that didn't help at all.
    I navigated to: oracle/sql and did find CharacterSet.class
    What's even stranger is that I developed this application on a Sun/Solaris machine using Java 1.2.2 then I deployed it on a Sun/Solaris machine with Java 1.3 (but I am not using any of JDK's 1.2 stuff... its all just plain java).
    Very strange. Any input as to what this problem may be I would appreciate some guidance.
    thank you!

    If you are using the OCI driver, you may need to include the NLS classes:
    nls_charset12.zip
    In the classpath.

  • NoClassDefFound error oracle/sql/opaque

    Hi There,
    [Using Java 1.4.2, BEA WebLogic 8.1, Oracle 9i Db]
    We're having a bit of trouble with the above error.
    In our java code, we are referencing xdb.jar and odbc14.jar but when we try to create an XMLTYPE object from an OPAQUE object we receive the NoClassDefFound error.
    Anyone with any ideas on how to get around this please?
    Many thanks,
    Neil

    Hi,
    I had the same problem...
    Put the xsu12_817.jar or xsu12_816.jar (depends on RDBMS version) in your CLASSPATH instead of xsu12.jar. (you can find xsu12_817.jar and xsu12_816.jar files in Oracle XDK).
    It should work.
    Regards
    Sash

  • Java.lang.NoClassDefFoundError: oracle/sql/Datum

    Greetings -
    When using the Oracle XML SQL Utilities is there some sort of restriction as to where the two jar files (oraclexmlsql.jar xmlparser.jar) are referenced from.
    The reason I ask is that when I deployed my servlet based application under WebSphere - I received the above class not found error and had to change my setup to specify the two jar files as part of the command line options for the WebSphere program itself.
    Now I am using JRun and have the same error - unfortunately JRun doesn't like me overriding the classpath on the command line - so I have been unable to come up with a workaround.
    I would appreciate any comments or suggestions.
    Gary Bartlett
    Emory Healthcare
    null

    Thanks - I realize that App Servers have places to specify classpaths, and JRUN uses the standard JSDK 2.2 Web Application setup with the WEB-INF directory structure. All of my other jar files are there and work fine - the problem is with the xml/sql and xmlparser jar files from Oracle - they only seem to be found when I specify them as a -cp arg to the JRun executable. Which is causing problems for JRUN. I was wondering if there was any other solution to this problem.
    Thanks - Gary

  • I need a oracle.sql.OPAQUE

    Where are thi class. ???

    It comes with the classes12.zip of Oracle client or database. The classes12.zip is present in the folder
    <oracle_home>\jdbc\lib\classes12.zip
    where <oracle_home> is the place where oracle is installed.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • Oracle/sql/Datum Class not found

    Dear All ,
    I am very new in Oracle SQL XML utility.
    I am trying to run(gx.java) the following code, I am getting the following error :
    ============
    Error:
    java.lang.NoClassDefFoundError: oracle/sql/Datum
    at oracle.xml.sql.query.OracleXMLQuery.<init>(OracleXMLQuery.java:126)
    at gx.main(gx.java:41)
    Exception in thread "main"
    =============
    Can any one help me.
    Thanks & Regards
    Subrata SEN
    Source Code:
    ============
    import java.awt.*;
    import oracle.xml.sql.query.*;
    import java.sql.*;
    import java.net.*;
    import java.awt.*;
    import connection.connect;
    public class gx
    public static void main(String args[])
    String tabName = "emp";
    String user = "scott/tiger";
    Connection conn = null;
    connect initCon = new connect();
    OracleXMLQuery qry = null;
    try
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // conn = DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
    conn = initCon.setConnection( "scott", "tiger" );
    if( conn == null )
    System.out.println( " Connection failed ........returning" );
    return;
    catch(Exception dce)
    System.out.println( " Failure : " + dce);
    try
    System.out.println( " 1." );
    qry = new OracleXMLQuery( conn, "select empno, ename from emp" );
    System.out.println( " 2." );
    qry.setMaxRows(2);
    qry.setRowsetTag( "ROOTDOC" );
    qry.setRowTag( "DBROW" );
    qry.setStyleSheet( "emp.xsl" );
    String xmlString = qry.getXMLString();
    System.out.println( "OUTPUT : \n" + xmlString );
    catch(Exception eQry)
    System.out.println( " Exception QRY : " + eQry );
    System.out.println( "Program initialized....." );
    =================

    While the XML SQL Utility does not require the Oracle JDBC driver, it must have the Oracle JDBC driver in the CLASSPATH.

  • Java.lang.NoClassDefFoundError: oracle/xml/sql/query/OracleXMLQuery

    Hello, all.
    I get this error message:
    java.lang.NoClassDefFoundError: oracle/xml/sql/query/OracleXMLQuery
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(Compiled Code) ...
    when trying to view an xsql page with the jswdk 1.0.1 web server. (I have no problems when using Web-to-go)
    Classpath includes:
    C:\jdk1.1.8\lib\classes.zip;
    C:\xsql\lib\oraclexsql.jar;
    C:\xsql\lib\xmlparserv2.jar;
    C:\xsql\lib\xsu111.jar;
    C:\xsql\lib\classes111.zip;
    C:\xsql\lib;
    What could be the problem?
    Mateja
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Only thing I can think of is that maybe your server classpath is getting too long. I recall one of the Java Web Server releases having a classpath length limit that caused strange errors like this because that .jar files you thought were on your classpath were getting their path names truncated so the Java VM cannot find the JAR's.
    Try putting xsu111.jar earlier in the list of JAR's and/or try shortening the classpath (perhaps by using SUBST'd drive letters or softlinks on Unix to shorten the path names).<HR></BLOCKQUOTE>
    Putting the xsu11.jar file towards the start of the path did not help.
    I have rewriten the entire bat file that creates the CLASSPATH and starts the server and things now seem to work. There must have been some error in the original bat file, that I just couldn't see.
    Anyway - I thank you for your help.
    null

  • Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parse

    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
    XSLException
    Hi
    I have downloaded XDK and was trying to use the XSU feature..
    I unzipped the XDK file, I ran the following query on SQL plus
    select * from emp. It displayed the full table.
    Then i set the class path for XDK,XMLparserv2,oracle JDBC driver and then ran the same query on dos prompt(that is front end command line for java in my case).
    The following is the line i tried to execute on the command prompt
    java OracleXML getXML -user "scott/tiger" -conn "jdbc:oracle:thin:@localhost
    :1521:PomonaT" "select * from emp"
    PomonaT is the db name(Host string i use to enter SQL+)
    I get the following error
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
    XSLException
    at OracleXML.To_XML(OracleXML.java:1038)
    at OracleXML.ExecuteGetXML(OracleXML.java:917)
    at OracleXML.main(OracleXML.java:184)
    IS SOMETHING MISSING IN MY CLASSPATH??
    IF YES? Could anyone tell what??
    Kunal

    Add xmlparserv2.jar to Classpath & reboot.

  • Running/Compiling *.java file in Oracle Sql Developer

    I want to compile/run java 5.0 files in Oracle sql developer1.1.2.25 on Fedora 5 platform.
    I have added javac as an enternal tool to compile java programs. Tools-->External Tools-->New
    I have also added java: /usr/java/jre1.5.0_10/bin/java as an external tool to run the complied programs
    I am able to compile the java programs, but i am not able to run them.
    I am providing ${file.name.no.ext} as an argument to java.
    Java-Log Output is:
    /usr/java/jre1.5.0_10/bin/java Writer2
    Exception in thread "main" java.lang.NoClassDefFoundError: Writer2
    However, if i run the same program in Linux terminal, i get the correct output:
    [root@localhost java]# which java
    /usr/java/jre1.5.0_10/bin/java
    [root@localhost java]# /usr/java/jre1.5.0_10/bin/java Writer2
    12
    howdy
    folks
    How can i make Oracle Sql Developer run the java program?

    I will echo the use jdev comment..
    Regardless, you may want to check the execute in directory.. or add a -cp parameter.
    Eric

  • Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoi

    I am getting the following exception described below:
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled Code)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled Code)
    at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled Code)
    at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
    at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
    at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
    at source.UserCompileASLFromPatch.getConnection(UserCompileASLFromPatch.java, Compiled Code)
    at source.UserCompileASLFromPatch.initialize(UserCompileASLFromPatch.java, Compiled Code)
    at source.UserCompileASLFromPatch.main(UserCompileASLFromPatch.java, Compiled Code)
    I am using java version "1.4.2_09" for the JDBC Connection. Is it the version problem or can be a problem specific to the code?

    hello debdatta
    The JVM is unable to find the class. Just check ur driver class whether its included in the class path.
    and its not getting the location of the file. The path where ur program is searching the class isnt there. so its the problem with ur path not the program.

Maybe you are looking for

  • My iPod touch 4th gen has the white screen of death and won't connect to iTunes to restore.

    I was updating from iOS 6 beta 1 to beta 2 when my ipod froze up and started showing the white screen of death. I've tried the trick where you hold the power and home button for ten seconds and tried to put it in DFU mode to restore. None of these tr

  • Modeling transaction data

    Hello all, I have 2 questions that I was hoping to get an answer to: Question 1: What is the normal way of modeling transaction data with a changing status in a BW system? Are there any links/threads to read? I thought that transaction  idata would g

  • [SOLVED] troubleshooting midnight commander

    Hello, I am trying to have .doc files opened in word (through wine) when I hit ENTER on the file in midnight commander (mc). However, when I hit ENTER, the screen briefly flashes, then nothing happens. Somewhere I read that if you hit M-! then you ca

  • Calling one WAD Report from another WAD Report

    Hi All,           I want to Call one WAD report from another WAD Report and I want to show that Report in a Container of the Calling Report Itself. Kindly give the Solution. Thanks for your support in advance. Thanks & Regards Shiva

  • (Shoutcast) Have QT play a playlist

    I'm having a shoutcast-server serve my users on-demand content. The URI to those files are: nnn.nnn.nnn.nnn:port/content/file.mp3. This is a streamed file. Shoutcast also creates a virtual playlist for that file with the same filename, but ending wit