Compiling SQLJ samples

When i try to use the SQLJ demo samples, i have this error
[oracle@linux-02 demo]$ java TestInstallSQLJ
SIGSEGV received at bffff398 in /apps/oracle/product/8.0.5/lib/liboci805jdbc.so.
Processing terminated
Writing stack trace to javacore9319.txt ... OK
Aborted
Here is my CLASSPATH
[oracle@linux-02 demo]$ echo $CLASSPATH
.:/apps/oracle/product/8.0.5/jdbc/lib/classes111.zip:/usr/local/sqlj/lib/transla
tor.zip
and when i use the -J-D option
[oracle@linux-02 demo]$ sqlj -J-Djava.compiler=none TestInstallSQLJ.sqlj
libnone.so: cannot open shared object file: Aucun fichier ou ripertoire de ce ty
pe (libnone.so)
libnone.so: cannot open shared object file: Aucun fichier ou ripertoire de ce ty
pe (libnone.so)
Warning: JIT compiler "none" not found. Will use interpreter.
Can you help me
null

It appears that your JDBC installation may not be correct - the problem occurs in the JDBC shared library when establishing a connection. I assume you got JDBC from the full Oracle 8.0.5 Linux distribution - we only have the Solaris versions of JDBC in the separate download area. Were you able to run TestInstallJDBC.java?
At any rate, you should be able to use the thin version of JDBC on every Java platform.
Just use a JDBC URL of the form:
jdbc racle:thin:@<hostname>:<port>:<sid>
Typically <hostname>=localhost, <port>=1521, <sid>=orcl - but this depends on your installation and configuration.
-- Ekkehard

Similar Messages

  • Problem in compiling the sample applet

    hello: im installed jdk 1.2.2 now i wanna folow the instruction written in the
    PDF document.i did everything as it is but when i arrived to the step
    "compiling the sample applet" i issue the command
    " javac -g src/com/sun/javacard/samples/helloWorld/*.java"
    but it doesn't work it give me a message that the command is not known.
    i changed the directory where i issue the command from to c:\jdk1.1.6\bin
    then he find it but i have an other problem is that he makes to error:
    "package.javacard.framework not found in the import"
    "import javacard.framework.*"
    the second errer :
    "superclass com.sun.javacard.samples.HelloWorld.applet of class com.sun.javacard.samples.HelloWorld.HelloWorld not found"
    "public class HelloWorld extends applet"
    i don't know why it doesn't work eventhought i folowed the steps as they are written .
    can some one help me because i can"t pass to the next step if i couldn't compile those files.
    thank you very much

    See http://forum.java.sun.com/thread.jsp?forum=7&thread=203737

  • NewBie : How can I do to compile the samples of XML Parser ?

    How can I do to compile the samples of XML Parser ?
    I must create a Makefile file, and after ?
    Thanks

    It`s for the Parser C++.
    thanks

  • Java.lang.NoClassDefFoundError when compile SQLJ source file

    Always got error message java.lang.NoClassDefFoundError: sun/io/CharToByteConverter
    when using sqlj to compile SQLJ source file.
    The CLASSPATH (partial) .:$ORACLE_HOME/sqlj/lib/translator.zip:$ORACLE_HOME/sqlj/lib/runtime.zip
    I am able to compile the demo TestInstallCreateTable.java and TestInstallJDBC.java but not TestInstallSQLJ.sqlj in the same directory.
    I am using Oracle 8.1.6 R2 client in Linux Intel on Red Hat 6.0. Can anyone explain why this happened ?

    From the forthcoming new version of the SQLJ FAQ:
    "NoClassDefFoundError: sun/io/CharToByteConverter"
    (This is likely a general configuration issue, not something specific to your code.)
    Running sqlj results in the following error message.
    java.lang.NoClassDefFoundError: sun/io/CharToByteConverter
    at sqlj.tools.Sqlj.initializeErrors(Sqlj.java:519)
    This happens if you are running under a JRE environment, and not a full JDK environment. You need to download and install a full JDK environment. Note that the Oracle
    database installation will only set up a Java Runtime Environment. Oracle does not distribute the Java Development Kit - you have to get it from http://java.sun.com
    If that did not help, you'd need to give us a fuller picture of your environmnet (JDK versions, PATH, CLASSPATH settings, etc.).
    Thanks!

  • I want to compile the sample code oci02.c with "vc 6.0", what should i do?

    I want compile the sample oci02.c in "D:\oracle\ora90\oci\samples' with "ms vc 6.0",
    and I don't want to use the command line like
    "cl -I%ORACLE_HOME%\oci\include -I. -D_DLL -D_MT %1.c /link /LIBPATH:%ORACLE_HOME%\oci\lib\msvc oci.lib kernel32.lib msvcrt.lib /nod:libc".
    what should i do to change the "vc 6.0"'s compiling setings?

    Do the following:
    In MS Visual Studio:
    1) Go to 'Tools' -> 'Options' -> 'Directories' -> 'Include Files' and add a new entry for OCI header files by browsing to the directory where they r located. ex; 'D:\ORACLE\ORA817\OCI\INCLUDE'
    2) Go to 'Tools' -> 'Options' -> 'Directories' -> 'Library Files' and add a new entry for OCI LIB files by browsing to the directory where they r located. ex; 'D:\ORACLE\ORA817\OCI\LIB\MSVC'
    3) In your program #include <oci.h> header file
    4) Go to 'Project' -> 'Settings' -> 'Link' -> 'Object/library modules' and enter 'oci.lib' there.
    This is all u need to do. Just remember OCI.DLL should be available in your $PATH
    All the best!
    jAGzZz!!!

  • Compiling Tuxedo Sample Application on Sun using gcc

    We have installed Tuxedo 8.0 on Sun 8.0 and using gcc 3.1 for compilation.
    While compiling Tuxedo sample application, we are receiving an error gcc: language
    arch=v9 not recognized
    Are we supposed to do something more to be able to use gcc for compiling Tuxedo
    sample application.

    try turning off the language specification using -x none option.
    see gcc documentation for this option.
    "Sudhir" <[email protected]> wrote:
    >
    We have installed Tuxedo 8.0 on Sun 8.0 and using gcc 3.1 for compilation.
    While compiling Tuxedo sample application, we are receiving an error
    gcc: language
    arch=v9 not recognized
    Are we supposed to do something more to be able to use gcc for compiling
    Tuxedo
    sample application.

  • Compiling sqlj via ant (jakarta)

    Has anyone tried to configure jakarta ant to compile sqlj programs?
    This should be possible using the classes in translator.zip, in particular sqlj.translator.*.
    Any comments/suggestions/recommendations?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Coarr ([email protected]):
    Has anyone tried to configure jakarta ant to compile sqlj programs?
    This should be possible using the classes in translator.zip, in particular sqlj.translator.*.
    Any comments/suggestions/recommendations?<HR></BLOCKQUOTE>
    I've just started porting a makefile that does jpub/sqlj work to ant.
    <pre>
    <target name="jpub" depends="prepare">
    <java classname="${jpub.main}"
    args="-props=${jpub.propfile}"
    fork="yes"
    failonerror="yes">
    <classpath>
    <pathelement location="translator.zip"/>
    <pathelement location="classes12.zip"/>
    </classpath>
    </java>
    </target>
    <target name="sqlj" depends="jpub">
    <java classname="${sqlj.main}"
    args="-props=${jpub.propfile} gen/*"
    fork="yes"
    failonerror="yes">
    <classpath>
    <pathelement location="translator.zip"/>
    <pathelement location="classes12.zip"/>
    </classpath>
    </java>
    </target>
    </pre>
    is a snippet of the build.xml.
    DISCLAIMER This isn't polished, it omits a bunch of detail, AND the sqlj target DOESN'T WORK.
    BUT, the reason that the sqlj task fails is that sqlj wants a list of files (it complains about wildcards like "gen/* ")
    I'm looking into a good way to feed it a bunch of files (~100 in our project), but for a small list of files, you could just specify them in the args=" ... " task attribute.
    null

  • How to compile Reports sample OCI program in Sun solaris ?

    TO All:
    Here is reports OCI sample program.
    #include <stdio.h>
    long ret,rwcrun(),rwcsql();
    main()
    char options[132];
    long len;
    strcpy(options,"userid=ps51/ps51 report=emp batch=yes paramform=no destype=file desname=l.ps");
    printf("/options are: %s",options);
    len=strlen(options);
    ret=rw2run(options);
    printf("/n Value of return code is %d",ret);
    exit();
    Pls guide me , how to compile this program in Sun Solaris platform .
    1. Which library file I need to include.
    2. How to create make (.mk) file.
    If I compile this program using below command.
    $>cc ociprg.c r30dll.o
    then "rw2run" not found error.
    Also I need to use RW2RRB oci function, for this which library I need to use.
    Thanks in Advance
    Siva
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by R.Siva Kumar [[email protected]]:
    TO All:
    Here is reports OCI sample program.
    <HR></BLOCKQUOTE>
    null

  • Unable to Compile EJB Sample

    Environment: Windows NT4, sp5, WLS 5.1/sp 2, Sun JDK1.2.2
    As illustrated in 'Introduction to BEA Weblogic Server', pp 101-102, I'm
    compiling the Emp EJB sample. I successfully compiled the java programs,
    moved the XML files, and created the initial JAR file. Next the sample says
    to run ejbc on the JAR file. When I do I get the following error:
    G:\weblogic\examples\intro\ejbtemp>java -Dweblogic.home=%WL_HOME%
    weblogic.ejbc Emp.jar -d %WL_HOME%\myserver\Emp.jar
    java.lang.ClassCastException
    at
    weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUtils.java,
    Compiled Code)
    at
    weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(DOMUtils.java:170)
    at
    weblogic.xml.dom.DOMUtils.getOptionalValueByTagName(DOMUtils.java:97)
    at
    weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue(EJBReadDOM.java:40
    4)
    at
    weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorL
    oader.java:200)
    at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: java.lang.ClassCastException
    Any idea what may be causing this?

    try to use the build script in the examples directory..
    It is available for all examples.
    so after running setenv
    go the example u want and run the build.cmd
    it should work
    Steve Vago wrote:
    Environment: Windows NT4, sp5, WLS 5.1/sp 2, Sun JDK1.2.2
    As illustrated in 'Introduction to BEA Weblogic Server', pp 101-102, I'm
    compiling the Emp EJB sample. I successfully compiled the java programs,
    moved the XML files, and created the initial JAR file. Next the sample says
    to run ejbc on the JAR file. When I do I get the following error:
    G:\weblogic\examples\intro\ejbtemp>java -Dweblogic.home=%WL_HOME%
    weblogic.ejbc Emp.jar -d %WL_HOME%\myserver\Emp.jar
    java.lang.ClassCastException
    at
    weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUtils.java,
    Compiled Code)
    at
    weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(DOMUtils.java:170)
    at
    weblogic.xml.dom.DOMUtils.getOptionalValueByTagName(DOMUtils.java:97)
    at
    weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue(EJBReadDOM.java:40
    4)
    at
    weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorL
    oader.java:200)
    at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: java.lang.ClassCastException
    Any idea what may be causing this?

  • Help to compile SQLJ in Oracle816 r2 with SDK2 v1.3

    Currently I have SDK2 v.1.3 from SUN installed in my Linux box. When I tried to compile an SQLJ file using the "sqlj" command, it seems that it has internal compile error.
    I read the README.txt in the SQLJ directory, and found this:
    "The SQLJ translator now works with JDK 1.2 [Bug 814692]. Ensure that you are using the proper Oracle JDBC driver file (classes12.zip)."
    Now, the default JDBC driver comes with Oracle 8.1.6 r2 is 'classes111.zip'. Is there a patch or something that can upgrade the JDBC driver so I don't have to download 560Mb of Oracle 8.1.7 just to learn how to use sqlj?
    Thanks.

    I would have expected both JDK 1.1 and JDK 1.2 JDBC driver versions to be distributed with your database. (The 1.2 version, while not certified with JDK 1.3 should work reasonably well.)
    The 8.1.7 JDBC driver is downloadable from OTN - the thin drivers (both JDK 1.1 and JDK 1.2) work with all appropriate Java platforms.
    One more thing: SQLJ 8.1.7 does not work properly under JDK 1.3. As a workaround, you can specify the -passes option (though error messages will not be given on the .sqlj file). A better workaround is to create a script (say "myjavac") that calls javac but captures stdout and stderr and sends both to stdout. Then specify -compiler-executable=myjavac in your sqlj.properties file and you should be in business.

  • Error compiling jaas samples

    hello,
    i'm new to jaas module.I'have tried to compile the SampleAcn.java with j2sdk1.4.2_01 and i got the "class not found" exception about javax.security package.
    what goes wrong?

    Which classes exactly?

  • Why is the constructor of EnsTopic package private?How did you compile the sample?

    JmsSample.java:77: EnsTopic(java.lang.String) is not public in com.iplanet.ens.j
    Topic topic = new com.iplanet.ens.jms.EnsTopic(ensTopic);
    ^

    A work around is to change the offending statement to
    Topic topic = topicSess.createTopic(ensTopic);

  • Error Compiling VSM Sample Application

    Im trying to run the VSM app but it seems there4s a coding error in the AccessControlFilter.java (134,45) and (153,47).
    The getParameterMap() doesnt exist in the javax.servlet.http.HttpServletRequest interface.
    Has anyone faced this one?

    hi
    this method is implemented only with servlets2.3 spec. You have to include latest oc4j.jar (under <oc4j_home>/j2ee/home) in the classpath.
    shrini

  • Problems Compiling a SQLJ Class.

    Hi,
    Just getting started and I'm trying to compile an SQLJ file into a class to use as a stored procedure in Oracle Lite.
    I'm Using JDEV 9.0.3.
    I created a project and set the SQLJ compiler options.
    Then I created an SQLJ file with the contents:
    import java.sql.*;
    import javax.*;
    import oracle.*;
    public class TestSQLJ
    public static void Test()
    throws SQLException
    #sql {INSERT INTO TEST VALUES(1)};
    #sql {COMMIT};
    But whenever I complie I get the error:
    Error(10,15): cannot access class oracle.jdbc.OraclePreparedStatement; file oracle\jdbc\OraclePreparedStatement.class not found
    Can anyone please explain what could be wrong or provide a sample skeleton for a stored procedure. (it seems in JDEV 9i I can't create a SQLJ file (when I add a new SQLJ file to the project no file appears...)
    BR
    Tim

    The problem with your code is that first you need to connect to a database before executing any queries
    Look at basic SQLJ sample at http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/basicsqlj.html
    In JDev 9.0.3 you can create SQLJ file by using menu File->New and selecting Database tier category and selecting SQLJ class. You should also be able to open existing SQLJ files.

  • Error in compiling Photoshop CC 2014 sample project

    Hi,
    I am trying to compile SDK sample project "outbound". but it is showing errors, as "Parse Issue: Unknown type name 'DialogPtr' " in DialogUtilities.h .
    DialogUtilities.h file is in "Adobe Photoshop CC 2014:photoshopsdk:pluginsdk:samplecode:common:includes".
    even if I add this path in project  settings it still shows the errors.
    how can I make this work?
    I am using Photoshop CC 2014 and Xcode version is 4.6.3 (4H1503)
    If you have any idea regarding project settings then please let me know.
    Thanks and regards,
    Priyanka.

    Are you using the CC 2014 release of the SDK?
    The DialogUtilities.h for mac do not work. They are the old Carbon API's. See the Dissolve example for an Objective-C UI.
    I would comment out the DialogUtilities.h include and other associated headers for Carbon UI. Some Carbon calls still work that are unrelated to UI.

Maybe you are looking for

  • Good looking �Look and feel� icons ?

    Good looking �Look and feel� icons ? Where could be found icons , professional looking, like in �Java TM Look and Feel Graphics Repository� site, for use in JtoolBar For various functions in java application program ?

  • Offline/online mail error

    Error Dialogue Box: Some actions taken while the account "xnaatmacdotcom" was offline could not be completed online. Mail has undone actions on some messages so that you can redo the actions while online. Additional information: Operation could not b

  • Touch ID not working with Apple Pay.

    I have an iPhone 6. The Touch ID works great to open the phone, log in to App Store. All my fingers work with it. But when I use it at a retailer that takes Apple Pay, it won't accept my fingerprint. I try every finger and eventually it prompts me to

  • Sleep problems with a MacBookPro6,2 with OSX 10.6.7

    Hi everybody, I'm yet another pal with sleep problems on my MacBookPro6,2 (Core i5 mid 2010). After a few hours of activity it refuses to sleep. It just wakes instantly, with the same info on the kernel.log as many other are seeing on theirs: ==> /va

  • Smartforms user specific problem

    Hi       I have a developed a smartform with two page , when i am excetuing this smartform from my user-id next page is not coming but when I executing this same form with another user-id it  displying both the pages . can you please tell me where is