Play 2.0 on MK 802+ - scala

I have got a mini pc (MK 802) with Allwinner A10. I want to use this mini pc as a home server for hosting my play 2.0 Scala applications. Currently I have Lubuntu 12.04 on this mini pc. How I can install Play Framework on this device?

Your probably going to have to download the source code of OpenJDK and build it on your MK 802. If your lucky you might already have the package (icedtea) installed. This doc might help: http://mail.openjdk.java.net/pipermail/jdk6-dev/2009-April/000455.html
As for Play 2.0 and Scala you just download and put them in a directory and set some ENV variables.

I'm running a bunch of stuff on Ubuntu 12.04. I normally just install openjdk-7-jre and then pull down the sbt jar. Since the build system in Play 2.0 is based on sbt, it'll pull in play and scala as needed. All I have to do is setup java and sbt, and then do an 'sbt run' from the project directory and everything gets pulled down on demand.

Related

MAMP download asking for .Net core 3.1 Runtime. Unsure which one to select

I was following a tutorial to download MAMP earlier, and I ran into this problem which wasn't explain in the tutorial. After I successfully downloaded MAMP, and I tried to open the application, it indicates that my computer do not have .Net Core 3.1 and I need to download it (directs me to this https://dotnet.microsoft.com/en-us/download/dotnet/3.1/runtime?cid=getdotnetcore)
There are three options between: Run Console Apps with download x64 or download x86 / Run Desktop Apps with download x64 or download x86 / Run Server Apps with downloading hosting bundle. Which one is suitable?
You have to download the Run Desktop Apps x86 version, even if your system is x64.
You need to check the system type on your computer.
Here is a tutorial video that might help you to solve the error for installing .NET Core.
https://www.youtube.com/watch?v=BqYnexZwBPU&ab_channel=TroubleChute
Installing the x86 version setup even though my system is x64 worked for me.

Develop raspberry pi app with eclipse

I just got a Raspberry Pi and I want to develop a java application for it using eclipse. I found the performance of the pi very poor so I don't want to install eclipse on it and use it for developing the app, I would like to use my mac. I thought about different solutions: Use my mac and push the code to github and then pull it on the Raspberry and compile it. Also use the same raspbian image with parallel desktop and after finishing the work deploy the solution on the pi (But actually I want to try the app on the raspberry frequently when I am developing it). Do you have an idea how I should proceed?
You could use the Remote System Explorer Plugin (installable via eclipse market place).
This Plugin basically adds a remote file system to the eclipse view.
You can create projects on the remote device und use them from eclipse.
Build setup is probably a bit more advanced (have not tried this yet), but should be possible as well.
You can find a step-by-step guide for creating a project in this answer
Try this eclipse plugin - http://tsvetan-stoyanov.github.io/launchpi/. It allows you to run/debug java applications remotely.

How to build native app bundles for Windows, Linux & Mac in a single build?

I am running my build on Windows 8 O.S. , 64 bit machine. I have JavaFx2.0 and Java 1.7.0_09 installed on my system. I am able to build a 64 bit window executable that launches my JavaFx application as a self-contained Javafx application.
Now I want to deliver native app bundles on Windows, Linux and Mac without build my project on all three platforms i.e I would like to achieve these set of bundles in a single build that I suppose to run on by Windows 8 O.S. 64 bit machine.
I am also okay if I can do it by distributing a single Application JAR file as .zip for MAC and Linux. But what I want is that JAR should work on there respective platform.
When I used to run a single application Jar on MAC using command
java -jar application.jar
It always shows a dialog "The application require a newer version of Java Run-time" with download link. Even I have downloaded and successfully installed it on my MAC machine but it still shows me the same window.
I don't want the users to experience such difficulties while running my JavaFX application on MAC and Linux.
What I need to ship more with the Application JAR so the users can run my JavaFx application on MAC and Linux without any hassle?
I guess you are making the JavaFX Solution in a 64bit machine and on the other hand you must be having all the SDK and runtime for 64bit version. The problem is that the application made using 64bit version of SKD would required 64 bit OS to render itself. So the bottom line is, is yout mac and linux PC have 64bit version of OS and JavaFX Runtime as well as Java7.X all 64 bit? If not then you must update your runtime to 64bit version or make your application in a 32bit version of SDK. One quick suggestion. If your mac or linux is 64bit(I dont have much idea about mac) then just install a browser i.e. 64bit version and runtimes and try out. I was having the same problem and that got fixed. Let me know if my answer caused any confusion.

RCP Building for mac fails using Delta Pack

I am having troubles building my RCP Application for Mac using the Delta Pack. I have Delta Pack 3.7.2 installed and configured right (inserted into a target platform ) and the Building part completes just perfectly.
When I try to run the build app on my windows(Dev PC) it works fine. But when I zip the Mac version and try to run it on my mac, then it fails on every version I try:
Cocoa 32b,
Cocoa 64b,
Carbon etc
The app won't open and I don't get an error message.
Is there a way to get an error message anyway? Has anyone had this problem before?
When you build for a mac on a windows machine you should not build directly to a directory. Instead you should build to an archive. Then put this archive on the mac and expand it there. Then everything should work

eclipse for chrome?

I use eclipse IDE for developing my GWT and android apps. I would like to transition to a chromebook for my main development computer, but I can't figure out how I would get eclipse "installed". There is no chrome app version of eclipse, at least not that I can find. I do see that there are other IDEs in the chrome store, but I don't think they would have all the nifty helper plugins that eclipse has for google developers. Anybody know if a chrome version of eclipse is coming? Do others share my desire to develop on a chrome book?
Eclipse is not coming for Chrome OS. You need a JVM to run it and one of the compatible desktops for the UI widgets. So you would have to escape from Chrome OS desktop into base Linux and somehow launch a regular Linux desktop (like GTK) to have any hope of running Eclipse. Also, a typical chromebook is far too underpowered to run a full IDE.
Here are some options to consider:
Project Orion - A web based IDE from many of the same people who develop Eclipse. One of the goals is to enable Eclipse-like capabilities for platforms like iOS, Android, Chrome OS, etc. It has quite a few base IDE capabilities already, but not a lot of plugins just yet. Probably not going to see something as sophisticated as ADT for a while if ever. Google would have to implement Android emulators in JavaScript. Not an easy task.
Run Eclipse on another machine and use a remote desktop from your chromebook.
Run Eclipse Che on another machine or cloud server and use Chrome
The most straightforward and transparent way I was able to do so was to do a combination of things (some of which was mentioned in previous answers):
install crouton (alongside an ubuntu chroot) - this is not dual booting but running Ubuntu side by side with Chrome OS just alternating between both windowing systems.
install crouton chrome extension & xiwi - this enables running the X11 windows in the ubuntu chroot as native Chrome OS windows that can be easily alternated into.
install a JDK inside the ubuntu chroot.
download, mount and execute eclipse-installer.
once the eclipse distribution of choice is installed, for ease I symlinked the main eclipse executable to /usr/local/bin/eclipse and am able to run it from Chrome OS via crouton/xiwi: sudo startxiwi eclipse
Here's a screenshot of what it looks like when done:
Eclipse requires a JVM (maybe even a full-blown JDK), so there's no way to make it into a Chrome app. You could enable developer mode and try to install a Linux JDK since Chrome seems to be running Linux under the hood.
Do others share my desire to develop on a chrome book?
The solution is to load a normal linux distribution and run IDE from there. I'm using a netbook with intel n260, 1G ram, 1.6G Hz. NetBeans runs quite well. A chromebook runs more than twice faster, I'm sure it will be good enough.
As to how to load a linux, there is the Ubuntu on Cr-48 page that explains how to do it in depth. And also this very user friendly blog on arstechnica, or this blog on liliputting. They both point you eventually to the ChrUbuntu, that is a hand-re-packaged ubuntu with some scripts to ease your work.
You can install ubuntu via crouton (for more info: https://www.youtube.com/watch?v=d_MuVwJq_XQ&list=FLFel7rdB1nWQSjsJCaepEOg&index=1) and then you can install eclipse I'm not sure if you can install the ADT from the android sdk website but you can install the plugins from the eclipse website, third party developers, or if you really want to download it from the android sdk website you can probably get it to work with a little efort.
:) Enjoy
Yes! I share your desire to program on a Chromebook! While I am still a high-schooler, I am an amateur Java and Python programmer. My school provides with a class set of about 30 Chromebooks per classroom, and I didn't know how to run my code on them. I had Eclipse on my Windows desktop at home.
When I looked around online, I found something called codenvy.io. It is basically an Eclipse Che IDE that runs online. It uses Docker images to start up a workspace, runs all in the cloud, and a free account has 3 GB of RAM.
It suited my needs, and I loved it! You should check it out.