SQLJ compiler in oracle for Java
Hi all
I just stated talking to a client who uses SQLJ and he need some of my help to do some maintenance.
So I am setting up my laptop with oracle to have static SQL in java code.
I have setup classpath and path accordingly. My oracle home is c:\appl\ORA9i
Path has
c:\appl\ORA9i\BIN
Classpath has
c:\appl\ORA9i\\jdbc\lib\classes12.zip;
When I type SQLJ it gives me below, (Looks like it is seaching for a tool folder which I don't have) SQLJ.exe is in c:\appl\ORA9i\BIN.
C:\>sqlj
Exception in thread "main" java.lang.NoClassDefFoundError: sqlj/tools/Sqlj
C:\>
Can someone please guide me how to get my SQLJ pre-compiler running to get my Java work done?
Could anybody please answer this!!
Similar Messages
-
Java 1.5 and SQLJ Compiler -- Can't get Java 1.5 specific syntax to compile
I am looking to upgrade our java version from Java 1.4 to Java 1.5. Once I upgrade I expect to be able to use Java 1.5 specific language constructs such as generics, annotations, the new for loop and such. In doing some reading (http://download.oracle.com/docs/cd/B28359_01/java.111/b31227/whatsnew.htm) it states that in the 11g release that sqlj could handle the new syntax. I have done my best to locate the new jar files for oracle 11.g to allow me to do the sqlj translation with java 1.5 syntax but even after locating all the latest jar files it still doesn't work.
I downloaded the translator.jar and the latest oracle drivers from this link (http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html). It seems to me that the latest translator.jar file that I can get is only for 10g.
Here is an example piece of code that I am trying to translate.
public class TryIt
public TryId() {}
public static void main( String[] args )
for ( String arg : args ) {
System.out.println(arg);
}You think it is normal that it takes 30 seconds to load.
I think it is a programming problem. You should not import a lot of package.
Applet are supposed to be light, it is not like programs it is normal when you're on 56k (of course aol steals some of those bandwidth by sending you advertisement) and it's not my applet..it's one of a few applet s that i encountered when surfing the web..so i have ano control over how it is implemented or designed. Even small one that do simple stuff like display a hello world takes forever to load. -
What Java compiler for Java Card development ?
What Java compiler and options should be used for Java Card development with the goal of generating correct, and (secondarily) small or/and fast code after conversion to Java Card bytecode using converter ?
In particular
- Is use of JDK 7 approved by Oracle for Java Card development? That would solve security problems associated with (the web components of the JRE of) some earlier JDK, including the latest JDK6. The JCDK 3.0.4 release notes states "+the commercial version of Java Development Kit (JDK software) version 6 Update 10 (JDK 6 Update 10) or later is required+, but that does not answer that question.
- Anyone had _bad_ experience (like incorrect or disastrous code) with the Java compiler bundled with Eclipse ? I have seen at least one case where org.eclipse.jdt.core_3.7.3.v20120119-1537.jar produced slightly more compact code than javac.
- Anyone had _bad_ experience with javac in jdk1.3 ? In an applet involving a "finally" clause, I've seen it generating more compact code than later javac (which in my test triplicated the code for the finally clause).What Java compiler and options should be used for Java Card development with the goal of generating correct, and (secondarily) small or/and fast code after conversion to Java Card bytecode using converter ?-target -source may be required to generate compatible byte code. Depending on the CAP file converter being used debug information may also help. Remember that Java Card is a subset of the Java language (also there are short opcodes that Java doesn't have etc) so a lot of the work for optimisation is done by the converter or the JCRE. You can look at the JCA code generated to determine what works best for your applets. There are also some ways of stripping out dead code etc from JCA files (return statements after a throw etc) to reduce your code size. Most of the speed optimisations come from your code (avoiding context switches and unnecessary security/access checks).
The compactness of your Java Card binary may not be directly related to the size of your compiled Java code. It can depend on the converter you use and any optimisaitons the JCRE might try to do when the code is loaded.
- Is use of JDK 7 approved by Oracle for Java Card development? That would solve security problems associated with (the web components of the JRE of) some earlier JDK, including the latest JDK6. Java Card does not use any of the libraries from the JDK/JRE. All of the libraries are provided by the JCRE on the smartcard.
The JCDK 3.0.4 release notes states "+the commercial version of Java Development Kit (JDK software) version 6 Update 10 (JDK 6 Update 10) or later is required+, but that does not answer that question.Anything above JDK6u10 is supported. If you use Java 7 you may need to add a -source and -target flag when compiling.
- Anyone had _bad_ experience (like incorrect or disastrous code) with the Java compiler bundled with Eclipse ? I have seen at least one case where org.eclipse.jdt.core_3.7.3.v20120119-1537.jar produced slightly more compact code than javac.We generally use the Eclipse compiler as we find that we get more deterministic builds. When CAP files are sent for security review it is helpful to have the reviewer able to generate a CAP file that matches the one you sent to confirm the binary is what you say it is.
- Anyone had _bad_ experience with javac in jdk1.3 ? In an applet involving a "finally" clause, I've seen it generating more compact code than later javac (which in my test triplicated the code for the finally clause).We do not use anything less than Java 6 for compilation.
- Shane -
Where's the Oracle Forms Java API documentation for 11g?
Hi,
Can anyone point me in the direction of the Oracle Forms Java API documentation?
The only thing I can find is this: http://www.oratransplant.nl/1012jdapiDoc/oracle/forms/jdapi/JdapiModule.html but this seems to be for 10.1.2 and it doesn’t correspond to the version I’m using (11.1.1.3).
Help appreciated,
Donal.i couldn't find the api either however if you implement the class you will simply get compiler errors explaining what you left out.
-
What files to download for java and oracle?
Hey
I have read that i have to download and implement some drivers to get oracle to work in
java, but which should i download and where?
Im using Oracle Express 10 and java 1.6
ThanksHere's the link to get just the drivers
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
You could also install the oracle client if you wish to use sql*plus, it has jdbc drivers in folder named jdbc. This is probably a good idea as sql*plus can prove whether your problem is java or oracle.
Installation is simple, you put ojdbc14.jar in the classpath of your compiles and executions. If you are using an IDE, you follow what it provides in its documentation. For Java Studio Enterprise you add them from the "Runtime" window. -
Sunsofts Forte for Java & SQLJ - anyone?
Hi,
we would like to use Sunsofts Forte for Java as an IDE to work with SQLJ sources.
Since currently no other tool besides Oracles JDeveloper seems to contain direct support for SQLJ we run into the need to give up SQLJ and use plain JDBC instead because we favorize Forte so much over JDeveloper. (Note: please don't discuss the pros and cons of JDeveloper vs. Forte!)
Does anybody use SQLJ inside Forte an can supply us with some guidance/help etc.?
Do any of you know if Sun ore some other vendor will supply SQLJ modules for Suns Forte?
Any help will be greatly appreciated.
Regards,
Robert.BINGO !
Thanks Roxie!
Roxi suggested looking for a log file possibly in .../bin
found log files in:
C|/forte_jdk/forte4j/bin
and,
C|/forte_jdk/forte4j/bin/hs_err_pid1704.log
contained
at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
which I recognized from having previously encountered
Unexpected exception from NativeFontWrapper.registerFonts(Native Method)
http://developer.java.sun.com/developer/bugParade/bugs/4482430.html
and previously fixed code to deal with that bug by adding
set JAVA_FONTS=C:\home\rholder\sandbox\msda\jre\lib\fonts
to the .bat file that launched the java program,
sooooooooo,
by going to ControlPannel|System|Advanced|EnvironMentVariables
and adding
JAVA_FONTS=C:\home\rholder\sandbox\msda\jre\lib\fonts
forte for java 4 ce now performs mount|Filesystem, etc
and, debugging of java code is now in progress!!!
thanks again Roxie,
[email protected] -
ANN: Oracle XML Parser for Java v2.0.0.1
A new maintenance release of the Oracle Parser for Java is
available for download. It has the following fixes and changes:
Bug fixes for #920536, i.e. Cannot access element attributes via
XSLT; #898423. i.e. ElementDecl's in DTDs; #774774, i.e. DOM
extensions using XSL pattern matching; #863890 i.e. SAX
IOException not thrown.
New APIs in the following new interface:
1. oracle.xml.parser.v2.NSResolver
- resolveNamespacePrefix( find the namespace definition in scope
for a given namespace prefix )
New APIs in the following classes:
1. oracle.xml.parser.v2.XMLNode
- selectNodes( Selects nodes from the tree which match the given
pattern; client can provide an NSResolver implementation to
resolve namespace prefixes in the pattern ).
2. oracle.xml.parser.v2.ElementDecl
- getParseTree( Returns the root Node of Content Model parse
tree, which could then be traversed node by node using
getFirstChild() and getLastChild(). The Node types are: PLUS,
COMMA, ASTERISK, ELEMENT, QMARK ).
This is the first beta patch release for v2.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
nullunzip -l appsborg2.zip | grep 9.0.4
0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip -
NoClassDefFoundError for Java Concurrent Program in Oracle Apps
Hi,
I am accessing the Oracle Apps application which is installed in local server(Within the network).
I am trying to execute Java Concurrent Program in oracle apps (in Windows XP Professional). I did the following.
1. Created the concurrent program executable with Execution file name
as AvailableProg and Execution File Path as
oracle.apps.fnd.cp.request (this is where AvailableProg resides)
and Method as Java Concurrent Program.
2. Created the concurrent program and set the Options as -cp JAVA_CON.
3. Created a environment variable JAVA_CON (In Windows XP) with the
values D:\apps.zip and
D:\oracle.apps.fnd.cp.request.AvailableProg.class.
4. Registered the concurrent program.
5. While I submitted the request I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/apps/fnd/cp/request/Run.
Can anybody help me in resolving this issue?
Is there any documents available in executing java concurrent programs?
Please do the needful..
Thank You....Hi
I am having the same issues. Here are the setup I have for all the variables:
$ echo $AF_CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java
$ echo $JAVA_TOP
/u001/oracle/deltacomn/java
$ echo $AFJVAPRG
/u001/oracle/deltacomn/util/jre/1.1.8/bin/jre
$ echo $CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java:/u001/oracle/deltaappl/ncr_custom/ncrx/1.0.0/java
Please help.
Thanks
AE -
Oracle BI Java host not starting for Windows 7 64 bit
Hi,
I am struggling to start "Oracle BI Java host" on my Windows 7 64 bit machine. All other services - BI Server, Presentation Server and even OC4J works good.
BI Version: OBIEE 10g EE - 10.1.3.4.1
I have checked these places:
1. Environment variable: C:\Java\jdk\bin;
2. Instanceconfig.xml: *<JavaHome>C:\Java\jdk</JavaHome>*
3. Java verision: *6.0.230.5*
Can anyone help me to identify and solve this issues.
Thanks,
Yar.
Edited by: Yar on Mar 9, 2011 7:11 AMHi Yar,
You can try changing the Heap memory allocation parameter for Javahost at <OBI Install Directory>\instances\instance_Number\config\OPMN\opmn\opmn.xml file...
Search for -Xmx1024M and replace with -Xmx768M, save the file and Start the JavaHost, it should work.
Regards,
Kalyan
http://123obi.com -
Oracle EBS R12 - how to compile jsp and keep .java file
Hello.
When I compile the jsp file, it will create the _pagename.class file into $COMMON_TOP/_pages directory. Some of the time it also keep _pagename.java file in there.
How can force the compiler to keep the java file always. I am using following command which creates _pagename.class file.
perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'ptcResponse.jsp' --flush
It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
This is an expected behaviour.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.
The "perl ojspCompile.pl" command doesn't offer this -- Issue "perl ojspCompile.pl" and you will see what options are available.
Your option is to keep/save the java files in a different directory.
Thanks,
Hussein -
ORACLE XML PARSER FOR JAVA FOR AIX
Hi people!
I'm looking for the Oracle XML Parser for Java 9.0.2.0.0C, my 9iAS is BI Installation 9.0.2.3, where can I get it? In the Downloads Section there is only the version for 10g, and the existing versions for 9i are not for AIX (my OS is AIX 5.2L).
Thanks.Thanks for your help, I navigate through this link and, even it shows a table where appears the release for AIX (9.2.0.6.0), when I get to http://www.oracle.com/technology/tech/xml/xdk/software/prod/utilsoft_java.htm
it shows me only downloads for Sun, Linux and HP-UX, but not for AIX.
Has the version for AIX being deprecated or something like that? -
Does the latest release of the Oracle XML Parser for Java support JDK 1.2.2?
I have an application which makes use of the XML Parser which runs fine with JDK 1.1.7.
But the application crashes with the use of JDK 1.2.2 .
Any insight into this is appreciated.
nullThe Oracle XSQL Servlet makes extensive use of the Oracle XML Parser for Java V2 as well as its XSLT Engine and runs without issue under 1.1.8 and 1.2.2.
-
Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i
Guys, I applied ATG.PF.H.RUP4. In postinstall steps it is mentioned,Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i(doc-271148.1)
which says after applying patch 4038964 do the following--
AUTOCONFIG ENABLED APPLICATIONS ENVIRONMENT
If the Oracle E-Business Suite configuration files are maintained using the AutoConfig infrastructure, proceed with the following:
1. Run the AutoConfig utility.
2. Go to [JAVA_TOP].
3. Run the unzip -l appsborg2.zip | grep 9.0.4 command. If there is a file named as .xdkjava_version_9.0.4.0.0_production, which indicates that XML Parser for Java v9.0.4 is installed correctly as part of appsborg2.zip. Otherwise, run ADAdmin to regenerate the appsborg2.zip file.
4. Restart the application tier server processes such that the new version of Oracle XML Parser for Java will take effect.
but actually the patch is already applied- 4038964. How do i verify if i need to do these steps or not.
The xmlparserv2-904.zip file is already there in wrapper.classpath. of jserv.properties, forms.properties. So i think i dont need to do these steps.unzip -l appsborg2.zip | grep 9.0.4
0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip -
ANN: Oracle XML Parser for Java v1.0.1.1 Maintenance
The first maintenance release of the Oracle XML Parser for
Java is available for download here.
It has the following fixes and changes since 1.0.1:
Bug Fixes:
#843157, parseDTD(InputSource, rootElement) and
parseDTD(URL, rootelement) then parse(InputSource) bugs;
#843143, parse(InputSource) bug;
#793012, no need to print a trace of an exception which is
rethrown.
Changes: None
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
nullThe first maintenance release of the Oracle XML Parser for
Java is available for download here.
It has the following fixes and changes since 1.0.1:
Bug Fixes:
#843157, parseDTD(InputSource, rootElement) and
parseDTD(URL, rootelement) then parse(InputSource) bugs;
#843143, parse(InputSource) bug;
#793012, no need to print a trace of an exception which is
rethrown.
Changes: None
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
ANN: Oracle XML Parser for Java v2.0.2
The new version of the Oracle XML Parser for Java v2 is
available for download and has the following features and
changes:
1. Conformance to the XSLT/XPATH August WD.
Note that there are several changes between April99 XSLT draft
and the August99 XSLT/Xpath draft and these changes have been
implemented in the XSL Processor. The XSL Processor has been
modified to accept XPath syntax for expressions and patterns.
Stylesheets might have to be modified to be conformant to the
August XSLT/XPath draft before they can be used with this
release.
Some of the changes between April draft and the August draft
are:
a. Expressions in the stylesheet must match the XPath
production Expr.
b. Some of the attribute names and element names in XSL
namespace have changed.
c. Some new functions have been added to XPath CORE function
library.
Please refer to the August XSLT/XPath draft for more details.
This is the first production release for v2.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
nullThe link has been fixed. You will go to the v2 download page
now. Sorry for the inconvience.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Renilton Oliveira (guest) wrote:
: I didn't find the file for version 2.0.0.0 as well.
: Renilton
: Andrei Filimonov (guest) wrote:
: : I tried to download XML Parser for Java v2 it seems that
only
: v
: : 1.0.1.4 is available. Could you please give an exact URL for
: v2
: : download?
: : Andrei Filimonov
: : Oracle XML Team wrote:
: : : The Oracle XML v2 parser is now available for download
here
: as
: : : an early beta release and is written in Java. It features
: an
: : : improved architecture over the Oracle XML v1 parser and
has
: : : shown better performance on small to large XML documents.
: It
: : : will also be able to format the XML document according to
a
: : : stylesheet, having integrated an XSLT processor.
: : : Version 2 of the XML Parser for Java, besides
incorporating
: an
: : : XSLT processor, has been re-architected from version 1.
This
: : has
: : : resulted in a number of changes to the class names
: especially
: : : those that support Namespaces. See v2changes.txt and
: the .diff
: : : difference files in the sample directory.
: : : Oracle XML Team
: : : http://technet.oracle.com
: : : Oracle Technology Network
null
Maybe you are looking for
-
Having touble importing Quicktime movies into FCP....
I keep getting an error message saying ;"File error; 1 file recognized, 0 access denied, 1 unknown." Can anyone please help me with this? This should be the easiest thing and I'm having trouble. Very discouraging after spending so much on FCP Thank y
-
Problem updating Click2Call and Skype ... and reso...
I noticed, in my Application Event Log (Win7), the following errors: Log Name: Application Source: MsiInstaller Date: 11/01/2013 18:15:10 Event ID: 11729 Task Category: None Level: Information Keywords: Classic User: DOMAIN\user Computer: machine.dom
-
Creative cloud won't load apps
This started when I tried to import photos in cloud lightroom. When I click the import button I got the message something like.. server busy, retry / ignore and of course neither did anything. I re-started computer etc. So, then I uninstalled ligh
-
How do I delete a document in he queue, the status is deleting but it will not delete it
I can not delete a document in the queue
-
ColdFusion 9 Performance Problem
Hallo, ich habe das Probem mit ColdFusion 9, dass es sehr langsam ist. Installiert habe ich es auf aktuellem Debian 7 x64. Als Test lasse ich Dateien mit wenig Text 100 mal schreiben. Hier braucht der ColdFusion 9 Server schon 8 Sekunden dafür. Weiß