Tuesday 10 May 2016

Handle multiple Jdev installation in a single machine


Jdev create a system folder for its running, this folder store a lot information inside this folder. This folder responsible for


1. Storing the information about the projects open in the jdev.
2. Storing the code change (History information) of the projects.
3. Domain (Server) information.


Normally this folder is been created (hopefully you are using windows  machine) in your C:\Users\<yourUserName>\AppData\Roaming\JDeveloper. You can see a folder name as system12.*.*.


This folder is an important folder, if you are facing some server related issues, better to remove this folder as this will remove entire sever installation.

Once you run the server again from jdev it will re-create this folder, with server.


Some times you might be running multiple jdev in your machine, and want this folder to be generated in specific directory, you can do by

1. Changing this in jdev conf.

2. Creating a batch file and always running the batch file to run the jdeveloper.


=============Content of batch file====================

set MW_HOME=C:\Oracle\12cBPM\Middleware\
set JAVA_HOME=C:\Oracle\Java\jdk1.7.0_60
set PATH=%JAVA_HOME%\bin;c:\PYTHON27;%PATH%
set JDEV_USER_HOME=C:\Projects\12c\BPMDev
set FADEV_VERBOSE=true
set ORACLE_HOME=C:\Oracle\12cBPM\Middleware\Oracle_Home\jdeveloper
set CLASSPATH=""
set oracle.home=\Middleware\jdeveloper
set USER_MEM_ARGS=-Xms1024m -Xmx2548m -XX:MaxPermSize=2048M -XX:CompileThreshold=8000 -XX:+HeapDumpOnOutOfMemoryError
%MW_HOME%\Oracle_Home\JDeveloper\jdev\bin\jdev
================================


Explanation

set MW_HOME=C:\Oracle\12cBPM\Middleware\    ==> Your Middlware location.

set JAVA_HOME=C:\Oracle\Java\jdk1.7.0_60  ==> Your Java location

set PATH=%JAVA_HOME%\bin;c:\PYTHON27;%PATH% ( Specific to Fusion apps, normal users can remove this.)

set JDEV_USER_HOME=C:\Projects\12c\BPMDev  ==> Jdev User Home Folder where system folder will be created
set FADEV_VERBOSE=true

set ORACLE_HOME=C:\Oracle\12cBPM\Middleware\Oracle_Home\jdeveloper  ==> Your Oracle Home

set oracle.home=\Middleware\jdeveloper
set USER_MEM_ARGS=-Xms1024m -Xmx2548m -XX:MaxPermSize=2048M -XX:CompileThreshold=8000 -XX:+HeapDumpOnOutOfMemoryError
%MW_HOME%\Oracle_Home\JDeveloper\jdev\bin\jdev

Different options and jdev exe. Please refer to jdev guide to know more command line options.





Now store the above file in a .cmd file on your desktop and double click it. it will start running a command prompt.



No comments:

Post a Comment