Fix for “JDeveloper Hangs on Windows 8 when viewing .amx page on preview mode”

One of the main reasons of creating this blog, is to share some tips & tricks that I couldn’t find on Google at first glance when I have a situation to solve. So my first post is about fixing a  problem on Jdeveloper when you try to preview an amx page while developing an ADF Mobile application on Windows 8 64 bits.

If you:

  1. Perform the installation of Jdeveloper 11.2.4 on your Windows 8 64 bit machine using the default settings, and with default settings I mean just click next.. next.. next until the installation of JDeveloper is completed.
  2. Download the latest ADF Mobile extension.
  3. Start developing your first ADF Mobile application and you want to preview your work.

Then your JDeveloper may hang like this (sometimes showing an alert saying “Unexpected Error”) :


This of course is a JDK error, and since we kept the default JDK that comes with JDeveloper when we downloaded the ADF Mobile extension, this error will not be resolved even if we change our Java Home to point to a proper 64 bit JDK 6 version. So, how to fix this? Unfortunately, since we’ve already downloaded the latest version of ADF Mobile extension we will have to uninstall JDeveloper (this because uninstalling a JDeveloper extension can be really tricky and it’s best if you start clean).

You can perform the following steps to accomplish this:

  1. Uninstall Jdeveloper  and make sure that you delete all files and folders under this Middleware home installation.
  2. Download and install  JDK 1.6.0_45 64 bits from here
  3. Reinstall Jdeveloper with default settings (don’t worry we will change this later ).
  4. Now, Before you open Jdeveloper after install, go to your <Middleware_Home>\jdeveloper\jdev\bin folder where we just installed JDeveloper.
  5. Open the jdev.conf file using notepad and comment the line “SetJavaHome C:\Oracle\Mobile1\jdk160_24”Screen Shot 2014-03-23 at 6.04.03 PM
  6. Start Jdeveloper, and when prompted about JDK home, point to the JDK 1.6.0_45 that we just installed in previous steps.                                                                                                                       Screen Shot 2014-03-23 at 6.05.34 PM
  7. Download the latest ADF Mobile extension.

After these steps are completed, when you test an amx page on preview mode you should  see the page correctly:

Screen Shot 2014-03-23 at 6.11.54 PM

Please comment if this was helpful for you!


Tags: , , ,

About Christian Silva

I'm an IT specialist and friend who likes to keep learning about new technologies. As an Oracle ADF Implementation Specialist, I've decided to create this blog to share my knowledge in ADF Mobile, ADF and any other topic I believe I can contribute with.

7 responses to “Fix for “JDeveloper Hangs on Windows 8 when viewing .amx page on preview mode””

  1. MSallam says :

    Many Thanks

  2. CCedillo says :

    Thanks for sharing your knowledge!

  3. EMata says :

    Thanks Mr. Silva, very helpful 😉

  4. Anil says :

    Thanks Silva!!

  5. padma says :

    Thank you very much. It is very helpful and working fine

  6. Akeem Kareem says :

    Thank you very much. From Nigeria

  7. lyn says :

    so great thanks!!!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: