If you try to open standard Java class from JDK in JDeveloper 12c, you will notice that it does not open Source.
This happens as there is no JDK 7 source included in default installation. You can see this by using Tools - Manage Libraries menu. Select Java SE Definitions tab, you will notice there is no Source Path.
You can first download JDK 7 Source from http://sourceforge.net/projects/jdk7src/files/jdk7u9/2012-10-27/. Download src-jdk.zip file and place it in oracle_common/jdk folder as shown below.
Now go back to JDeveloper. Go to Java SE Definitions under Tools - Manage Libraries. Select 1.7.* definition under User (not under Extension), and add src-jdk.zip to Source Path. JDK definition under Extension is Read Only, but when you restart JDeveloper after this change, Source Path will be updated for Extension JDK as well.
Now restart JDeveloper. You will now see source for JDK 7 java classes.
Showing posts with label JDeveloper. Show all posts
Showing posts with label JDeveloper. Show all posts
Sunday, November 24, 2013
Saturday, August 10, 2013
Installing Jersey on JDeveloper 11.1.1.x
In order to create REST Services using JDeveloper, you will need to include Jersey jar files in your Projects. I guess you can create other implementations, but Jersey works just fine.
I will be using Jersey 1.17.1, which works great with JDeveloper 11.1.1.x. I have downloaded jersey-archive-1.17.1.zip and jersey-bundle-1.17.1.jar. Ideally you just need jersey-bundle-1.17.1.jar, but it appears that we also need to include asm-3.1.jar from jersey-archive-1.17.1.zip file.
You can just setup Jar files as dependencies on your Project, but it works best if you create a JDeveloper Library. You can install this library on your Developer machine as well as on your Build machine.
Download - My Extensions Zip Archive
Unzip downloaded myextensions.zip in c:\temp. Using command prompt, go to c:\temp\myextensions. You can now run setup.bat file to install Jersey Library in your JDeveloper installation. You will need to set JDEVELOPER11_INSTALL_HOME environment variable, which should point to your JDeveloper installation.
You can open setup.bat to see what it will copy to your JDeveloper installation. You can obviously modify / extend this to install other types of Libraries.
Once you run setup.bat, start JDeveloper and see Library named My Jersey. (Tools - Manage Libraries).
I will be using Jersey 1.17.1, which works great with JDeveloper 11.1.1.x. I have downloaded jersey-archive-1.17.1.zip and jersey-bundle-1.17.1.jar. Ideally you just need jersey-bundle-1.17.1.jar, but it appears that we also need to include asm-3.1.jar from jersey-archive-1.17.1.zip file.
You can just setup Jar files as dependencies on your Project, but it works best if you create a JDeveloper Library. You can install this library on your Developer machine as well as on your Build machine.
Download - My Extensions Zip Archive
Unzip downloaded myextensions.zip in c:\temp. Using command prompt, go to c:\temp\myextensions. You can now run setup.bat file to install Jersey Library in your JDeveloper installation. You will need to set JDEVELOPER11_INSTALL_HOME environment variable, which should point to your JDeveloper installation.
You can open setup.bat to see what it will copy to your JDeveloper installation. You can obviously modify / extend this to install other types of Libraries.
Once you run setup.bat, start JDeveloper and see Library named My Jersey. (Tools - Manage Libraries).
Subscribe to:
Posts (Atom)





