Showing posts with label JDeveloper. Show all posts
Showing posts with label JDeveloper. Show all posts

Wednesday, 20 August 2014

Jdev JAVA_HOME

JDeveloper Set Java

It is quite easy to change the java used by jdev, all you need to do is find the jdev.conf file and change the line that has SetJavaHome in it.

This should be at the top of the file somewhere.

My config file is located at: /home/f/Oracle/Middleware11117/jdeveloper/jdev/bin

SetJavaHome /usr/lib/jvm/java-1.7.0-openjdk-amd64

#bearMan

Tuesday, 24 June 2014

JDeveloper - SVN Issues

JDeveloper - SVN Issues

When working with SVN Projects in JDeveloper there are some issues, especially if you are not using JDevelopers Versioning tools. When Opening a SVN project it will not open folders within projects.

The way to solve this is by going to Tools -> Preferences -> Versioning.

Before Image:
JDeveloper SVN Issue, Before Correction
JDeveloper SVN Issue, Before Correction

JDeveloper SVN Issue, Before Correction
JDeveloper SVN Issue, Before Correction

Note: How the top two options have been unchecked. 
Both:
  • Use Navigator State Overlay Icons
  • Use Navigator State Overlay Labels
#bearMan

Friday, 10 January 2014

How To: Install Multiple JDevelopers on One Machine

Having multiple JDevelopers

How To Make the Most of your computer

As a Developer we are often required to work with multiple JDeveloper versions at any one time.

Installing them may be tricky if you are doing it for the first time.

You can do this by creating a new MiddleWare home

I will be demonstrating some of the things I do when I am installing a new JDev Version.

I will be working with JDeveloper 11g (11.1.2.4.0)

Step 1:

Step 2:
As you can see I have two other versions, 11.1.1.6 and 11.1.1.7
I create a new Middleware home 11124 (11.1.2.4)

That is the trickiest step in the process.

Step 3:

Using the typical Install.

Step 4:

If the Installer did not find a Java Version, If you have Java, you will need to find the Home:
Mine was :
C:\Program Files\Java\jdk1.7.0_45
Otherwise you can get it from here:
                http://java.com/en/download/index.jsp

Step 5:
Notice the Path:
Middleware11124

Step 6:

Step 7: 
The Install and completion.


Congratulations you are done!

#bearMan

Wednesday, 8 January 2014

JDeveloper: Making the most of your IDE, Database Date

JDeveloper Database Date

Using JDeveloper and making a user Friendly date


When I install JDeveloper or SQLDeveloper the first thing I do it I change how the dates are displayed.

You need to got o Tools -> Preferences


Click on Database -> NLS


Change your Date Format to:
DD-MON-RRRR HH.MI.SS AM

This will display the dates like:
01-OCT-2013 12.00.00 AM

#bearMan

Wednesday, 6 November 2013

JDeveloper: Making the most of your IDE, Database Connections

Adding Database Connections within seconds to a new ADF application

When creating new applications, you can simply add new Database connections to the application within a matter of seconds, all you need is the Database Connection already in your IDE.

Open Database Navigator and Click and Drag your Connection onto your Application.

Select the connection you want
Select Connection
Drop the connection onto the applicaiton
Drop Connection Onto Application
 The connection will then be inside the application
Connection in Application

#bearMan

Friday, 1 November 2013

JDeveloper: Making the most of your IDE, Quick DB Check

Quick DB Check

Have you every wanted to quickly double check your database is connecting to the correct SID or IP?

All you need to do is, click on Application Resources and expand connections > Database and select the connection you want to check.


#bearMan, save some time :)

Monday, 21 October 2013

JDeveloper: Making the most of your IDE, Java Block Coloring

Java Block Coloring

JDeveloper has an awesome feature of coloring some of your java Code Blocks.

This is a nice feature and can be useful when Coding.

Below is an image of the "default" look.

No Coloring
You can enable this through the icon pointed out below.
Icon to Color
An example of what the code looks like when its colored.
Code Colored

Enjoy!

#bearMan

Friday, 18 October 2013

JDeveloper: Making the most of your IDE, External Applications

External Application

I had this issue of when I am working on my projects I either get lazy and don't want to navigate to where the application is, or I need to edit a file outside of JDeveloper.

JDeveloper has built in functionality to allow us to execute external application. This is how to do it.

Step 1: Click on tools and then External Tools
Step 2: Click on Find Tools
 If you are happy with just those Tools then proceed to step 9. If you want to include an external tool, then you can continue to step 4.

Adding a "External Tool Manually"

Step 4: Click on new after that, a popup screen will be displayed.
Step 4: Keep the Tool Type as External Program, and click next.
Step 5: Browse to the application you want, in "Program Executable", in the "arguments"choose insert, all the rest should be inserted automatically.
Step 4 and 5

Macro, Argument
Step 6: Choose for yourself, what you want to name the shortcut and add a ToolTip.
Viewing Names

Step 7: The next step, you will be selecting where the application will be displayed.
Shortcut Location
 Step 8: Once you have completed the location settings, you choose under what conditions your shortcut will be displayed / enabled. Once you have done this, click Finish.
Display Criteria
Step 9: Save Changes, and click Ok.

Results




#bearMan out.

Monday, 14 October 2013

JDeveloper: Making the most of your IDE, Application Navigator

Application Navigator Project Explorer

So sometimes, you want to view your application in a different light or with a different level of package names.

Here is my default view of a basic Project.
To change how many packages you see, or how the project is displayed, you must click on the highlighted icon on the image below.


Note: View Controller and Model packages are controlled independently 




Here are my favorite Package Levels, they range from between 2 and 4.


#bearMan

Wednesday, 11 September 2013

JDeveloper Basics - Resetting Integrated Weblogic Server

JDeveloper Basics - Resetting Integrated Weblogic Server

Have you every had a problem with JDevelopers Integrated Weblogic Server, or just want to reset your Integrated Weblogic Server. This is the guide for you.

Many Guides say you need to delete your whole "system11.1.1.6.38.62.29" / "system" folder. That makes you loose all your JDeveloper settings. Rather than doing that, go into your JDeveloper system folder, and delete the folder "DefaultDomain"

Windows:

Go to

This can be in two places namely run: 
%appdata%/jdeveloper/
Windows + r
 








or in the address bar within windows explorer.



Linux


You can:
cd ~/.jdeveloper/

OS-Done:

Once you are int hat folder, and you have multiple JDevelopers installed, you must go into the folder that is "system" + JDeveloper Version. (You can find that out in my previous post.

Go into that folder, and delete the DefaultDomain Folder.

Note:

This will not work if you are currently running JDeveloper

#bearMan.

Wednesday, 28 August 2013

JDeveloper + Weblogic Error PermGen space

When I was starting my Weblogic I got an Error:
The WebLogic Server encountered a critical failure
Reason: PermGen space
The solution can be found on the oracle Forums here:
https://forums.oracle.com/thread/881103

or you can Follow this guide:
You must install JRockit onto your computer.
Here is a guide for linux:
JRockit Installation on Linux

Once JRocket has been installed

You should change the "setDomainEnv" file. Which can be found in
Windows under"
<JDEV_HOME>/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/bin/setDomainEnv.cmd
in Linux:
 cd ~/.jdeveloper/system11.1.1.0.31.51.88/DefaultDomain/bin/setDomainEnv.sh

Note: the "system11.1.1.0.31.51.88" is variable and will change depending on what version of JDeveloper you are running.

Once inside there, you must find the lines where they are setting "JAVA_HOME"

There is a comment
"We need to reset the value of JAVA_HOME to get it shortened AND"
What you can do, is after that set JAVA_HOME to where you installed JRockit.
Mine was:
JAVA_HOME="/u01/app/oracle/middleware/jrockit-jdk1.6.0_45-R28.2.7-4.1.0"
# We need to reset the value of JAVA_HOME to get it shortened AND
# we can not shorten it above because immediate variable expansion will blank it
This will set your Weblogic to use JRockit.

#bearMan out