How can I import Alfresco SDK 1.0 into Eclipse? - eclipse

I'm new to Alfresco development and according to my research so far, to develop customizations for Alfresco 4.x I need to use Alfresco SDK 1.0. I was trying to follow this video but as the version is different I have not been able to import it so far.
Been trying a lot of things but when I import it as any other import it comes with too many errors.
Can anyone give me ideas of what I'm doing wrong? Thanks in advance

Previous edition of alfresco where supporting java based SDK and not maven.For any Java base SDK of alfresco ,you have to download that from alfresco wiki.For an example for alfresco version 3.4 you will find that in below link.
https://wiki.alfresco.com/wiki/Alfresco_Community_3.4.e_Download.
After downloading you need to import project from alfresco-community-sdk-3.4.b\lib directory.Once open import dialog ,a list of project will appear.Select the highlighted one as below.
After importing this project,Create new java base project,and select imported project as parent project of new Java based Project.

You should go for latest SDK 1.2 which is maven based SDK for alfresco 4.x versions.
Check this out
http://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html

Related

Import custom cordova plugin into IBM Mobile First version 7.1 using Eclipse

How to import custom cordova plugin into IBM Mobile First version 7.1 project using Eclipse?
The custom Cordova plugin's native files and associated Javascript files will need to be added manually into the MFP 7.1 Hybrid project in the Studio.
Please follow this blog for the steps needed to include a custom plugin :
https://mobilefirstplatform.ibmcloud.com/blog/2015/08/03/integrating-3rd-party-cordova-plug-ins/
Steps on creating a custom plugin from scratch and associated configurations ( with a working sample) is available here:

Can't import portlet into Eclipse IDE (SDK Error Message)

I'm having problems trying to import a portlet into Eclipse IDE.
First i tried File/ New / Liferay Project from Existing Source. As soon as i add my Lferay Project Location the message ]"Project is not located inside Liferay Plugins SDK" shows up. This is the location of my portlet C:\liferay-plugins-sdk-6.2.10.1\portlets\valisa2014-portlet, so the error message makes no sense to me. I have confirmed that the portlet is indeed inside my sdk.
I have also tried to import the porlet by File / Import and then Liferay -> Liferay Project from Existing Source, same thing as soon as i put my Liferay project location the same error message will show up:"Project is not located inside Liferay Plugins SDK"
And finally i tried Import -> Import Liferay Projects, Im able to select my SDK and on the "Projects to Import" options i can see my portlet but i got an "Invalid Plugin SDK Location" as soon as i select my sdk.
I really don't understand what's going on, my sdk is already configured on Eclipse and it have worked in the past when importing another portlets or themes to Eclipse, my build.user.properties have also worked in the past (this is a project i have been working on for months) so i don't know why i'm not able to import this portlet.
Im using Liferay 6.2, Tomcat 7, Eclipse Kepler Service Release 2.
Ok after dealing with those JAVA issues i have finally been able to import my portlet to Eclipse, and is still a mistery to be honest. I'm still not able to import the portlet with the "Liferay Projects from Plugins from SDK", still getting the "Invalid Plugin SDK location" even when i can see my new portlet listed and ready to be selected. So i tried with Import -> "Exiting Projects into Workspace" and it finally worked. Actually this was the only import method that worked for me, after trying every single way to import a Portlet in Liferay. Wish i can have a better idea why is not working with the other ones. Well hope this solution will help someone with the same problem in the future. If you guys have more feedback will be really appreciated.
Have you defined your SDK in Eclipse?
Eclipse plug-in complains that there is no SDK defined. It does not bother to discover the SDK on its own. You have to do it manually.
Try defining the runtime, that is Liferay installation, as well - it gets handy when overriding files in hooks.
Eclipse Only looks for the projects whose names end in thw word portlet. So make sure that your project has the proper name format.

How can I add libraries to Xamarin Mono for Android project in VS2010?

I am working on a mono for Android application (my very first) that consumes a web api. In the documentation at xamarin.com there are examples on using different libraries such as RestSharp and Json.Net.
However, when I try to install these libraries via Nuget in my VS2010 project it failes with the following message:
Install failed. Rolling back... Could not install package
'Newtonsoft.Json 4.5.9'. You are trying to install this package into a
project that targets 'MonoAndroid,Version=v2.2', but the package does
not contain any assembly references that are compatible with that
framework. For more information, contact the package author.
How can I include such libraries in my project?
Thanks in advance.
Erwin
This error message indicates those libraries are not compatible with Mono for Android. You should ask the manufacturer of the libraries if they have a MfA compatible version. If you have the source code of the libraries you could also try to make a MfA library, using linked source files, yourself.
Not sure if you've tried this but if you're using xamarin studio and right click the component folder in your Android app project choosing add component should be able to solve your problem. This will add a reference to the component that is added. Components seem like they are mono compatible packages and what's good for your case is that there are components for both RestSharp and Json.Net:
https://components.xamarin.com/view/restsharp
http://components.xamarin.com/view/json.net/

Cant re-install Google Web Toolkit using Eclipse plugin

I installed and updated Google Plugin for Eclipse 3.7 a few weeks ago. It installed GWT as well as other things. I was able to compile a Google App. I did several things on Eclipse today and now GWT is gone. I look at Preference-->Google-->Web Toolkit; the list is empty. I ran plugin update, it keep saying GWT is already installed and refuse to update/re-install. I uninstall GWT explicitly and run plugin update; it update without complaint. But the Preference-->Google-->Web Toolkit; the list is still empty!
How do I force plugin to populate the SDK info in Preference-->Google-->Web Toolkit?
There is actually an "Add" button to configure SDK. But I dont know the installation directory of GWT. Where does Eclipse plugin save the GWT?
Seems Eclipse keep track of the installation of GWT SDK in two different place?
My GWT SDK database seems corrupted, and Eclipse plugin seems rely on its own private data base of the status of installation of GWT SDK?
Can anyone please help?
I think that what you are referring is not the plugin but the SDK.
Download the SDK unzip it then add it preferences->Google->Web Toolkit.
The link to to download the SDK is: http://code.google.com/p/google-web-toolkit/

gwtext.jar's version generated by gwt plugin of Eclipse

Currently I am using GWT 2.3.0 sdk and installed the google web toolkit plugin for eclipse.
I created a web application project with the plugin and want to use GWT-Ext.
Then, right click on the module (com.company.project) and choose "Google Web Toolkit" and choose "Configure for using GWT-Ext".
Then, a gwtext.jar is automatically generated in the project.
My question is, how can I verify the version of the automatic generated gwtext.jar and all the license issues with it?
As I got you, you want to check the gwt version.
So follow this step.
Right click on the project->Properties->Google->Web Tool Kit.
After selecting Web ToolKit you can see the version which is in used and you can also configure the another version by clicking on the configure version.
Hope this will help you.