Labels

Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Friday, April 17, 2015

How to Edit the Contents of a .Jar File Without Extracting on a Mac

Hi friends,

Well this post will show you how to edit the content of a jar file without extracting the jar file in 4 simple steps. Works most of the time and it will save time to extract jar and back aging creating so on.

You cannot edit the class files ONLY the config files like xmls

STEP 1

Go to the file location from the terminal and open it from the vi /vim editor

STEP 2

You will get a list of files in the jar after doing Step 1. Select the file you want to edit by using up and down keys and press ENTER

STEP 3

After completing the Step 2 you will be able to  open the file you chose. edit the content as you prefer and press "esc" escape key and ":wq!" to save and quit (Normal vi commands)

STEP 4 

You will be direct to the same screen in Step 2 after saving the content. press "esc" escape key and ":q!" to quit (Normal vi commands)


That is it. so you don't have to extract to edit the content and save the time :)
let me know if this works or you found much simpler way to do it

Thank you
Best Regards,
~Vinu~

Thursday, October 16, 2014

Setting Up MYSQL in Mac OS X

There are many ways to do this,  I was able to set up mysql using this way.

Use this tutorial to setting up the mysql in mac. 

but after you complete those steps and still you can't get the mysql running without using these commands 

alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin

All you have to do is change the add  few lines to the .bash_profile 
export the mysql and add it to the path as shown below.

export MYSQL=/usr/local/mysql/bin/
export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$CATALINA_HOME/bin:$ANT_HOME/bin:$MYSQL:$PATH


After adding those Don't forget to source the file and check if its correctly configured 

Vinuris-MacBook-Pro:~ vinurip$ source .bash_profile 
Vinuris-MacBook-Pro:~ vinurip$ echo $MYSQL
/usr/local/mysql/bin/
Vinuris-MacBook-Pro:~ vinurip$ 

Thats all you have to do,  I hope this might help some one
feel free to put comments
Best Regards
~Vinuri~