Saturday 8 March 2014

Junit -Cannot run program error :: CreateProcess error=87, The parameter is incorrect



While running Junit if you are facing any error like this

Cannot run program "C:\Program Files\Java\jdk1.6.0_30\jre\bin\javaw.exe" (in directory "E:\Amit\Iworkspace\SpringMVC"): CreateProcess error=87, The parameter is incorrect


Then to resolve this you need to follow some simple steps:

1)-Go to this link https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193 download
bug327193_3.4.2_hack.zip from attachment section.


2)- Back up existing eclipse/plugins/org.eclipse.jdt.launching_3.*.*.jar 

3) Copy and paste classes and patch.txt  from the attached patch to org/eclipse/jdt/internal/launching in your org.eclipse.jdt.launching JAR (replace existing files) 

4) (optional) Edit the META-INF /MANIFEST.MF file in your org.eclipse.jdt.launching JAR file by removing everything starting from the first "NAME:" entry. Make sure you leave two (2) line break characters at the end of the file.

Re-start eclipse


Tuesday 4 March 2014

Sync windows 8 cellphone with ubuntu

IF you bought a new windows phone and want to add your favourite playlist from your PC to phone ,Then I have a simply way to accomplish this,
You need  to follow simple steps 

1)-Plug  cellphone to your ubuntu PC
2)-Open RhythmBox music player,you can see your phone under Device option





3)-From  import file(music>>import file)add your favourite playlist
4)-Select your phone then click on sync with library

5)-It's done,enjoy your favourite song on your phone