Even at consumer shows such as MacWorld, Jobs lets audiences know that Apple is the leading supplier of UNIX in the world. Included in Apple's operating system is both the JRE and JDK for J2SE v1.3.1.
On the other hand, every version of Mac OS X is a system ready to run your Java application.
As a Java developer, you might dismiss this as still being a small percentage of the personal computer market. In the third article, we'll look into packaging and deploying your Java application so that users don't have to think about jar files, shell scripts, or opening a Terminal window.Īt his July 2002 MacWorld Expo keynote, Apple CEO Steve Jobs reported that there were two and a half million Mac OS X users and that by the end of the year there will be five million users. Next time we'll look at changes to the code that will change the keyboard shortcuts, customize the layout of menus, and tweak the behavior of your application. In this article we'll look at some of the runtime properties you can set to move the position of the main menu bar, customize the Application menu, and tweak the appearance of the frame components. There are three phases to making your application feel more like a native Mac OS X application when running on a Mac without changing the look and feel on other platforms. After all, the end users don't care what language an application is written in any more than you care if this article is drafted in longhand, on a typewriter, or on a TiBook. In this series we'll look at what you can do to your Java application to make the experience more Mac-like. These end users don't care what language your application is written in, they just want a double-clickable application that is attractive and easy to use. Whether or not you develop on a Mac, take the time to make a small number of changes to your application so that you provide a Mac-like experience for the millions of potential customers who already use Mac OS X. The Mac is a great platform for Java developers with a wide array of commercial, free, and open source development tools available. Check a checkbox and you've enabled the built in Apache server.
Developers can pop open a Terminal window and find that their favorite geek tools like vi, emacs, and the Java command line tools are already installed.
With a few simple tweaks you can give your Java application a native look and feel so that Mac OS X users can install and run your application without being aware that they are running a cross-platform application.ĭespite its pretty face, Mac OS X is built on top of BSD UNIX and comes complete with J2SE and Java Web Start installed. They have the Java 2 Standard Edition (J2SE) v1.3.1 pre-installed on their computers and may not even know it.
If you already have added the above steps then MongoDB will start by the time your MAC OS started.There is a market full of millions of potential customers for your Java application that you may not be considering. Save the file and load the above job: $ sudo launchctl load /Library /LaunchDaemons /istĠ 12 1 0 4:06PM ? 0: 20.29 /usr /local /mongodb /bin /mongodĥ01 542 435 0 4:37PM ttys000 0: 00.00 grep mongo $ sudo vim /Library /LaunchDaemons /istĪnd add the following content to “ /Library/LaunchDaemons/ist” Label mongodb ProgramArguments /usr /local /mongodb /bin /mongod RunAtLoad KeepAlive WorkingDirectory /usr /local /mongodb StandardErrorPath /var /log /mongodb /error.log StandardOutPath /var /log /mongodb /output.log To auto start yor installed mongoDB, create a launchd job on your Mac OS. $ cd ~Įxport MONGO_PATH = / usr / local / mongodb Step 4: Set you PATH on Bash Profile for MongoDB:Ĭreate a ~/.bash_profile file if not exists else update, and assign /usr/local/mongodb/bin to $PATH environment variable, so that you can access MongoDB on commands easily. $ sudo mv mongodb-osx-x86_64-2.6.1 /usr /local /mongodbīy default, MongoDB write/store data into the /data/db folder, you need to create this folder manually and assign proper permission as given below: $ sudo mkdir -p /data /db
Step 2: Install MongoDB: $ cd ~ /Download
Easy spets to nstall MongoDB on Mac OS X ( I have used MAC OS – Mavericks)ĭownload MongoDB for MAC OS from official MongoDB site: