Jdeveloper (9.0.3) & jdk1.4

Please help me here. I am working on one application that uses some new classes of JDK 1.4. I downloaded Jdeveoper version 9.0.3 and I installed it in my computer. Under the installation document I read that it is possible to use jdk 1.4 instead of 1.3.1. I followed the installation documentation the way it suppose to. I didn't have any problem to compile my application. The problem come when I want to run my application. the error message I am getting it "Could not initialize the Java virtual machine". I don't know what is wrong on my installation. I executed this command <jdev_install>\jdev\bin\InstallOJVM.bat c:\jdk1.4 to install ojvm in the jdk1.4 but my program can't run. I don't know what do.
Please help!!!!!!!!!!!!

Why is then InstallOJVM.bat present in the jdev directory??
Should we then reinstall back to 1.3.x using InstallOJVM.bat ??
I am deploying the application developed and built using J2SE 1.4.10 to standalone oc4j 9.0.3.4 instance but during execution program fails using a certain String method String.split() which is only available in JDK 1.4.
Is it possible to run 9.0.3 Jdev application developed using JDK 1.4 on OC4J standalone 9.0.3 instance??
many thanks,

Similar Messages

  • JDeveloper 3.1 and JDK1.2.2: are they REALLY compliant?

    Hi,
    I've already been developing in JDev 3.0 using Java 1.1.8 for a few months and have a number of EJB's deployed in an Oracle8i 8.1.5 database. These are accessed by a servlet which is called from a C++ application in order to populate the db tables. I'm using Java Webserver 2.0 and everything works fine.
    I've been upgrading to Java 2 with JDev 3.1, Oracle 8i R2, and JDK1.2.2. Everything again works fine when I am testing and debugging in the JDev 3.1 IDE but when I deploy to the Web server, my context lookup for the EJB published name freezes, returns an error status to the C++ app but does not display any error/exception msgs in the server console/log files.
    On investigating I found that the java.exe bundled with JDev 3.1 as the JDK1.2.2 version is actually NOT the java.exe that has been dispatched with the release version of JDK1.2.2! There are however two files in the bin directory of the JDK1.2.2 called oldjava.exe and oldjavaw.exe which correspond to the ones bundled with JDev 3.1?
    Could someone please explain what is going on? As it stands at the moment the version of java.exe with JDK1.2.2 does not work for my EJB's but if I replace it with the oldjava.exe, it works fine. Does this mean that JDev 3.1 is NOT actually JDK1.2.2 compliant or have I done something wrong?
    This is potentially a major problem for our projects so if anyone at Oracle has any info it would be greatly appreciated.
    Cheers
    Dave

    David,
    I changed Sun Java 1.2.2 VM to JDeveloper 3.0 1.1.8 VM and now I get this:
    [Root exception is java.lang.ClassNotFoundException: EJBBibles.BibleSearchHomeHelper]javax.naming.Na
    mingException: Unknown reasons
    at oracle.aurora.jndi.sess_iiop.SessionCtx._activate(SessionCtx.java:82)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.activate(SessionCtx.java:276)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(ServiceCtx.java:320)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:215)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:201)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at EJBBiblesServlet.Servlet1.init(Servlet1.java:36)
    at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
    at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHand
    ler.java:160)
    at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
    at java.lang.Thread.run(Thread.java:466)
    If I use JDev 1.2 VM, I get this:
    javax.naming.NotContextException: fumaca:2481:eatg/test/BibleSearchRemote
    java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(javax.naming.Name)
    java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void EJBBiblesServlet.Servlet1.init(javax.servlet.ServletConfig)
    void org.apache.tomcat.core.ServletWrapper.initServlet()
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org
    .apache.tomcat.core.Response)
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.HttpServletR
    equestFacade, org.apache.tomcat.core.HttpServletResponseFacade)
    void org.apache.tomcat.servlets.InvokerServlet.service(javax.servlet.http.HttpServletRequest
    , javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.Serv
    letResponse)
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org
    .apache.tomcat.core.Response)
    void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apach
    e.tomcat.core.Response)
    void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomca
    t.service.TcpConnection, java.lang.Object[])
    void org.apache.tomcat.service.TcpConnectionThread.run()
    void java.lang.Thread.run()
    Which means that there is a difference relative to the VM version.
    All the names are correct on 8i deployment. And all necessary files are on classpath, (including the EJB source and generated jars, that are also in the /lib on the context dochome).
    Any thoughts?
    Thanks,
    Eduardo
    null

  • JDeveloper Build Error with JDK1.3beta

    Dear JDev Team,
    I have a project that uses SQLJ and has been compiling fine with both JDK1.2.2 and 1.3beta. This morning it stopped working. There have been no great code changes. Once it fails using 1.3beta it will also fail using 1.2.2.
    There error message in the window is as follows. Your help would be very much appreciated, as this project cannot be built.
    Many thanks,
    Richard
    JniPortal for D:\Program Files\JDeveloper 3.0\java1.2\jre\bin\ferrari\jvm.dll reported
    InnerClasses attribute
    java.lang.IncompatibleClassChangeError: InnerClasses attribute
    int sqlj.runtime.profile.util.CustomizerHarness.customizeProfile(sqlj.runtime.profile.util.ProfileIOContext)
    void oracle.jdeveloper.sqlj.TranslatorInternal.customizeProfiles(borland.compiler.interfaces.Log)
    void oracle.jdeveloper.sqlj.TranslatorSystemImpl.customizeProfiles(borland.jbuilder.jipcbmj.portal.ComLog)
    void oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int, borland.javaport.JavaCallStack)

    Richard,
    SQLJ is not supported with JDK1.2 in JDev 3.0:
    (from the release notes)
    Using SQLJ under JDK 1.2
    The 8.1.5 SQLJ version distributed with this release of JDeveloper only supports JDK 1.1.X, it does not run under JDK 1.2. A future version of SQLJ will support JDK 1.2
    Having said that it looks like you have it working anyway :-)
    There have been no great code changes. Once >it fails using 1.3beta it will also fail >using 1.2.2.Try the following :
    -Locate the output directory from Project|Project Properties
    -Close JDeveloper
    -Go to the output directory and delete all the classes and profiles related to your SQLJ project
    -Restart JDev and recompile
    Hope this helps.
    Regards,
    Arun
    null

  • Does Jdeveloper 10g work on jdk1.4

    hi,
    I want to use jdeveloper , but the problem is i have Jdk1.4 , can i use jdeveloper with 1.4 or is 1.5 necessary.

    JDeveloper 10.1.3 does come with a JDK 1.5 VM, but you can develop JDK 1.4 projects with it
    Frank

  • Ridiculous bug in oracle jdeveloper compiler ojc with jdk1.4

    With simple class:
    public class Test
    public Test()
    public String toString()
    return null;
    public static void main(String[] args) throws Exception
    Test test = new Test();
    System.out.println("ooo" + test);
    After compile it with ojc (ojc Test.java) and run it with jdk 1.4.1_01 (java Test), it throws
    java.lang.NullPointerException
    at java.lang.String.concat(String.java:1541)
    But it works ok if compile it with standard java compiler(javac).

    Hi,
    Thanks for reporting this. It's a bug. I've logged it as 2809860, and you can track this on metalink.oracle.com.
    Brian
    JDev Team

  • JDeveloper & web services problems

    I've recently installed jdeveloper onto winXP pro from the jdev9i_902.zip download and installed to D:\jdeveloper. Following the instructions I also installed JDK1.3 to D:\jdk1.3.1_04. I ran the setup for oc4j.
    The problem I have is that when I followed the "Publish a stateless Java class as a Web service" tutorial, everything goes well until I run it. The errors produces are (taken from the tcptunnel output):
    ===========
    HTTP/1.1 100 Continue
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Date: Sat, 20 Jul 2002 18:35:21 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Sat, 20 Jul 2002 18:35:22 GMT
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Content-Length: 853
    Set-Cookie: JSESSIONID=72fa269c5c2f46889c1fe8e2b69b981d; Path=/
    Cache-Control: private
    Connection: Close
    Content-Type: text/html
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: error: Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:0: Class java.lang.Object not found in class oracle.j2ee.ws.InvocationWrapper.
    ^
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:8: Class java.lang.Object not found in import.
    import java.lang.Object;
    ^
    3 errors
    </PRE></BODY></HTML>
    =======
    The main section that concerns me is "Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). ", why is it using this?
    Any feedback on this is appreciated.
    Dave

    Hi Dave and Xuemei
    I'd like to try and help you on this question. Can you confirm the following for me:
    Did you download jdev9i_902.zip - the complete install or jdev9i_902_base.zip - the base install?
    Dave, in you mail you say you have downloaded the complete install. If this is the case, then you did not need to install JDK1.3 and change the SetJavaHome variable. If you now comment out that variable then JDeveloper should use its shipped JDK1.3
    The error message seems to indicate that a JDK1.4 version is being picked up by your system at runtime. Can you check if your classpath is set to this E:\ProgramFiles... directory. If so, can you try removing it (save it first!)
    JDeveloper is certified against JDK1.3.1_02
    Rgds
    Susan Duncan
    JDeveloper PM

  • Service Bus features not available in gallery (12.1.3)

    Hi,
    I just did a fresh install of SOA Suite 12.1.3 using the quickstart installer.
    When I run JDeveloper, I can't see the service bus components properly and can't create a new service bus project (see image).
    The SOA components look fine.
    The setup worked perfectly fine on a different machine when I did it earlier.
    Thanks,
    JV

    hi User,
    Thank you for the reply. What finally worked was changing the JDK that JDeveloper uses to use JDK1.7 instead of 1.8 (the default in my environment).
    (Even though I had set SetJavaHome in jdev.conf, the environment in this machine was still pointing to 1.8)
    Regards,
    JV

  • Unable to find main class

    Hello
    I am running Windows 2000 and can not launch Jdeveloper. I get two messages:
    1. The Oracle Java Virtual Machine is not installed.
    2. Unable to find main class, Class specified is: oracle/ideimpl/IdeMain
    I have downloaded jdev9i_902.zip and unzipped it to e:\jdeveloper.
    I downloaded jdk1.3.1_03 and jre1.3.1_03 annd installed them. Next I set JAVA_HOME to e:\jdk1.3.1_03 and added e:\jdk1.3.1_03\bin to my PATH.
    I changed SetHavaHome in jdev.conf to:
    SetJavaHome e:/jdk1.3.1_03
    If I leave this commented out I do not get error #2 listed above, but nothing else happens.
    I also left SetUserHomeVariable JDEV_USER_DIR blank and also tried SetUserHomeVariable JDEV_USER_DIR e:/jdeveloper.
    When I run InstallOJVM.bat I get the following
    E:\jdeveloper>InstallOJVM.bat e:/jdeveloper
    Error: cannot find JDeveloper installation in "E:\"
    I notice that the Install.html document makes a reference to <jdeveloper_root>\jdev\bin\jdev.conf. All the files were unzipped in one directory. There is not a directory structure (ie \bin).
    Oracle is installed on a network server. I have the Oracle 9i client on my workstation. Does Oracle need to be installed locally?
    Can anyone tell me what I am missing?
    Thanks

    This is the key piece of information:
    I notice that the Install.html document makes a reference to <jdeveloper_root>\jdev\bin\jdev.conf. All the files were unzipped in one directory. There is not a directory structure (ie \bin).
    If you unzipped jdev9i_902.zip using WinZip, be sure the "Use Folder Names" option is checked at the time you extract the archive, so that the directory structure will be preserved during extraction. You should be able to verify in WinZip that jdev9i_902.zip does have a directory structure.

  • ReadLine problem

    I have a problem in JDeveloper 3.2.3, using Java 1.3.1-02, usin this code:
    <Start code>
    import java.io.*;
    import java.util.*;
    public class test {
    static DataInputStream kbd = new DataInputStream(System.in) ;
    public static void main(String[] args) throws IOException
    String temp = "" ;
    System.out.println("Simple Java Isql.\n");
    System.out.print("Enter something or [ENTER] : ");
    System.out.flush();
    temp = kbd.readLine();
    public test (){
    <End code>
    This compiles with warning on line 15 (deprecated).
    When run it gives:
    "F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\bin\javaw.exe" -mx50m -classpath "F:\Program Files\JDeveloper 3.2.3\myclasses;F:\Program Files\JDeveloper 3.2.3\lib\jdev-rt.zip;F:\Program Files\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;F:\Program Files\JDeveloper 3.2.3\lib\connectionmanager.zip;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\lib\dt.jar;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\lib\rt.jar;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\lib\i18n.jar" test
    Simple Java Isql.
    Enter something or [ENTER] : java.io.IOException: The handle is invalid
         at java.io.FileInputStream.readBytes(Native Method)
         at java.io.FileInputStream.read(FileInputStream.java:183)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
         at java.io.DataInputStream.readLine(DataInputStream.java:449)
         at test.main(test.java:15)
    Exception in thread "main"
    If deprecation is handled according manual:
    static DataInputStream kbd = new DataInputStream(System.in) ;
    replaced with:
    static BufferedReader kbd
    = new BufferedReader(new InputStreamReader(System.in)) ;
    it compiles without error or warning.
    Running it shows:
    "F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\bin\javaw.exe" -mx50m -classpath "F:\Program Files\JDeveloper 3.2.3\myclasses;F:\Program Files\JDeveloper 3.2.3\lib\jdev-rt.zip;F:\Program Files\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;F:\Program Files\JDeveloper 3.2.3\lib\connectionmanager.zip;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\lib\dt.jar;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\lib\rt.jar;F:\Program Files\JDeveloper 3.2.3\jdk1.3.1_02\jre\lib\i18n.jar" test
    Simple Java Isql.
    Enter something or [ENTER] : java.io.IOException: The handle is invalid
         at java.io.FileInputStream.readBytes(Native Method)
         at java.io.FileInputStream.read(FileInputStream.java:183)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:223)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
         at java.io.FilterInputStream.read(FilterInputStream.java:93)
         at java.io.InputStreamReader.fill(InputStreamReader.java:173)
         at java.io.InputStreamReader.read(InputStreamReader.java:249)
         at java.io.BufferedReader.fill(BufferedReader.java:139)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at test.main(test.java:16)
    Exception in thread "main"
    The same happens using java 1.2.2: (same code):
    Exception in thread "main"
    "F:\Program Files\JDeveloper 3.2.3\java1.2\jre\bin\javaw.exe" -mx50m -classpath "F:\Program Files\JDeveloper 3.2.3\myclasses;F:\Program Files\JDeveloper 3.2.3\lib\jdev-rt.zip;F:\Program Files\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;F:\Program Files\JDeveloper 3.2.3\lib\connectionmanager.zip;F:\Program Files\JDeveloper 3.2.3\java1.2\jre\lib\rt.jar" test
    Simple Java Isql.
    Enter something or [ENTER] : java.io.IOException: The handle is invalid.
         java.lang.String java.io.BufferedReader.readLine(boolean)
         java.lang.String java.io.BufferedReader.readLine()
         void test.main(java.lang.String[])
    Exception in thread main
    and in java 1.1.8:
    "F:\Program Files\JDeveloper 3.2.3\java\bin\javaw.exe" -mx50m -classpath "F:\Program Files\JDeveloper 3.2.3\myclasses;F:\Program Files\JDeveloper 3.2.3\lib\jdev-rt.zip;F:\Program Files\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes111.zip;F:\Program Files\JDeveloper 3.2.3\lib\connectionmanager.zip;F:\Program Files\JDeveloper 3.2.3\java\lib\classes.zip" test
    Simple Java Isql.
    Enter something or [ENTER] :
    java.io.IOException: read error
         at java.io.FileInputStream.read(FileInputStream.java:158)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:193)
         at java.io.FilterInputStream.read(FilterInputStream.java:101)
         at java.io.InputStreamReader.fill(InputStreamReader.java:158)
         at java.io.InputStreamReader.read(InputStreamReader.java:229)
         at java.io.BufferedReader.fill(BufferedReader.java:136)
         at java.io.BufferedReader.readLine(BufferedReader.java:224)
         at test.main(test.java:16)
    Same applies to this (more minimized) code (found elsewhere):
    <start code>
    import java.io.*;
    import java.util.*;
    public class test2 {
    public static void main(String[] args) throws IOException {
    try {
    BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
              String s=reader.readLine();
         if(s==null) {
                   System.out.println("Error: reached end of file!");
                   System.exit(1);
              System.out.println("You typed:"+s);
         } catch(IOException e) {
         System.out.println("Could not read line: "+e);
    <end code>
    Colleagues tried this as well but got the same error.
    Using other IDE runs this code without problem.
    What can be wrong?

    Hey ,
    Please avoid to use any proprietary editor if u are using for coding java which facilate coding and execution enviornment also (e.g. JCreator )
    Use simple notepad and run it on cosole.
    I have tried it 2 ways
    with editor it gives same problem as u stated.
    and
    when used with normal nitepad and console it working okey

  • JDeveloper 10.1.3.5.0 and jdk1.7.0_06

    Hi,
    I'm trying to use JDeveloper 10.1.3.5.0 with jdk1.7.0_06 and i'm getting the error "Unable to launch the Java Virtual Machine" at path... when trying to launch JDeveloper.
    I checked the path and jvm.dll is on the right path : path\jdk1.7.0_06\jre\bin\client\jvm.dll.
    I changed the jdev.conf with SetJavaHome set to path\jdk1.7.0_06.
    What other configuration should I make ?
    How do I know which Java version is supported by this version of JDeveloper ?
    Thank you for your help...
    Cheuyi

    Read the install guide for your version and you'll see that 10.1.3 is not certified with JDK 1.7
    Try using JDeveloper 11.1.1.6 instead.

  • AJAX code compilation error in jdk1.4.2_15 in JDeveloper 10.1.3.3.0

    I am using AJAX for search functionality in our appication which involves ADF JSF,jspx pages in JDeveloper 10.1.3.3.0. When I compile the following code it compiles fine without error in jdk1.5 but gives compilation error in jdk1.4.2_15.
    public List<String> autoCompleteFindUniqueNames(String searchString){
    UniqueEmployeeNamesImpl hits = this.getUniqueEmployeeNames1();
    hits.setNamedWhereClauseParam("searchPrefix",searchString.toUpperCase()+ "%");
    hits.setRangeSize(5);
    hits.executeQuery();
    ArrayList resultset = new ArrayList((int)hits.getEstimatedRowCount());
    for (Row row:hits.getAllRowsInRange()){
    resultset.add((String)row.getAttribute("LastName"));
    return resultset;
    Compilation error giving on the line " for (Row row:hits.getAllRowsInRange()){ "
    and it says " Error ; Expected "
    Can somebody helpme out what should I change on this line in order to compile this ?
    Thanks in advance,
    Ram

    Frank,
    Thanks for your response. I removed <String> after LIST and it compiles. But the problem
    is with the following iterator code which is giving error while compiling in jdk1.4.2_15. Trying to find out the equivalent iterator code of the following which is in jdk1.5
    Row row:hits.getAllRowsInRange()
    Thanks,
    Ram

  • Configuring JDeveloper 3.2.3  to support JDK1.4

    Hi All,
    I am in a serious jam, I have downloaded the new JDK1.4 beta2
    but have realized that it is not immediately supported by
    JDeveloper. This there a work around for this cause I could
    really do with the full use of the JDev instead of running
    everthing through the command prompt.
    I would appreciate any response to this.
    Thanks in advance
    john

    Hi,
    Thanks for the reply. However, You are saying that the JDK1.4 is
    not supported in the 3.2.3 then is it supported in any of the
    other jdev?????
    I recently saw a posting on this forum by someone who was using
    1.4 with jdev, they didn't explain how they did it but just kind
    of said that it they did it and that it was fairly straight
    forward to do, so basically what I am asking is that is it
    possible to do some kind of a workaround and if so could tell me
    how to do it cause I anm in a serious jam and am going crazy
    having to use the dos prompt
    Thanks
    john

  • BUG; jdk1.3; Gridcontrol; Attention JDeveloper Team

    I have found yet another bug in the implementation of gridcontrol and jdk1.3.
    I have the following renderer for my text fields.
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * A Class class.
    * <P>
    * @author Linda B. Rawson
    public class DefaultTextRenderer extends DefaultTableCellRenderer
    * Constructor
    public DefaultTextRenderer() {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
    Component comp = super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    String myFlag = "";
    try {
    // this row index must correspond to the run flag column in the gridcontrol
    myFlag = (table.getValueAt(row,15).toString());
    myFlag = (myFlag == null) ? "" : myFlag;
    if (myFlag.equals("P") ) {
    comp.setBackground(Color.lightGray);
    } else if (myFlag.equals("S") ) {
    comp.setBackground(Color.yellow);
    } else if (myFlag.equals("F") ) {
    comp.setBackground(Color.red);
    } else {
    comp.setBackground(Color.white);
    } //This is to catch the null row in gridcontrol from jdev bug
    catch (NullPointerException e) {
    return comp;
    I implement the renderer like this:
    DefaultTextRenderer textRenderer = new DefaultTextRenderer();
    TableCellRenderer renderer;
    renderer = textRenderer;
    m_table = gridControl.getTable();
    m_table.getColumnModel().getColumn(1).setCellRenderer(renderer);
    In JDK 1.2 it colors the appropriate row just like I want.
    In JDK1.3 it will not do the first occurance of the row. In otherwords if I want the first row in the grid colored it fails.
    You need to test this in your upcoming version.
    Linda
    null

    Hi,
    we have faced similar compatibility problems
    when testing our application using JDEV3.2
    and JDK1.3 (Browser crashed);
    Since we use JDK1.3.1 (it has been released aready by SUN) this severe problem vanished.
    I really share your concerns about the grid
    control in JDEV3.2.3 and I hope that we find
    a way to track the successful treatment of
    BUG 1806180!
    Have fun
    @i

  • How to manage JDK1.5 Apt task with jdeveloper 10.1.3.4 ?

    I would like to use apt task in jdeveloper.
    How to include this task in jdev 10.1.3.4 ?

    Frederic,
    JDev 10.1.3.4 has built-in support for working with ANT. The included version is 1.6.5. You can use the "New!" menu option to create a new build.xml file and edit it from within JDev. If you want to use newer versions of ANT, you can edit individual project properties to use a different (you-supply-it) version. You can also add addtional jars to the ANT classpath in that way. You should be able to use the APT task in your build file.
    There's a [url http://www.oracle.com/technology/products/jdev/viewlets/1013/agile_development_viewlet_swf.html]screencast on OTN that shows some ANT integration (among other things).
    John

  • Jdk1.4 with JDeveloper 3.2.3

    Is it possible to use JDK1.4 with JDevloper? When I try to compile using jdk1.4 as "target jdk version" I get an Errorcode saying that the class has the wrong version (48.0), and that it should be 45.3 or 46.0...
    Help would be appreciated!
    Sincerely
    Mattias Persson

    Is it possible to use JDK1.4 with JDevloper? When I try to compile using jdk1.4 as "target jdk version" I get an Errorcode saying that the class has the wrong version (48.0), and that it should be 45.3 or 46.0...Unfortunately it's not, 3.2.3 was written way before 1.3 even and can't handle the newer classfile format, Java is almost always backwards compatable (1.1 code will run on 1.4), but not necessarily the other way around.
    Rob

Maybe you are looking for

  • Cannot convert ÿØÿà of type class java.lang.String to class BFileDomain.

    Hi All, I am using Jdeveloper 11.1.2.3.0. I have a scenario of making an ADF page where I have a IMAGE field to show on the page. So,I have a table called "PRODUCT" with fields called photo with BFILE type. Now when I the data i have inserted using t

  • BOM component in service order

    Hi guys, I have plant A as a maintenance planning plant for plant B and C and equipment 123 in plant B. Can I create an equipment BOM in maintenance planning plant A and when I explode the BOM in my service order, it will list out the components to b

  • CRM service interval template can't be linked.

    Hi, every friends. I am developing CRM service function based on CRM7.0. I use service interval template which be linked to a service product master and use PGname : RSPPFPROCESS   to create service order from service contract. But the template do no

  • UWL task item - On clicking shows Portal runtime error

    Hi Experts When clicking a task under Task tab in Inbox of UWL I am getting error *Portal runtime error. An exception occurred while processing your request. Send the exception ID to your portal administrator. Exception ID: 04:17_20/05/10_0056_319362

  • Synchronous call with RemoteObject

    Is it possible to make a synchronous call with a RemoteObject? If so how? My application has to wait for the result. I cannot use result handler. Pls help friends.