Skip to main content

Posts

Showing posts from 2010

Never to forget - UNIX/JAVA commands

Creating executable JAR file without using Fat-Jar plug-in. 1.      Creating an executable JAR from a Java code & how to execute it: o     You need to create MANIFEST.MF file at the root level with the following structure. Manifest-Version: 1.0 Main-Class: EncryptionTest Class-Path: bcprov-jdk16-145.jar o     where, "EncryptionTest" is main class and "bcprov-jdk16-145.jar" is external jar used in code. o     Create JAR using: jar -cvfm javaTest.jar MANIFEST.MF *.* To run do: java -jar javaTest.jar 2.      Compressing and unzipping files in UNIX / LINUX machines. 1.      Creating an archive and compressed/gzipped archive using option “CVZF” To use a gzip compression on the tar archive, use the z option as shown below. $ tar cvzf archive_name.tar.gz dirname/ In the above command: • c – create a new archive • v – verbosely list files which are p...

Installing BEA Weblogic 10.3 on Mac/OSx

Updated post:- I have to go through a long hassle of making Weblogic work on my MacBook. Few things which I learned and would like to share: -Before starting to install you have to trick the installer into thinking that the local JDK is the generic Sun JDK. If you skip this step the installer will not accept the default Mac OS X JDK and complain that it is Invalid. $ cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home $ sudo mkdir -p jre/lib $ cd jre/lib $ sudo touch rt.jar $ sudo touch core.jar -To Install, run the following command from terminal : (Updated for the "fatal error occurred while installing 10.3.2") $ java -Xms256m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -jar -Dos.name=unix -jar server103_generic.jar -Once installation is completed, Create a new domain through "./config.sh" from "/bea/wlserver_103/common/bin" -Once the domain is created: --Need to update the env setting in " .setDomainEnv.sh " file i.e. locat...