Is it possible to develop for Windows Azure from another OS? - java

Is it possible to develop for Windows Azure using Java from OS X (Eclipse)?
I've installed the Windows Azure Plugin for Eclipse, but it seems the plugin relies on batch files in order to deploy the app to Azure.
If this is possible, are there any guides on this?

The development tools, including the Compute and Storage emulators and the packager, require Windows.
For the applications themselves, the requirement is being compatible with Windows Server 2008 R2. So it is possible, for instance, to develop an application on Linux or OS X without using the Azure SDK or tools, and to prepare a virtual image of a Windows Server with a Java application server and a pre-deployed and pre-configured application, and to deploy this image as a Virtual Machine Role. The application could access Windows Azure services via HTTP or by using the Java libraries included as source code in the SDK.
This approach would be a better fit for porting existing applications, though. For developing new ones, the tooling available on Windows would make for an improved experience.

The tools required to build the Windows Azure service package only run on Windows. So, while you can easily build Java apps in Eclipse on Windows, you cannot do the same with OSX.
If you're developing with node.js, you can develop using the Cloud9 IDE, which is browser-based and cross-platform. See this MSDN article for more details around this, as Scott Guthrie demonstrated this at the Node Summit in San Francisco in January, doing all coding and deployment via a Mac.

Related

Windows/Linux installer for Java program

I have several Java applications. All of them have external jar dependencies and also require a couple of .dll/.so files to run. I want to build an installer for these applications, that will run properly just by double-clicking the installed program. What tools are available to do this ?
Thanks in advance.
For Windows Izpack is good tool. Also native implementation available.
But for Linux the best is to install it with a .sh script.
Edit
The reason for this is that when you use a .sh script, you can check if java is installed and install it if it's not present. As I am aware- Izpack still lacks this feature.
..run properly just by double-clicking the installed program
This implies a rich client desktop app. rather than one based on the command line. In that case, the best deployment technology is Java Web Start.
Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.
JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

Installer for Java Applications

I need to create an installer for my java desktop application. I don't like to code an installer by hand. is there anyway I can create an installer for Java applications?
If your looking to create an installer for windows applications check out Advanced Installer. For linux based machines, I'd just got with the regular tar.gz file and a README file.
Pack Jacket software:
This is a freeware with a simple GUI. Available to download from sourceforge. This file is capable of creating installers with extensions .exe, .jar and much more. The complete tutorial is available in youtube. Just search "How to make installer for regular java project" in youtube and the first result, you will find the tutorial (I tried to paste the link here, but stackoverflow didn't allow it :( ).
IZPack:
IZpack doesn't have any GUI, just some files. You have to do it manually. It takes xml files as parameters which instruct it how to create the installer. The tutorial for using IZpack is here. I am using IZpack and personally I like it more than pack jacket.
There are more apps for creating these installers, but according to my knowledge these are the most famous because I have seen these installers in number of applications I have used.
Hope you can make your work easy by reading this :)
..installer for my java desktop application.
Deliver it over the net using Java Web Start.
Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.
JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

Future of Java on Mac OS X

I'm mainly developing in .NET since a year (even if I start coding in Java during my studies) and I have to port a .NET application (more precisely an agent running as Windows Service which call a web service to transfer information and files) to Mac OS X.
My first idea was to develop a Java version of the application. But I read some articles about the future of Java on Mac OS X and I'm a little perplexed about this choice.
What do you think?
The future of Java on Mac is fine. Apple is contributing their code to the OpenJDK project, which has also started a project (starting Java 7) to build binaries for Mac. So, in the near future, we Mac users will be able to install JREs and JDKs pretty much the same way that Windows and Linux users do.
Have a read here and here.
Do you know about the Mono project? It's an opensource .NET framework that runs cross platform
http://www.mono-project.com/

Developing JavaME applications on Linux

I have been tasked to develop a mobile application with java technology. So i went to oracle's website to download the toolkit, then i figured out that Java ME SDK 3.0 is only available on windows and mac.
Now my question is, does it mean that Linux users can't development Java Me applications since the development kit is only available to Windows and Mac users alone?
If a Linux user wants to develop a Java ME application, how would he go about it ?
The last Java ME SDK I successfully used on linux was the Sun Java Wireless Toolkit 2.5.2. Found here. I'm not sure what is holding up 3.0, but if 2.5.2 doesn't pan out, I'd try the Android SDK (Note on the Android SDK: It wouldn't be a Java ME application, but it would be a mobile application using java technology).
I hope this helps.
As Beanz said, 2.5.2 is fine. You can download the Eclipse mobile package which has everything. Also check out LWUIT - a fantastic UI toolkit for J2ME (also supported and provided by Oracle/Sun).
Find eclipse pulsar (for mobile developing) and import the library LWUIT. See the manual:
http://jimmod.com/blog/2010/04/basic-lwuit-tutorial-with-eclipse-pulsar/

Java ME 3.0 SDK on Linux?

Is it possible to develop java me applications on linux? It appears that there is no linux version of the sdk. Otherwise what would you suggest as a good language to develop mobile applications?
Use the 2.5.2 SDK. It works pretty well under Linux, actually.
I'd also second the recommendation for Android, where Linux is definitely not a second-class citizen.
I was able to install (an earlier version of) the SDK on a Windows machine and then copy the relevant libraries to my Linux development environment. I wish sun would provide the all the JDKs in zip/tar format. I hate having to INSTALL software just to get .jar files out of an archive. I should note that the SDK includes a mobile device emulator that doesn't work under Linux but you just need the .jars to compile code.
The Sun Java Wireless Toolkit 2.5.2 runs under Unbuntu 6.x, more details here:
http://java.sun.com/products/sjwtoolkit/download.html
We use WinXP for J2ME and Ubuntu for Android. Though that's more down to the preference of the coders than any limitiations.
Otherwise what would you suggest as a
good language to develop mobile
applications?
Well, you can still use the Java lang.
But maybe develop some Android apps.
virtual box can be a great help here, for OSX and Linux users, unfortunately most of the emulators and sdks, in particular the preverifiers are geared for Windows first, a prime example being Blackberry
Our flow tends to be to develop the bulk of the application in the std wtk environment, then do the final porting and tweaking under a virtualised Windows environment

Categories