Can Silverlight Run on linux [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have just read an article on microsoft brining silverlight to linux OS. Does this mean that when I create my project on windows box will it be able to run on linux? Do I need to do anything else to the code to have it run on linux?

Moonlight is an open source
implementation of Silverlight
(http://silverlight.net), primarily
for Linux and other Unix/X11 based
operating systems. In September of
2007, Microsoft and Novell announced a
technical collaboration that includes
access to Microsoft's test suites for
Silverlight and the distribution of a
Media Pack for Linux users that will
contain licensed media codecs for
video and audio.
Moonlight 2 was released December 17,
2009
http://www.mono-project.com/Moonlight
EDIT :
For developer :
MonoDevelop is an IDE primarily
designed for C# and other .NET
languages. MonoDevelop enables
developers to quickly write desktop
and ASP.NET Web applications on Linux,
Windows and Mac OSX. MonoDevelop makes
it easy for developers to port .NET
applications created with Visual
Studio to Linux and to maintain a
single code base for all platforms.
http://monodevelop.com/
&
Debugging Silverlight/Moonlight Apps on Linux

Well, as others have already mentioned, there's Moonlight. However, more interestingly, Microsoft has Silverlight running on Moblin, a Linux distribution developed by Intel for netbooks. This doesn't seem to be based on Moonlight. Why Microsoft didn't go for Moonlight here and put some muscle behind Moonlight's development, I have no idea.
A video of Silverlight on Moblin can be seen here.
Then there's Silverlight for mobile devices, which isn't here yet, but that is expected to run on Symbian, which isn't Linux, but it is a non-Windows/Mac OS.

There is an alternative implementation called Moonlight that (unlike Silverlight) runs on Linux. It is not always up-to-date though. Every major Silverlight edition is followed by it's Moonlight counterpart sooner or later, much like .NET and Mono.
Currently Moonlight is compatible with Silverlight 2. That means your Silverlight 2 application will run on Moonlight without problems, and you don't have to do anything specific to achive that.
Silverlight 3 support will arrive soon. Here is the roadmap.
Update: Moonlight was discontinued (but so was Silverlight).

Related

Can WPF applications be run in Linux or Mac with .Net Core 3?

Microsoft announced .NET Core 3 comes with WPF and Windows Forms. So can I create a desktop application for Linux or Mac using .NET Core 3?
No, they have clearly stated that these are windows only. In one of the .NET Core 3.0 discussions, they have also clarified that they do not intend to make these features cross-platform in the future since the whole concept is derived from windows specific features. They talked about thinking of a whole new idea for cross-platform applications, which is not easy.
Source: https://youtu.be/HNLZQeu05BY
Update
The newly announced .NET 5 now aims in avoiding all this confusion by no longer calling it ".NET Core".
Update 2
With blazor client-side (releases on may, 2020), there is a new experimental project for cross-platform apps using webview that is in the works.
Source:
https://blog.stevensanderson.com/2019/11/01/exploring-lighter-alternatives-to-electron-for-hosting-a-blazor-desktop-app/
No with WPF or Winforms. But you still can develop desktop apps on Linux, with .NET Core, using other libs like GtkSharp or Avalonia
Well, the name itself says Windows Presentation Foundation. So it's primarily windows based.
But it is worth to be noted that the new UI framework, .NET MAUI that will be shipped with .NET 6 is cross-platform, with a single-codebase, single-project structure.
Currently in Preview at the time of writing, to be shipped in November 2021. Here's the roadmap.
Although it is not native dotnet core on linux, but it may be helpful - using wine.
I find a very useful comment in the discussion here, more details here
In other words, it is possible to use windows version of dotnet core under wine.
I didn't try it yet, but from the article I mentioned I can say it looks nice and might be an option.

JavaFX - can it really be deployed in a browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have done some research on JavaFX over the last year, and even built some basic desktop apps with it.
It's described as being used to create RIAs (Rich Internet Application).
http://en.wikipedia.org/wiki/Javafx
But can it really be deployed by a web browser? I have only deployed it via an executable JAR file.
How easy is it to deploy via web browser? Does it work? Does anyone have experience with this?
http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm
Update for the March 2018 Java Client Roadmap
I encourage readers interested in this question to review the following Oracle Whitepaper:
Java Client Roadmap Update
The above paper outlines the official Oracle position on related technologies (JavaFX/Swing/AWT/Applets/WebStart), the dates until which it intends to support those technologies and which of those technologies it intends to transition to open source development projects separate from the JDK and JRE.
Update for Java 9, Oct 2017
According to the Java 9 release notes:
Java Applet and WebStart functionality, including the Applet API, The Java plug-in, the Java Applet Viewer, JNLP and Java Web Start including the javaws tool are all deprecated in JDK 9 and will be removed in a future release.
So, for Java 9+, deployment of JavaFX in a browser using a Java plug-in will only be possible using deprecated technology. Oracle notes in another part of the Java 9 release notes:
Deprecates the Java Plug-in and associated applet technologies in Oracle's JDK 9 builds. While still available in JDK 9, these technologies will be considered for removal from the Oracle JDK and JRE in a future release. Applets and JavaFX applications embedded in a web page require the Java Plug-in to run. Consider rewriting these types of applications as Java Web Start or self-contained applications.
Note: Java Web Start isn't really an alternative as that is also deprecated (anyway, it's different from an application embedded and rendered within a browser page). Also note for those who wish to use Web Start, even though it has now been removed from Oracle JDK 11+, it is available as open source, info on this is at OpenWebStart.
As an alternative which offers similar functionality, consider something like jpro, which deploys JavaFX applications in a browser without a Java plugin (jpro is currently only in closed beta, so it is not a viable solution as of October 2017, but maybe someday in the future...).
For now, I would recommend that the best way to deploy JavaFX applications is as self-contained applications, running outside a browser.
Previous answer for Java 7 and 8
JavaFx - can it really be deployed in a browser?
Yes, JavaFX applications can be deployed so that they run inside a web browser hosted html web page.
The technology which allows this to occur is the Java Plugin. This plugin is currently a NPAPI based browser plugin solution. The Java Plugin is shipped with the Oracle Java 7 Runtime Standard Environment.
Not all browsers are supported, only those listed on the JavaFX Supported Configurations page.
How easy is it to deploy via web browser?
The easiest way to deploy a JavaFX project in a web browser is:
Create a new JavaFX project in NetBeans.
Develop a simple HelloWorld App.
Follow the instructions for Deploying your first JavaFX Application.
This is not difficult (in my opinion).
Alternatively, follow instructions on the detailed reference for Deploying JavaFX Applications (or use 3rd party tools). For many projects, using a tool other than the NetBeans IDE to perform packaging is a better approach. However, it is generally easier to let the NetBeans IDE handle deployment packaging tasks for you.
What follows is not related to answering the original question, but provides some opinions and information requested in comments on this answer.
Some Advice
There are pitfalls to deploying Java in a browser. I encourage you to do your own Google research on the subject.
In my mind, based upon the current JavaFX 2.x deployment model, for most application types that require a browser as the primary runtime container, using JavaFX is not an appropriate solution.
Examine the deployment and runtime requirements for your application. Based on your requirements, and knowledge of the JavaFX browser based execution model, decide if a browser based deployment using JavaFX technology is the correct mechanism for your application.
A couple of potential difficulties for browser embedded JavaFX applications
Some important browsers (e.g. Internet Explorer 10, iOS Safari and soon Desktop Chrome) don't permit execution of plugins using the NPAPI currently used by the Java browser plugin => some of your target users may be unable to use your application.
With a browser embedded application, you don't have complete control over the runtime on which your application executes (browser + Java runtime + plugin interface) => an application which was working when first installed may stop functioning as expected after an update to these runtime components.
Deployment Alternatives
If a browser based deployment model is not appropriate for your application, there are other ways to deploy JavaFX applications (e.g. WebStart, stand-alone jars and self-contained applications).
JavaFX - can it really be deployed in a browser?
No, not any more.
The answer used to be yes, as given in this answer, although even in 2013 when that was written the writing was on the wall. However, here in 2016 the answer is no, it cannot. Modern browsers essentially don't support NPAPI any longer (Firefox does for Java, but only until the end of the year), and NPAPI is required for the Java plugin.
As of 2016 you can use jpro without any browser plugin. And it even runs on mobiles.
Edit 1: The project is free for non-commercial or open source projects. A "hello world" can be found here
I found solution by chance here.
what was missing in my web project.
I must add this to web.xml file :
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>

Emulate/Simulate iOS in Linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm developing a web app that apparently is having problems in iOS devices. The problem is that I don't own an iOS device and I develop in Linux Ubuntu. I'm looking for a way to emulate/simulate this OS in Linux (especially the browser), but haven't found anything.
So far, what I've found is the iOS SDK's Simulator, but that is meant for the Mac. And also some emulator for Windows. Has anyone done this before?
The only solution I can think of is to install VMWare or any other VT then install OSX on a VM.
It works pretty good for testing.
On linux you can check epiphany-browser, resizes the windows you'll get same bugs as in ios. Both browsers uses Webkit.
Ubuntu/Mint:
sudo apt install epiphany-browser
BrowserStack.com
On this site, you can emulate a lot of iOS's devices online.
Run Ripple emulator(retired as of 2015-12-06) on Chrome
Run iPadian on WineHQ
Run QMole on Linux or Android
Run XCode on PureDarwin
Maybe, this approach is better, https://saucelabs.com/mobile, mobile testing in the cloud with selenium
You might want to try screenfly. It worked great for me.
As far as I know, there is no such a thing as iOS emulator on windows or linux, there are only some gameengines that enable you to compile same code for both iOS and windows or linux and there is a toolchain to compile iOS application using linux. none of them are realy emulator/simulator things. and to use that toolchain you need a jailbreaked iOS device to test binary file created using toolchain. I mean linux itself can't run the binary created itself. and by the way even in mac simulator is just an intermediate program which runs mac-compiled binary, since if you change compiling for iOS from simulator or the other way, all the files are rebuild. and also there are some real differences, like iOS is a case-sensitive operation while simulator is not.
so the best solution is to buy an iOS device yourself.

How to create applications for Windows CE [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 months ago.
Improve this question
I'm new to the CE environment and I was wanting to create applications for a computer(Intel) running on CE(5 and up). What exactly do I need to to get started and where do I go? I have never used CE before but I do have experience writing code in C, C++, C#, and Java.
Thanks,
If you are interested in writing application using C#, do a little search for Compact Framework (CF). It is the stripped down version available in Windows CE.
Keep in mind that Windows CE is a highly customizable OS and you have no guarantee that it will have the component to support your application (that includes C#) - Windows Mobile (+PocketPC, +SmartPhone2003) is a different story.
When you develop for Windows CE you need to use Visual Studio 2005/8 Professional to have the Smart Device support. When you develop C# applications using VS2008 you target CF3.5 and when you use 2005 you target CF 2.0
Look in wikipedia, link is http://en.wikipedia.org/wiki/Windows_CE look under Development Tools, I recommend Visual Studio 2008 and C#, here is the link to the SDK:
Windows Mobile 6.5 Developer Tool Kit
As of Visual Studio 2010 Windows CE development is not supported any more, here are the details: https://msdn.microsoft.com/en-us/library/sa69he4t%28v=vs.100%29.aspx
To develop application for the Windows CE
Use VS 2005 or VS 2008 which has got support for smart device application development.
Install the Windows Mobile 6 SDK as a prerequisites.(here)
Install the Windows Embedded Handheld 6.5.3 DTK(here)
To Create Your First App. (here)

Silverlight on Linux

did anyone try to view a Silverlight site on a Linux machine? afaik, there is something called mono on Linux which is a try to port .NET on Linux machines, but did one really try to use it? did it work?
Moonlight is the mono implementation of SilverLight. http://www.mono-project.com/Moonlight
In an interview, they said Microsoft gave them the same test suite they use on Silverlight, so the implementation is pretty good I would suppose for being a version behind http://www.hanselminutes.com/default.aspx?showID=157
Currently Moonlight, the implementation of Silverlight on Linux, is in Beta. According to their roadmap, the final version of Moonlight 1.0 should be out on January 20, 2009. As stated by MrChrister, they're a "release behind", because we already have Silverlight 2. However, according to the same roadmap, they plan to catch up sometime next year. Until then, I don't think Silverlight on Linux is an option to consider.

Resources