Monday, July 15, 2013

JDeveloper 12c is not starting after successful installation

Hey All!

Last week, JDeveloper 12c was released and since I've been working with ADF during this year, I wanted to try it out right away. However, after successful installation, it didn't started... I work on Ubuntu 13.01 and have successfully installed JDeveloper 11gR1 and 11gR2 before and it was pretty smooth so I thought it would be the same with the new release.

Anyway, I started to check the error log and found that something was wrong with the "Open File Limit" property of my Ubuntu. The funny thing is that it is well documented on the Installation guide of JDeveloper 12c... 


I made the suggested change (I had to reboot) and then, tried to run JDeveloper again, this time I got a different error message saying that it couldn't write core dumps or something... It also suggested me to execute this command before running JDeveloper again:

ulimit -c unlimited

And so I did, but no luck. When I tried to run JDeveloper again, I got this error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x6537f1e0, pid=14655, tid=1756736320
#
# JRE version: 7.0_15-b33
# Java VM: Java HotSpot(TM) Server VM (23.7-b01 mixed mode linux-x86 )
# Problematic frame:
# C  0x6537f1e0
#
# Core dump written. Default location: /home/aalopez/development/Oracle/Middleware_12.1.2/Oracle_Home/jdeveloper/jdev/bin/core or core.14655
#
# An error report file with more information is saved as:
# /home/aalopez/development/Oracle/Middleware_12.1.2/Oracle_Home/jdeveloper/jdev/bin/hs_err_pid14655.log
[thread 1764014912 also had an error]
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
/home/aalopez/development/Oracle/Middleware_12.1.2/Oracle_Home/jdeveloper/jdev/bin/../../ide/bin/launcher.sh: line 603: 14655 Aborted                 (core dumped) ${JAVA} "${APP_VM_OPTS[@]}" ${APP_ENV_VARS} -classpath ${APP_CLASSPATH} ${APP_MAIN_CLASS} "${APP_APP_OPTS[@]}"


plop! I had no idea what to do... However, as curious as I am, I tried to run JDeveloper using root user (you never know, right?). So I entered the following command on my console, inside the JDeveloper bin directory:

sudo ./jdev

The JDeveloper bin directory in my case is at:

/home/aalopez/development/Oracle/Middleware_12.1.2/Oracle_Home/jdeveloper/jdev/bin/

Once run with root user, JDeveloper started working!! yeii!! The only pitfall is that every new project/file that you create with JDeveloper, will be owned by root user...


What I like about this new release:

  • Adoption of Java EE 6.
  • Adoption of JDK 7.
  • The new ADF Faces components.
  • The new logo.
  • New version of ADF Essentials.

I highly recommend you to try this new release.

see ya!

7 comments:

  1. The same problem on ubuntu 13.04. The problem is the jdk 7 provided with JDeveloper 12c, because JDeveloper works fine with OpenJDK 7. You must change the JDK home in jdev.conf file. On my ubuntu 13.04 I made the following changes:

    "SetJavaHome /home/ss/Oracle/Middleware/Oracle_Home/oracle_common/jdk"
    to
    "SetJavaHome /usr/lib/jvm/java-7-openjdk-amd64/"

    ReplyDelete
    Replies
    1. I tried it, but it is not works as it is written:

      Oracle JDeveloper 12c 12.1.2.0.0
      Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.

      Error: Java home /usr/lib/jvm/java-7-openjdk-amd64//bin/java is not a J2SE SDK.
      Running JDeveloper under a JRE is not supported.

      If the Java VM specified by the SetJavaHome is actually a full J2SDK installation
      then add 'SetSkipJ2SDKCheck true' to ~/Middleware/Oracle_Home/jdeveloper/jdev/bin/jdev.conf

      Thus it is needed to add SetSkipJ2SDKCheck true in the jdev.conf.

      Another think is, that there are two jdev.conf. Second one is in ~/Middleware/Oracle_Home/inventory/Templates/jdeveloper/jdev/bin. So i did changes to the both. Than Jdeveloper started under the my private account.

      Delete
    2. hariprasad, you have to install the complete jdk, maybe you have only the jre... it happended to me as well, so I had to run the following in a terminal: sudo apt-get install openjdk-7-jdk

      Delete
  2. Same here with ubuntu 13.04 64bit processor, submitted to bug report site.

    ReplyDelete
  3. Fix worked on Ubuntu 13.04 64bit

    ReplyDelete
  4. in Linux Mint 15 - tried with OpenJDK and the application did NOT crash, but i was unable to create jdbc connections. after running with Jdeveloper's provided jdk as root, everything was working.

    ReplyDelete