Linux / Unix1. Download and install Java from Oracle. (Skip this step if you have a Java already.) 2. Download the jmusic and jMusic instrument files from sourceForge. 3. Place the jmusic.jar file and inst directories in your Java class path. This is usually done by editing your shell .*rc file (in OS X for example edit or create a ~/.cshrc file or in Linux a ~/.bashrc file) and add the location of the jMusic directories to the class path environment variable. (See OS X section below for more shell default details). 4. (Optional) To use the MidiShare package (msjm) for MIDI input and output you will need to download and install MidiShare from Grame, including the Java developer kit with the grame.jar file. You should run msconnect to connect the various midi input/output sources that you might have. E.g., (for the tcshell) setenv CLASSPATH ${home}/jmusic/lib/jmusic.jar/:${home}/jmusic/inst/:. Note: The jmqt package requires Apple's QuickTime and will not run on Lunix or Unix. You can safely ignore it. Mac OS X1. Download the jmusicjar file and jMusic instrument directory from sourceForge. (Follow links from jMusic_Stable) 2. Place the jMusic folder in your user directory. e.g., /User/andrew/jMusic 3. Place the jmusic.jar file and the inst directory in your Java class path. This is usually done by creating (or editing) your shell .*rc file. In OS X systems that use the cshell by default it is the ~/.cshrc fil
In OS X systems that use the bash shell by default it is the ~/.bashrc file.
4. Reshresh the teminal to utilise the changed environment variables. Open a terminal window (or quit and reopen if already open) to initiate the .cshrc file. (The terminal app is in the /Applications/Utilities/ directory.) Use the commands javac filename.java or java filename to run jMusic files. 5. (Optional) To use the MidiShare package (msjm) for MIDI input and output you will need to download and install MidiShare from Grame, including the Java developer tools with the grame.jar file. You should run msconnect to connect the various midi input/output sources that you might have. All the files need to go in the working directory. The grame.jar needs to be added as an environment variable in the classpath. For example, add :${home}/jMusic/graeme.jar to the end of the setenv CLASSPATH command above if the grame.jar file is in the jMusic folder. Note: With Java for OS X version 1.4.2 Apple broke QTJava support, so the jMusic jmqt package does not work. If you have this version of Java installed please avoid the qtjm package within jMusic (for now at least - there is an update in the works at Apple we believe). Mac OS 9Install java: (Skip these steps if you have a Java runner and compiler already.)
Install jMusic:
WindowsFirststage, install Java bits.
(Optional step) If you wish to use the QuickTime playback utilities you need to install Quicktime with the optional Java components enabled. Download the Quicktime installer from Apple. When installing, choose to do a 'Custom Install' and ensure that the 'Quicktime for Java' checkbox is selected. The next stage is to set up jMusic. For even more information on getting going with Java try the gettingstarted instructions from Java's homepage. Using -classpath options directly Ifyou are compiling at the command line there is a method where you canignore the .profile setup using the -classpath option for the Javacompiler (in fact it's what I do most of the time). Here is an overview: 1. Download the jmusic###.jar file from sourceforge and put it is a directory/folder on your hard drive. 2. Write (or download from a tutorial) a jMusic program file and save it in a directory/folder on your hard drive. 3. Open a terminal/command-line application 4.Compile and run using the -classpath option for the javac and javaapplications, and pass it the 'location' of your .jar file, then usethe complete path for the location of your .java program file. e.g: In a Bash shell on OSX the compiling command looks like this (with a space between the two paths) javac -classpath /Users/acid/AB_Work/Code/jMusic/src16/build/jar/jMusic1.6.4.jar /Users/acid/Desktop/Scale.java Theexecution command looks like this (with a colon between the paths forthe jmusic library and the program file, and a space before theJava class name) java -classpath /Users/acid/AB_Work/Code/jMusic/src16/build/jar/jMusic1.6.4.jar:/Users/acid/Desktop/ Scale The full set of .java source files for jMusic are availible from SourceForge. The Javadoc-generated documentation in HTML format can be downloaded from sourceforge. It can also be viewed online from this site. Work through the online tutorials and documented example code to see how to compose with jMusic. Visit the DigitalInstrument Building web resource that features jMusic tutorials focused on music software development. Download the jMusic tutorials as a zip archive. [15.4 MB] We are very interested to hear your comments about jMusic, the music you write with it, and to see any additions to the classes you might make. Check previous questions or suggestions at the jMusic-dev archives or send a message by subscribing to the list. Join the team formally by registering at |
SwingSane is a powerful, cross platform, open source Java front-end for using Scanner Access Now Easy (SANE) back-ends. The most powerful feature is its ability to query back-ends for scanner specific options which can be set by the user as a scanner profile. SwingSane is a powerful, cross platform, open source Java front-end for using Scanner Access Now Easy (SANE) back-ends. The most powerful feature is its ability to query back-ends for scanner specific options which can be set by the user as a scanner profile. Download SwingSet - Java Swing components that you can use. Drivers; Games; Mac. Source SwingSet project was built as a Java toolkit that comes with data-aware replacements for many of the. Java Swing 3 Popular Java Editors To write your Java programs, you will need a text editor. There are even more sophisticated IDE available in the market. But for now, you can consider one of the following: Notepad: On Windows machine, you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
Supportedby the following organisations:'Great tutorial. Thank you for concise directions to get me running with Java on my new iMac.'A.M., May 3, 2010
'Thank you so much for this tutorial! I am new to programming and have never written any code on my mac before now. This was very helpful!'M.A., August 29, 2010
'Great tutorial.'W.C., October 8, 2009
'Great tutorial! Many thanks, this is really helpful for a programming assignment in a computer network class I'm taking.'Z.L., October 6, 2009
'Great tut omg thanks so much!'S., October 4, 2009
'I love this tutorial! Thank you!'S.R., March 4, 2009
'Fantastic!!!!! Thank you very muchhhhh!! I can start mac programing now. The tutorial is great!!!'F., November 8, 2008
'Incredibly clear to follow, Thanks very much'J.G., October 1, 2008
'Très bon tutorial, merci beaucoup'K., November 7, 2007
'This is exactly the information I was looking for!! Great job explaining how to use the Jar Bundler. I always wondered how to group my files into a single 'app' file.'J.L.M., July 6, 2007
'Thanks for the tutorial.'D.W., June 6, 2007
'Great tutorial! Thank You very much!'T., May 19, 2007
Import Java Swing
'This is a very good developement friendly site'A.K., March 18, 2007
'Thankyou, I am very happy to read your content for MacJava. Thankyou very much'A., January 12, 2007
'Very Good!!!!'D.A., August 10, 2006
'Great article - I found it very helpful! Thanks!'J.T., August 1, 2006
'Hello, Great information, thank you very much! Can I translate your article in french?'P.T., January 21, 2006
'Great article!'D., December 9, 2005
'Thank you so much. Your instructions are perfectly concise. There is plenty of information about programming, but not nearly enough about installing and packaging. This page is a blessing.'S.B., October 21, 2005
'This is a great info on mac application builder'S.S., October 11, 2005
'sweet article! one of the clearest and simplest ive seen and everything just works!!'J.B., September 9, 2005
'Amazing, I would never have thought it was that easy... You are truely the best!'M.F., September 7, 2005
'Couldn't be more clearer!'M.H., August 13, 2005
'THX a lot - very helpful and direct to the point'T.W., August 9, 2005
Java Swing Download
'Cool -- you solved the mystery!'C.M., June 27, 2005