Saturday, February 7, 2015

Multiple JDeveloper installations on your laptop

 For reasons described below, it will be nice to setup different workspace(different system and mywork folder).
  1. It is very much possible that you may have multiple JDeveloper versions installed on your workstation. For example, 11g, 12c and possibly more than one version for each. You would want to make sure that you are opening your applications in proper version of JDeveloper.
  2. You may have different stream of code development in progress at the same time for your application and it will be nice to organize that in different folders.
  3. Also, if you are coming from Eclipse background, you may be missing workspace concept which is default for eclipse.
 Here is how you can do that.

Create a short cut using something like this, which will create workspace for 12.1.3.

C:\installs\oracle\jdev\jdev121300\jdeveloper\jdev\bin\jdev64W.exe -J-Dide.user.dir=D:\jdev121300\ws1

Or modify it for 12.1.2 as shown below.
C:\installs\oracle\jdev\jdev121200\jdeveloper\jdev\bin\jdev64W.exe -J-Dide.user.dir=D:\jdev121200\ws1

Be sure to import preferences from previous workspace, so that you do not have to re-configure jdeveloper preference. You will be prompted for this only first time when you start JDeveloper with specific shortcut.

Now you can check out code in D:\jdev121300\ws1 and work with 12.1.3 and that will be independent of code checked out for 12.1.2 in D:\jdev121200\ws1. Note that folder names are mapped to jdeveloper version for easier identification.

Sunday, February 1, 2015

JDeveloper external tool to clean classes folder

JDeveloper Clean All command does not appear to be deleting contents of classes folder, this can lead to issues as you may be referencing old class (class file may have been refactored to other package). In this blog entry, i would describe steps to create external tool to delete classes folder. I will describe two options, 1) using cmd.exe and 2) using ant build file.

External tool (cmd.exe) to delete classes folder




External tool (ant build file) to delete classes folder

 






How to run external tool created above