JDeveloper and Upgrading Your JDK on Ubuntu

One little gotcha, if you, as I did recently, upgrade your JDK on Ubuntu then you may have to make sure you reflect that change in a couple of places for JDeveloper to stay happy.
Assuming that you've installed from the jar version of the JDeveloper installer, then the JDK that you specified at install time will be recorded in the .jdev_jdk file in your home directory.
However, be aware that this is not the only reference to the absolute path of the JDK. When you run the embedded WebLogic for the first time then the
.jdeveloper/system11.1.1.3.37.56.60/DefaultDomain/bin/startWebLogic.sh
script will be created, and associated with that, the setDomainEnv.sh script in the same directory.
So, if you do want to change the JDK location be sure to change this file as well.

Finally, if you blow the default domain away then you need to make sure that the wlst scripts that re-create it will correctly pick up the new JDK location.
(or of course do everything with symbolic links)
Comments:

Post a Comment:
Comments are closed for this entry.
About

Hawaii, Yes! Duncan has been around Oracle technology way too long but occasionally has interesting things to say. He works in the Development Tools Division at Oracle, but you guessed that right? In his spare time he contributes to the Hudson CI Server Project at Eclipse
Follow DuncanMills on Twitter

Note that comments on this blog are moderated so (1) There may be a delay before it gets published (2) I reserve the right to ignore silly questions and comment spam is not tolerated - it gets deleted so don't even bother, we all have better things to do with our lives.
However, don't be put off, I want to hear what you have to say!

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today