Monday Oct 08, 2007

Solaris: Installing package in non default location

To have a greater control while installing packages in solaris, specify "-a" option while running the pkgadd command as below. What the command does is that it will install the package to your specified directory rather than installing in the default location.

1. [First copy the installation administration file to your custom directory]

  • bash-2.05# cp /var/sadm/install/admin/default  /tmp/default 

 

2. [Now edit the installation administration file and specify the "basedir" parameter to the specific location where you want to install]

  • bash-2.05# vi /tmp/default

mail=
instance=unique
partial=ask
runlevel=ask
idepend=ask
rdepend=ask
space=ask
setuid=ask
conflict=ask
action=ask
networktimeout=60
networkretries=3
authentication=quit
keystore=/var/sadm/
proxy=
basedir=/space/mydir

 

3. [Now run pkgadd command]

  • pkgadd -d . -a /tmp/default  <package-name>

 

courtesy: siddesh kamath

Monday May 28, 2007

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

When i run /usr/sfw/bin/ant command i get the below exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

Workaround:

1. Set ANT_HOME=/usr/sfw
2. Set JAVA_HOME=/usr/jdk/entsys-j2se/
3.  /usr/sfw/bin/ant command should run successfully now

Note: On a PortalServer installed on Linux system, ant can be found in /opt/sun/bin/ant
 

About

I'm a Quality Engineer at Sun Microsystems. Here in this blog, you may find information about Software Testing, Portal Server, Virtualization, Web2.0 and Misc Technical topics. The views expressed here are personal and does not reflect that of my employer

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
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