Making JDeveloper use JDK 1.6

Where do I set this in JDeveloper? Is it in the Project Properties dialog | Compiler? Seems like it should be but I don't see any place to set it.
Thanks.

A couple of comments:
1). I have had issues running my project with JDK 1.6 in JDev 10.1.3.x in the past. So, as you have seen with the warning message that pops up, it's not supported - may work, may not.
2). Rather than swap out the JDK like that, I'd recommend instead you download the JDeveloper without a JDK and then when running it for the first time, point it to your JDK 1.6 install.
John

Similar Messages

  • Problems using jdk 1.4.0-beta 2 with JDeveloper 3.2.3

    I've problems using the jdk 1.4.0-beta 2 with JDeveloper 3.2.3.
    Used jdk 1.3.1 before, evertything worked correctly, accept a smal prob with the minimize- and maximize-icons of JInternalframe.
    Got mail that this would be solved with new jdk.
    But when i define new JDK in JDeveloper and try to compile i get the following message:
    Error: (0) initialization error: class Error const *: class file has wrong version 48.0, should be 45.3 or 46.0.
    If i compile the code from the commandline with javac myself it compiles correctly and the program runs fine.
    can anyone help??

    The problem you are having is that jdev doesn't support the new beta..I have the same problem and I am currently compiling and executing from the command line
    I heard there is a workaround but I have never found it
    sorry

  • Runtime error using jdk 1.4.1 in jdev

    Hi,
    I am using jdev 9032. My project uses jdk 1.3.1 the default that comes with jdeveloper. Now i have to make this application work on 1.4.1_05.
    But when I run the app in jdev by changing the jdk to 1.4.1 or when I deploy in OC4J (standalone) 903 with JAVA_HOME=C:\JDK1.4.1, I get following error in both the case:
    Auto-deploying file:/D:/temp/projects/Myproject/classes/ (No previous deployment found)... MyProjectServices_StatelessSessionBeanWrapper16.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: D:\Utilities\java\jdk\j2sdk1.4.1_05\jre\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling D:\temp\projects\Myproject\classes: Syntax error in source
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    But when I compile my source using JDK 1.4.1 it is fine, and only gives me error while deploying.
    Please let me know how to get this app deployed on OC4J with JDK 1.4.1
    THANKS in advance
    Narinder

    Hi,
    I figured out the solution.
    Make the project use 1.4.1 and also replace the tools.jar file under %JDEV_INSTALL%\jdk\lib
    In addition to this I have also changed the "SetJavaHome" environment variable in jdev.conf to use JDK 1.4.1
    And everything is working fine and as I wanted.
    FYI:
    Replace tools.jar on OC4J Standalone(I used OC4J 903) with tools.jar of JDK 1.4.1 and then app can be deployed on OC4J as well.
    Hope this helps someone.
    Regards,
    Narinder

  • How do I use jdk 1.4 with weblogic 6.1?

    Want to use jdk 1.4 features(logging and regular expression) in a weblogic
              application I am developing. How do I get weblogic 6.1 to run with jdk1.4
              

              This is off topic but see the url below on edocs.
              You will need to make sure that your classpath points to the 1.4 jdk. Changing
              your $JAVA_HOME in the startup script is pretty much it.
              When developing your application, make sure your classpath is set properly .For
              example in the setExamplesSever.sh script you point to the 1.4 jdk.
              FYI This is not yet a supported platform.
              -frank
              http://e-docs.bea.com/wls/docs61/faq/java.html#251151
              "alt.cybercafes" <[email protected]> wrote:
              >Want to use jdk 1.4 features(logging and regular expression) in a weblogic
              >application I am developing. How do I get weblogic 6.1 to run with jdk1.4
              >
              >
              >
              

  • Need to save the image saved in the System Clipboard in using JDK 1.3.1

    Does anyone know how to use JDK 1.3.1 to take an image saved in the System clipboard and save it to a file using the JPG format?
    I know how it is done in JDK 1.4 using the following code. Unfortunately, the same code does not recognize the image in the clipboard in JDK 1.3.1
    I am using jai-1_1_2_01.
    package clipboard;
    import java.awt.datatransfer.Clipboard;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.image.RenderedImage;
    import java.awt.Toolkit;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.io.IOException;
    import java.io.FileOutputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import javax.media.jai.JAI;
    import javax.media.jai.RenderedOp;
    public class clipboard
    {  private File tempFile = null;
    * @param args
    static int BUFFER_SIZE = 65536;
    public static void main(String[] args)
    {  clipboard clip = new clipboard();
    clip.writeImageFromClipboard();
    public void writeImageFromClipboard()
    {  Clipboard            clip = Toolkit.getDefaultToolkit().getSystemClipboard();
    Transferable transferable = clip.getContents(null);
    RenderedImage img = null;
    FileOutputStream fileOutStr = null;
    BufferedOutputStream bufOutStr = null;
    DataFlavor [] dataFlavors;
    File tempFile;
    int
    byteCount;
    String [] strArr;
    dataFlavors = transferable.getTransferDataFlavors();
    System.out.println("clip=" + clip.getName());
    System.out.println("Transferable=" + transferable);
    for (int i = 0; i < dataFlavors.length; i++)
    {  System.out.println("dataFlavours[" + i + "]=" + dataFlavors.toString());
    if (transferable.isDataFlavorSupported(new DataFlavor("image/x-java-image; class=java.awt.Image", "Image")))
    { try
    { img = (RenderedImage) transferable.getTransferData(new DataFlavor("image/x-java-image; class=java.awt.Image", "Image"));
    if (this.tempFile == null)
    { this.tempFile = File.createTempFile("__TMP_IMG__", ".jpg");
    System.out.println(this.tempFile.getCanonicalPath());
    fileOutStr = new FileOutputStream(this.tempFile);
    bufOutStr = new BufferedOutputStream(fileOutStr);
    // Encode the file as a JPG image.
    JAI.create("encode", img, bufOutStr, "JPEG", null);
    catch (UnsupportedFlavorException e)
    { e.printStackTrace();
    catch (IOException e)
    { e.printStackTrace();
    finally
    { if (bufOutStr != null)
    { try
    { bufOutStr.flush();
    bufOutStr.close();
    catch (IOException e)
    if (fileOutStr != null)
    { try
    { fileOutStr.flush();
    fileOutStr.close();
    catch (IOException e)
    else
    { System.out.println("Not an image!");

    The login  you connected to the server  and run the above statement does not have permissions to operate  on this path "C:\Users\ISLLCdba\Desktop\MAA
    PROFILE PICTURES\"
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using JDK 1.5 in frame font is appearing different as it is coming in 1.4

    When I am going to compile my application using jdk 1.4 and 1.5 both,in 1.5 fonts in my application component like frame,dialog fonts are appearing in different manner means in 1.5 it is appearing in bolder manner.
    We are developing framework application and we have to give release for jdk 1.5 version but it is giving font difference.
    Please resolve this issue because it is very urgent and critical.
    this is not our framework problem i have developed one below simple application and compiled it in jdk 1.4 and 1.5 it is showing font difference.
    Fonts like times new roman and arial etc are coming in bolder manner means more width but height and style is same.
    i have snapshot also but i am not able to paste becasue editor is not accepting images.
    I am giving you small program that will reproduce defect apart from my application.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.FontMetrics;
    import java.awt.Frame;
    import java.awt.Graphics;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextArea;
    import javax.swing.SwingConstants;
    public class WizardDemo14
    public static void main(String[] args)
    JFrame dlg = new JFrame("COMPILED IN 1.5");
    JLabel jLabel1 = new JLabel();
    jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 50));
    jLabel1.setForeground(Color.blue);
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
    jLabel1.setText("Finish...");
    dlg.getContentPane().setLayout(new BorderLayout());
    dlg.getContentPane().add(jLabel1);
    dlg.setSize(400 ,400);
    dlg.setVisible(true);
    dlg.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Please help me
    Edited by: umesh3077 on Apr 2, 2008 6:44 AM

    Below taken directly from the v1.6x API java.awt.Font class doco:he Java Platform distinguishes between two kinds of fonts: physical fonts and
    logical fonts.
    Physical fonts are the actual font libraries containing glyph data and tables to
    map from character sequences to glyph sequences, using a font technology
    such as TrueType or PostScript Type 1. All implementations of the Java
    Platform must support TrueType fonts; support for other font technologies is
    implementation dependent. Physical fonts may use names such as Helvetica,
    Palatino, HonMincho, or any number of other font names. Typically, each
    physical font supports only a limited set of writing systems, for example, only
    Latin characters or only Japanese and Basic Latin. The set of available
    physical fonts varies between configurations. Applications that require specific
    fonts can bundle them and instantiate them using the createFont method.
    Logical fonts are the five font families defined by the Java platform which must
    be supported by any Java runtime environment: Serif, SansSerif, Monospaced,
    Dialog, and DialogInput. These logical fonts are not actual font libraries.
    Instead, the logical font names are mapped to physical fonts by the Java
    runtime environment. The mapping is implementation and usually locale
    dependent, so the look and the metrics provided by them vary. Typically, each
    logical font name maps to several physical fonts in order to cover a large range
    of characters.
    Peered AWT components, such as Label and TextField, can only use logical
    fonts.
    For a discussion of the relative advantages and disadvantages of using
    physical or logical fonts, see the Internationalization FAQ document.

  • Query in jdeveloper using  distinct clause

    hello
    I am a user of oracle10G jdeveloper using jclient/swing
    in my product.
    I had written a query in my default view object as
    Select distinct(Name) from emp then i test it.
    Then message get displayed Query is valid.
    But when i bind this view object with my form ie with combobox using model property and finally run the form then it throw an error message .
    Please do help me to sort out this problem .
    thanks

    Please post the error message and the exception stack.
    My guess is that the error is: your VO's SQL statement did not include the primary key attribute (say Empno).
    Thanks.
    Sung

  • Oracle 9i JDeveloper & Database & jdk 1.4 & Rational Rose 2002

    I am not sure if this is the place to ask these types of questions, but i am goin to ask anyway
    Here is my situation, I am doing a project with Rational Rose UML model. The program is written in Java, I wanted to use Rational Rose 2002 for UML model, JDeveloper for coding and Oracle Database
    1. After i downloaded Oracle 9i JDeveloper, the program said its certified for JDK1.3.1_02, is it safe to use JDK1.4.1_1 with it?
    2. Can i use 9i JDeveloper with Oracle 8i Database or its best to use 9i JDeveloper with Oracle 9i Database?
    3. Since Rational Rose 2002 only has Oracle 8 dataType, should i use Oracle 8i with it? or Oracle 9i will work anyway?
    Please help and email me at [email protected]

    1. To run JDeveloper use jdk1.3 but you can use it to develop applications with jdk1.4
    2. You can use Oracle9i JDeveloper with Oracle8i.
    3. Oracle9i will probably work, but rational might not be able to take advantage of the latest features of the database. Check out the UML capabilities of JDeveloepr.

  • Please Suggest...How to execute SQL quiries in JDeveloper using BPEL????

    Hi All,
    I am very new user of Oracle JDeveloper and BPEL. I am trying to develop a process flow in JDeveloper using BPEL and get stuck when I was trying to execute a SQL quiry in the flow.
    How to execute SQL quiries using JDeveloper and BPEL?????????????
    Possibilities might be..
    1.Configring Database Adapter
    2.Using Java Embedded activities of BPEL
    However, any of the above mentioned way is not clear with me how to implement it to get the query run in the process flow.
    It will be great if anyone could help me with this concept....
    Thanks in advance
    -Prabha
    Edited by: user10259700 on Sep 15, 2008 3:48 AM

    Hi,
    though BPEL has its development environment in JDeveloper, it has its own forum
    BPEL
    Frank

  • Execute a query in Jdeveloper using DB adpater

    Hi All ,
    In jdeveloper, using DB adapter i want to execute the following query ,
    select segment1,eng_item_flag from table_name where segment1 in ('itemnumber1',’itemnumber2’);
    In the query the operation IN got used so could you please help me to proceed further

    DB adpater wraps the parameter by ' (apostrophe), so using IN clause it becomes '1,2,3,4,5.........n' and the query returns nothing.
    You need to use below query in DB Adpater
    select attributes,attributes2 from table name where partnumber in (WITH VALUE_LIST AS
    (SELECT ? val FROM dual)
    SELECT SUBSTR(val, (decode(LEVEL, 1, 0, instr(val, ',', 1, LEVEL -1)) + 1), (decode(instr(val, ',', 1, LEVEL) -1, -1, LENGTH(val), instr(val, ',', 1, LEVEL) -1)) -(decode(LEVEL, 1, 0, instr(val, ',', 1, LEVEL -1)) + 1) + 1) a
    FROM VALUE_LIST CONNECT BY LEVEL <=
    (SELECT(LENGTH(val) -LENGTH(REPLACE(val, ',', NULL)))
    FROM VALUE_LIST) + 1)
    Value of <partnumber> tag can be mapped to DB Adapter Inputvariable.
    If you create a very big value list for IN query (greater than 4000 characters) you will get ORA-01704: string literal too long error. In that case you need to break value list and invoke this query multiple times.
    Thanks
    Ravdeep

  • How to autoincrement data in jdeveloper using postgres

    hi..Can anyone help me about my prob.? I need to know how to auto increment records in jdeveloper using postgres.. hope u can give me sample codes which i can use as my reference.. hope for your immediate reply..thankz..=)

    Hi,
    the same problem is presented when using SQLServer and MySQL with ADF. There are a few things like 'Refresh After Insert' in the entity objects, but it doesn't seem to do anything. Aside from that the container will expect a unique value to be created when you add a row entity to the ViewObjects iterator and not after you perform an insert.
    A workaround i have used is to create a sequences table containing the columns table_name and last_number. Write a helper class which connects to the database in a seperate session increments and updates the last number. The helper class is called by the create method of the entity object to assign your new value to the primary key column.
    it's not ideal, but it does work.
    regards,
    Brenden

  • Problem using jdk included with JDEV9i

    I am trying to use jdk supplied with jdev9i release candidate 2 on my system
    (win 98).I have included c:\jde9i\jdk\bin in my system's path and c:\jdev9i\jdk\lib
    in my class path.
    But when I invoke compiler using javac it prints a long error message ,
    some of them are given below(I can't see the main exception because it scrolls up).
    Sun.misc.Resource Sun.misc.URLClassPath.getReasource(java.lang.String.boolean)
    java.lang.Object java.net.URLClassLoader$1.run()
    java.lang.Object java.security.AccessController.dePriviledged(java.security.
    PriviledgedExceptionAction,java.security.AccessControlContext)
    So how can I use this jdk to compile and run my other applications.

    Hi,
    My document looks as follows:
    <pre:inventory xmlns:pre="http://www.example.com/books">
    <pre:book year="2000">
    <pre:title>Snow Crash</pre:title>
    <pre:author>Neal Stephenson</pre:author>
    <pre:publisher>Spectra</pre:publisher>
    <pre:isbn>0553380958</pre:isbn>
    <pre:price>14.95</pre:price>
    </pre:book>
    <!-- more books... -->
    </pre:inventory>
    And I tried the following:
    //pre:book
    /pre:inventory and
    /pre:inventory/pre:book
    I have the necessaty code in my namespaceresolver as follows:
    public String getNamespaceURI(String prefix) {
            if (prefix == null)
                  throw new NullPointerException("Null prefix");
            else if ("pre".equals(prefix))
                   return "http://www.example.com/books";
            else if ("xml".equals(prefix))
                   return XMLConstants.XML_NS_URI;
              return XMLConstants.NULL_NS_URI;
                    cheers,
    ovisvana

  • URGENT!! ERROR WITH EXPIRED CERTIFICATE USING JDK 1.4.2.05

    Hi,
    I have created a client/server application with SSL and have found the following problem.
    I have made these two tests:
    1) jdk 1.4.2.03 --> the certificate is expired, I obtain this exception "No trusted certificate found". it's ok
    2) jdk 1.4.2.06 --> the certificate is expired, no error occurs. WHY?????
    Someone can help me?
    Gianna

    The problem is not the expired certificate! I know that it is expired, but I don't understand why using jdk 1.4.2.05 this certificate is not recognize invalid.
    With this jdk the channel is created. Using jdk 1.4.2.03 instead the certificate was recognized expired and the channel is not created between client and server.
    For me the correct behavior has with the old version of the JDK and not the new.
    WHY?????

  • How to retrieve Font info using JDK

    Hello there:
    I am wondering how I can find as much info about a font as I can using JDK. I can use
    GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
    to retrieve the Font object, and get its name, family, that's pretty much of it. There is getAttributes, but I am not sure how it works. If I want to know such info as the folder containing a particular font, the font's foundry, etc, I don't know how to get them.
    Anyone can point me to a right direction and maybe I can take from there.
    Thanks a lot,
    Sway

    thanks man, but i need more info about a font than that. Anyway I've found sun's API helpful to some extend.
    http://www.docjar.com/docs/api/sun/font/package-index.html

  • Using JDK 1.5 with Java Studio Creator 2

    I am trying to use Generics while using Java Studio Creator but keep getting errors due to the Studio using JDK 1.4 when compiling. Is there anyway to invoke the compilier to use JDK 1.5? Thanks!

    Hi,
    Please see this FAQ "Does Java Studio Creator support Java 5?" at
    http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configuration/index.html
    MJ

Maybe you are looking for