Sybase Mobile SDK_error_in_starting_the Unwired_workspace
Introduction:
This document is prepared as a solution for the issue that me and my team was faced during one of our SUP (Sybase Unwired Platform) project implementation.
Issue:
We are getting an error message when we are trying to run the Sybase Unwired work-space on windows laptop.
Laptop specification:
- SUP Server specification:
Version: 2.1.2.119
- Sybase Unwired work-space: Eclipse edition
Version: 2.1.0
Error description:
Solution:
“Java was started but return exit code = 1” we did some search for this error message on Google We came across the link which talk about this error message and suggested some changes in “eclipse.ini” file.
Path for eclipse.ini file: Your installation dir\ Sybase\Unwired platform\Eclipse\eclipse.ini
Before updating the eclipse.ini file please make the following changes.
- Uninstall the existing JDK version and Install the complete JAVA SE package (latest version).
- Set the path variable with,
- C:\Program Files\Java\jdk1.7.0_09\bin;
- C:\Program Files\Java\jre7\bin;
“Eclipse.ini” before change:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
–launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
By referring the links on Google I have made the following changes to the Eclipse.ini
“Eclipse.ini” after change:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
256m
openFile
-vm
C:/Program Files/Java/jdk1.7.0_09/jre/bin/server/jvm.dll
–launcher.defaultAction
-vmargs
-Xms40m
-Xmx384m
–XX:-UseCompressedOops
Lines in “Bold with blue” are the changes that I have made to this file.
- Once this changes done, just restart the eclipse.
- This time it will run the eclipse without any error.
- Sometimes your Sybase Mobile SDK plug-in is missed out so just copy and paste the Sybase Mobile SDK plug-in it into the eclipse plug-in folder and restart the eclipse.
- And your eclipse is ready for Sybase Unwired Platform Project development.
Reference Link:
http://www.eclipse.org/forums/index.php/t/204384/
Kind Regards,
– Amey
Hi Amey,
This is really helpful... i have faced similar error/issue many times.
thanks for sharing. 🙂
Hi Amey,
i have pasted syntex as mentioned by you.
while working with mobile sdk it suddenly stopped responding. so i close the task from task manager.then error message came (same screenshot).
It shouldnt come? right after pasting the required syntex.
Regrds,
Jitendra
Yes.. It shouldn't come...
Just take a backup of your eclipse.ini file, then open copy of it in the wordpad and then do the respective changes by looking the exact line where changes needed then save and restart the system and try to run the work space.
After making the above changes my laptop started working fine with sup work space.
Also, few times [very rare] I have observe (seen) the error screen when I am closing my work space after a long time (like after 2 - 3 days) but it doesn't stuck there when next time I run my work space it started without any error
Please let me know the behavior in your case does it start or it simply doesn't work for you?
Kind Regards,
-Amey
Let me try this way and will let you know if i face similar issue.
thanks for your concern.
Rgrds,
Jitendra