Java EE SDK for mac - java

After spending 3 solid days on this with nothing to be happy about. I'm being freaked out already. I'm a newly in java and just about getting it rolling in java ee...
Please, good people here. I am confused. I am looking for Java EE 6 SDK for mac os x lion 10.7.2 64bits.
I found on oracle's website java ee 6 sdk for unix and windows and no mac... spent tons of time on google and apple's website forums and support but found nothing pertaining to this.
Is it that mac does not need Java EE 6 SDK? or what? I already have netbeans installed and eclipse as well which I've been using during my early beginning stage in java SE.
Can anyone help?
Thanks in advance!

Mac is the Unix, did you tried shell script they provided?

Java EE is an API, not a complete implementation ( that is provided by your application server where your code is deployed to).
Hence you just need the API jars. This can, however, be avoided if you get the Netbeans+Glassfish bundle, and let Netbeans do the work by choosing an appropriate template when creating a new module.

Related

Eclipse javax.websocket import not resolved

I'm new to Java development (using it for speeding up my real-time game server, coming from Python).
I'm trying to add some basic Java server-side websockets, and added the simplest example code I found (from WebSockets production ready server in Java?).
I'm importing the following:
My problem is, eclipse is telling me that the import "javax.websocket" cannot be resolved. Where I can add the "javax" module? I don't understand the complicated interface fully yet, thanks a lot for any help! (I've got the latest eclipse, with Java 8 installed on Mac os X 10.11 latest)
Do you use JDK or Java EE? javax.websocket is in Java EE.

Deploying Java 7 applications on Mac

I need some pointers to relevant information.
I'm trying to generate a Mac application bundle that contains a Java program. For Java 6 this is fairly easy.
But as far as I know, Java is no longer included with OS X, and in particular there is no guarantee that Java 7 is installed on a user's Mac computer.
Googling only brings confusion. There are hundreds of web pages that tell you how to deploy Java on a Mac, and there are dozens of tools that help you generate the application bundes. The problem is that most of these were written for creating applications that use Java 6. I have not yet found relevant information that I can use with Java 7.
So,
Where can I find information about how to deploy Java 7 applications on a Mac?
Is it possible to include the Java 7 VM in the application bundle, or do the users have to dowload and install it separately?

Java EE -- Configuration issues for a beginner

all. Relative rookie here who has spent the better part of three days just trying to get started with Java EE, and it's driving me up a wall. I've already read through numerous tutorials and consulted several book, so now I am turning to you.
I am starting from complete scratch, having uninstalled NetBeans and Glassfish and the Java EE SDK. My main issue is quite simply configuration. All the resources I've found typically say in a mere throwaway line: "Once you download the SDK, you must configure your environment for Java EE." But HOW? I need it in plain English. Even the most novice guides leave this basic stuff out. Does this mean editing the JAVA_HOME path or what? How does this configuration relate to the Java SE already on my system? Furthermore, I assume I don't need to also download the JDK with EE since I already have a JDK? (I am a Mac user, if that matters.)
I know I have a long, long way to go, so I appreciate any help I can get as I try to get this ball rolling. Much thanks in advance!
I think if you are using Netbeans then you don't have to worry about these things....
Simply File > New Project > Java Web > Web Application will help you get started with web applications..
Normally you would want to set the Java Home path so when you are compiling and running code your JDK is recognized. Sometimes IDEs come with their own JDK and then it really does not matter. However here is how you would set the path in different OS.
http://java.com/en/download/help/path.xml
For MAC I recommend this tutorial
http://lindaocta.com/?p=38
Make sure your JAVA_HOME is set in environment variables (just downloading SDK is not enough, you need to setup), I don't know how to do it mac, but in windows we setup my right click mycomputer-->Advanced-->Environment variables
Then install Netbeans, this step automatically searches for JAVA_HOME and assumes that SDK for all purposes. Then you are all set of programming.
If you don't mind switching to Eclipse can I recomend this tutorial An Eclipse / GlassFish / Java EE 6 Tutorial ignore the referance to Azzyzt tools and run through the tutorial step by step using GlassFish Tools Bundle for Eclipse.

Java or Objective-C for MacOSX (back to 10.3 & PPC)

We are starting some new app development but because of special business requirements, need to support back to Mac OS X 10.3 as well as PPC/Intel CPUs.
The latest Xcode 4 isn't an option, from what I can tell it only goes back to 10.5 and doesn't support PPC at all. Is Xcode 3 an option? Would it be easier to just use Java?
P.S. From anyone experienced in either, can you please comment on some of the pros and cons you've bumped into?
EDIT
As requested, here's a brief overview of the app:
The app needs to talk to a server which will expose JSON web services. The app itself needs to be built in a way that will allow plugins (not 3rd party, but in-house with the ability to customize which features the customer owns). Each plugin will gather specific information about the host OS - such as running apps, users, CPU usage, etc.
If you can find a way to make Objective-C work with your requirements, it is worth it in my opinion.
I myself am a former Java developer who has moved into the creation of native Mac OS and iOS apps. I tried using Java for some of my early Mac OS projects and always found the support to be lacking. It can be done, but it was always more difficult than it should've been and never worked as well as a native app.
Here is a link to another SO post that describes some workarounds for getting older SDK versions working in Xcode 4. I can't vouch for how well they work with current versions of Xcode, but it's worth trying.
In view of your requirements, especially the need to do some system evaluation, I would strongly recommend to use Objective-C and the Apple development environment. You will have a lot of difficulties using Java to retrieve the neccessary information about the host OS, that you want to use in your application.
You could try to run Xcode with older SDK versions, but I have virtually no experience on OSX to give you solid advice on how to do this.
EDIT: My Xcode 4 gives me an option to select a "Deployment Target", where I can go back to supporting 10.1, but I have no idea, if this is the right thing...
Well,
Apple isn't a Java friendly company. You don't have all the bindings you may need on their JVM.
So I strongelly recommend (given that your project will be Mac OS X only) Objective C instead of Java
I program in Java but on Mac OS X, Objective-C is better than Java because it is faster and developed by Apple itself. Moreover, if you develop a program in Objective-C, you can sell it on the Mac App Store while if you develop it with Java you can't.
So go with Objective-C.

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/

Categories