Pages

Monday, August 17, 2015

Setting up JAVA_HOME path for maven in Windows

Go to My computer-> select Properties->select Advanced->Select Environmental Variables(IN Winxp)
In Windows 7 or higher , you can go to environmental variables just by typing environmental variables in search bar.

If you want to set  JAVA_HOME for all the users select NEW in SYSTEM VARIABLES, if you want to set for the current user go and select NEW in user variables for...
Type  JAVA_HOME in Variable name and type the Java directory installation path in Variable value
Have a look at the pics................
JAVA_HOME
You can add any new environmental variable by clicking on NEW button. if you want to append any path to existing env variable just append semi-colon(;) and the path you want to enter to the end of the "variable value".
Example:
Variable name: JAVA_HOME
Variable value: K:\Program Files\Java\jdk1.7.0_0
in future if i want to add some other path like K:\abcd  to the JAVA_HOME, the value becomes
Variable value: K:\Program Files\Java\jdk1.7.0_0;K:\abcd

How to solve JAVA_HOME directory error in maven
http://technocookies.blogspot.com/2015/08/maven-javahome-set-to-invalid-directory.html

About Environmental Variables:

Maven JAVA_HOME set to invalid directory error in Windows

Solution to maven Error: JAVA_HOME is set to an invalid directory.
It's easy to resolve this.... all you have to do is enter the java installation  directory path correctly(don't include bin and don't include any slashes at the end of the path).
(At the time of writing this article i am using apache-maven-3.3.3)
Want to know how to resolve this..........I will explain you how to resolve this.
1.Go to the unzipped directory of maven-> then go to bin directory
Maven bin directory

2.you will find a batch file named "mvn" in the bin directory
3.Open the batch file in notepad or any text editor
4.Have a look at the code that is selected in the pic.


 5.Usually we will include "bin" folder", but to use maven there is no need of  including the bin directory of java in the path.
6.All you need to do is just enter the java installation directory.
7.Here in my system it is installed in "K:\Program Files\Java\jdk1.7.0_07" (no need of including the "bin" folder)


8.There is no need of including any slash at the end.........

You can verify the path you eneterd is correct or not.
as you can see in the code(mvn batch file)
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome

%JAVA_HOME% -> just gives the path of the installation directory
/,bin ,java.exe ...everything are there itself in the code.
 so if you run the command in cmd " echo %JAVA_HOME%\bin\java.exe" (don't include quotes) then you can know if there is anything wrong in the path(it has to show the correct path). If it shows correctly then path entered in JAVA_HOME is correct

You can test in command line (cmd) whether the java_home path points to  correct Java installation directory or not
look at the pic below...........
(you can see any value of the environment variable using echo command in cmd)




Note: once if you change any environment variable in windows, please make sure not to check it in the existing opening window of cmd. Open a new cmd(command prompt window) and check the environment variable.
Command to see the value of any environment variable is echo <environmental variable>
example: echo %JAVA_HOME%
              echo %path%



Tuesday, February 25, 2014

How to save a modified GIF as a GIF file in Adobe Image Ready with out loosing color information


For the beginners it is going to be a tougher one and obviously you are going to struggle while saving the file to GIF format in Adobe ImageReady. I had spent a lot of time on internet  and  i found some links which shows how to overcome this but they aren’t much descriptive. So i thought of describing  step by step here.

Usually if you are going to save the file in ImageReady it gives you a “save as” dialogbox, where you won’t find option of “GIF”. It always asks you to save as “.PSD” format. If you want the GIF Animation to work then the only option is to save it as GIF. So how can we do this……..?????????????


Here are the simple steps.
1. Have a look at the image below.


2. If you  look at the image, you can see that there are some options on the top like original, optimized,2-up,4-up.These are the options showed by the ImageReady when you open the file.
3. Click on “optimsed” option.
4. If you see the picture as shown below, then you need to change the settings. As you can see the image(below) lost its color information.


5. To change the settings.Observe the windows that are displayed on the right hand side of your Adobe            ImageReady window, where you will see the small windows(See the image below). You can find the window which has the options(Info,Optimise,Layercomps).




6. If you won’t see the window, you can manually select from the “window” menu from the tool bar and           select the “optimize” option so that the window gets displayed.


7. Select  "optimize" option, you can see the “Format” and “Preset” options. Go to the Format option select “GIF”. You can try a variety of options. When you select the option your picture will be immediately changes it’s color in “Optimze” view. See the images below which show the difference between the images “before setting the options” and “after setting the options”.





I hope this will solve your problem while saving..............




Saturday, December 21, 2013

EDX free online courses

Want to upgrade yourself with the Emerging Technologies then you must try EDX.

                 EDX is an online video courses portal where you will find the lectures from the experienced professors from the reputed universities like MIT, Harvard,Berkeley etc.....
                The EDX provides online tutorials for free and all you need to do is just register to the EXD.org. After registering to the EDX you can take any online course you want. Each course has the duration and professors will assign you the assignments related to the particular course as the course progresses. Its not mandatory that you have to complete the assignments. If you want to get the certificate from the registered course then you have to compulsory do the assignments and you have to pass. If you pass with good score then you will get the certificate.
                While registering you can see the full details about the course and also the PreRequisites needed for the course.The details also include the total duration of the course and also the number of assignments does it have. You can download the image file from the respective course which has the necessary installations preinstalled. You have to virtualbox virtual machine software to load the image file.
           
                You can find the full details from the About us page of EDX. You can find variety of courses from the streams ComputerScience,Biology and Life Sciences,Chemistry,Communication,Economics & Finance,Energy,Environment and Literature etc........

Tuesday, July 24, 2012

Strassen's Multiplication Program


Strassen's Multiplication 'C' program using Dynamic memory allocation
Strassen's Multiplication 'C' program using Arrays
Click to download
post the issue, if  there is anything wrong with the code of Strassen's Multiplication