SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I create Webpart in Java and deploy it to SharePoint 2010? What basics needs?

share|improve this question
You can use Javascript.. but that's not the same now is it. Also, you can use Iframes if you really needed to display some java controls. – Fox Jan 4 '13 at 14:55
Not sure why you're getting downvoted.. although it may be obvious to others it is still a legit question. – Kit Menke Jan 4 '13 at 15:05
+1 there is no need for the downvote just because they asked a real legit question that not everyone would know! give the guy a break! – ali Sharepoint Jan 4 '13 at 16:23
Why is the answer not yes? "A special kind of web part known as App Part takes care of embedding the App's page into the hosted page. "… – user25014 Apr 9 '14 at 16:34
And not applicable for 2010 as the question states – Robert Lindgren Apr 9 '14 at 16:58
up vote 2 down vote accepted

In addition to what Steve said, you can't create a webpart using Java language for SharePoint framework and I don't think there should be any need for it either, its more like you want to play games developed for "Play Station 3" on "Xbox-360" anyway I find out that there are few ways you can show java portlets in SharePoint webparts using Web Services for Remote Portlets if that helps.

You can read more about it on this Microsoft's blog or simply download WSRP toolkit released by Microsoft.

I also find few useful links that might help you for what you are trying to achieve,

How to access sharepoint document library through JAVA API

How to show java portlets in sharepoint

Using a Java applet in a SharePoint web part

Oh and one thing I forgot to mention and that is Webpart is a ASP.NET control and is also rendered by (dunno if you know or not but sharepoint is developed on top of ASP.Net) so you can't develop it in Java as you won't going to have access to parent classes if I make any sense.

Hope it helps, but if you have some specific requirements let us know and we will try to help you accordingly as much as we could.

share|improve this answer

No you can't, SharePoint is based on .Net and then requires you to build .Net apps (C#, or any cls compliant language)

share|improve this answer
ok but how about if i could prepare the .dll from java and provide it with xml alias and define it as safe control ? I this that should work. isn't it ? – Red Swan Jan 4 '13 at 13:28
no it won't. Java product bytecode interpreted by the JVM (Java Virtual Machine). .Net produce MSIL assemblies ran by the CLR (Common language Runtime). They are simply not compatible. It's not a SharePoint specific problem, but a wider language interoperability compatibility. To illustrate the dead end, imagine you want to create a WebPart, you will have to inherits Microsoft.SharePoint.WebPartPages.WebPart class. Do you think it's possible with a java code? – Steve B Jan 4 '13 at 13:31
:) I had doubt, now it is cleared. Thanks Steve – Red Swan Jan 4 '13 at 13:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.