Return to site

Mac Executable For Java Program

broken image


I am having an issue with Java in my Mac (OS X 10.7.3). Previously I installed it and it was working fine. After some changes in the.bash_profile and.profile file in the course of time, I am havi. I have written a java program. Now I would like to open my console java application without IDE, Eclipse etc., but just by double clicking on the executable version on my Desktop.

xml:lang='en-US'>

These documentation pages are no longer current. They remain available for archival purposes. Please visit https://docs.oracle.com/javase for the most up-to-date documentation.

This page shows you, step by step, how to convert a simple Java application to a version you can distribute on a Mac. To follow along, download the ButtonDemo (.zip) example from the Java Tutorial. This example was created using NetBeans which uses the Ant utility. You can run all necessary tools and make all necessary edits from the command line, without launching NetBeans. The Ant tool is required.

You have created a Java application and want to bundle it for deployment. This requires the following steps:

Create a JAR File

This step creates the ButtonDemo.jar file.

Execute ant jar in the high-level project directory to create the dist/ButtonDemo.jar file. This jar file is used to create the .app package.

Bundle the JAR File into an App Package

To create the ButtonDemo.app package, use the appbundler tool. The appbundler is not shipped with the 7u6 version of the Oracle JDK for the Mac. You can download it from the Java Application Bundler project on java.net. There is also AppBundler Documentation available.

As of this writing, the most recent version is appbundler-1.0.jar, which is used by this document. Download the latest version available and substitute the file name accordingly.

  1. Install the appbundler-1.0.jar file. In this case, create a lib directory in the high-level project directory and add the appbundler-1.0.jar file.
  2. Modify the build.xml file in the high-level project directory as follows. (The added code is shown in bold.)
  3. Invoke the appbundler by typing ant bundle-buttonDemo from the high-level project directory. This creates the ButtonDemo.app package in the dist directory.
  4. You should now be able to launch the application by double clicking ButtonDemo.app in the Finder, or by typing open ButtonDemo.app at the command line.

Bundle the JRE with the App Package

In order to distribute a Java application, you want to avoid dependencies on third party software. Your app package should include the Java Runtime Environment, or JRE. In fact, the Apple Store requires the use of an embedded JRE as a prerequisite for Mac App Store distribution. The runtime sub-element of the task specifies the root of the JRE that will be included in the app package.

Dvorak, Colemak or custom layouts being built using Ukelele) are completely or partially supported. https://tilididis1970.mystrikingly.com/blog/best-typing-program-for-mac. All system keyboard layouts (but not input methods!) as well as a wide variety of non-system keyboard layouts (i.e.

In this example, the location of the JRE is defined using the JAVA_HOME environment variable. However, you might choose to bundle a JRE that is not the same as the one you are using for development. For example you might be developing on 7u6, but you need to bundle the app with 7u4. You will define runtime accordingly.

Since this example defines the runtime sub-element using JAVA_HOME, make sure it is configured correctly for your environment. For example, in your .bashrc file, define JAVA_HOME as follows:

Use the following steps to modify the build.xml file at the top of the project directory:

  1. Specify an environment property, named env:
  2. In the target that creates the bundle, specify the location of the JRE on your system, using the env property:

The resulting build.xml file should look like the following. (The new lines are shown in bold.)

For

Create a fresh version of ButtonDemo.app, using the ant bundle-buttonDemo command. The resulting version includes the JRE in the app package. You can confirm this by examining the Contents/PlugIns directory inside of the app package.

Sign the App

The Gatekeeper feature, introduced in Mountain Lion (OS X 10.8), allows users to set the level of security for downloaded applications. By default, Gatekeeper is set to allow only OS X App Store and Developer ID signed applications. Unless your app is signed with a Developer ID certificate provided by Apple, your application will not launch on a system with Gatekeeper's default settings.

For information on the signing certificates available, see Code Signing Tasks on developer.apple.com.

The signing certificate contains a field called Common Name. Use the string from the Common Name field to sign your application.

Sign your app using the codesign(1) tool, as shown in the following example:

Update: This program is for Windows. Is there a program like powerpoint for mac. I mention this because although the Kingsoft Professional giveaway is over, you can still for, well, free. And you know what? Until last week, I'd never heard of Kingsoft or this product.

A program for reading the mac hard drives. What Format Is the Windows Hard Drive? The stumbling block in easy cross-compatibility between macOS and Windows is the file system. Windows makes use of NTFS in most instances, however typically drives are formatted as FAT32 as nicely. Windows can't normally read Mac-formatted drives, and will offer to erase them instead. But third-party tools fill the gap and provide access to drives formatted with Apple's HFS+ file system on Windows. Read Mac Formatted Drives with Windows This is because Mac uses the HFS+ format natively, whereas Windows uses ExFAT or NTFS. One simple way to make the drive readable on both platforms is to format it to ExFAT, which both operating systems can understand. Some Mac drives may be formatted with the HFS+ file system — some drives marketed to Mac users may even come pre-formatted with HFS+. Windows can't read this file system by default, but there are ways to read that HFS+ drive from Windows.

A program like photoshop for mac. There are seriously way too many new features for us to cover in such a short overview: instead, we'll briefly look at some of the more notable improvements. Of course, if you're itching for a brighter look, CS6 gives users lighter-colored interfaces, reminiscent of previous versions. Photoshop CS6 brings a darker, more focused default work environment, with menus and toolbars painted in dark grays and blacks. Tools are more streamlined thanks to Adobe's continuing move towards collapsible menus, while leaving the primary tools visible. Let's start with the interface: dark is good.

To verify that the app is signed, the following command provides information about the signing status of the app:

To check whether an application can be launched when Gatekeeper is enabled, use the spctl command:

Compile Java To Executable

If you leave off the --verbose tag, and it does not print any output, indicates 'success'.

For more information, see Distributing Outside the Mac App Store on developer.apple.com.

Java create an executable

Create a fresh version of ButtonDemo.app, using the ant bundle-buttonDemo command. The resulting version includes the JRE in the app package. You can confirm this by examining the Contents/PlugIns directory inside of the app package.

Sign the App

The Gatekeeper feature, introduced in Mountain Lion (OS X 10.8), allows users to set the level of security for downloaded applications. By default, Gatekeeper is set to allow only OS X App Store and Developer ID signed applications. Unless your app is signed with a Developer ID certificate provided by Apple, your application will not launch on a system with Gatekeeper's default settings.

For information on the signing certificates available, see Code Signing Tasks on developer.apple.com.

The signing certificate contains a field called Common Name. Use the string from the Common Name field to sign your application.

Sign your app using the codesign(1) tool, as shown in the following example:

Update: This program is for Windows. Is there a program like powerpoint for mac. I mention this because although the Kingsoft Professional giveaway is over, you can still for, well, free. And you know what? Until last week, I'd never heard of Kingsoft or this product.

A program for reading the mac hard drives. What Format Is the Windows Hard Drive? The stumbling block in easy cross-compatibility between macOS and Windows is the file system. Windows makes use of NTFS in most instances, however typically drives are formatted as FAT32 as nicely. Windows can't normally read Mac-formatted drives, and will offer to erase them instead. But third-party tools fill the gap and provide access to drives formatted with Apple's HFS+ file system on Windows. Read Mac Formatted Drives with Windows This is because Mac uses the HFS+ format natively, whereas Windows uses ExFAT or NTFS. One simple way to make the drive readable on both platforms is to format it to ExFAT, which both operating systems can understand. Some Mac drives may be formatted with the HFS+ file system — some drives marketed to Mac users may even come pre-formatted with HFS+. Windows can't read this file system by default, but there are ways to read that HFS+ drive from Windows.

A program like photoshop for mac. There are seriously way too many new features for us to cover in such a short overview: instead, we'll briefly look at some of the more notable improvements. Of course, if you're itching for a brighter look, CS6 gives users lighter-colored interfaces, reminiscent of previous versions. Photoshop CS6 brings a darker, more focused default work environment, with menus and toolbars painted in dark grays and blacks. Tools are more streamlined thanks to Adobe's continuing move towards collapsible menus, while leaving the primary tools visible. Let's start with the interface: dark is good.

To verify that the app is signed, the following command provides information about the signing status of the app:

To check whether an application can be launched when Gatekeeper is enabled, use the spctl command:

Compile Java To Executable

If you leave off the --verbose tag, and it does not print any output, indicates 'success'.

For more information, see Distributing Outside the Mac App Store on developer.apple.com.

Submitting an App to the Mac App Store

Packaging an app for the Mac App Store is similar to packaging for regular distribution up until the step of signing the app. Signing the app for the Mac App Store requires a few more steps, and a different kind of certificate.

You will need to create an application ID and then obtain a distribution certificate for that application ID. Submit your app using Application Loader. For more information, see the following links (on developer.apple.com):

Apr 13, 2008  Lenticular Software for Mac? Please login or register. And have been purchased by Snap3D) marketed, for a time a program for simple lenticular interlacing and printing. Their starter kit even included some lenticular plastic material. For around $40, and a little experimenting, you could be printing lenticulars at home on your desktop. Imagiam Lenticular Suite v6.2 is a high performance, easy to use, rich feature software for printing lenticular effects with the highest quality, like flip, motion, 3D, volumetric 3D and many others. HumanEyes Graphic Arts applications provide a complete end-to-end workflow solution from content creation to finished production of printed lenticular projects. Lenticular printing at a level of productivity and ease of use never experienced before. This is an informative site on the use of lenticular software in the processing of lenticular images. It is brought to you by DP Lenticular Ltd. For more information on lenticular sheets and lenticular plastic, please go to the DP Lenticular website. https://tilididis1970.mystrikingly.com/blog/. Is a flexible WIN 95/98/NT, XP, Vista, Windows 7, Windows 8, and Intel Mac program for interlacing graphic images to fit a lenticular screen. Can be used to make winkie-blinkie flip images, motion, or 3-D lenticulars.

Mac Executable For Java Programming

Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved.




broken image