What does it take to make double-clickable hjars in Mac OS X?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Phillip_Lawes
Posted On:   Thursday, October 24, 2002 11:10 AM

I cannot get double-clickable JAR's to run on my Powerbook with Mac OS 10.1.5. I have enclosed a small example below illustrating the problem. The file: /* luna.java */ import java.sql.*; import java.util.*; public class luna { public static void main(String args[]) { System.out.println( "Started luna" ); } } ------------------------------------------------------------------------------------ The Manifest: Manifest-Version: 1.0 Main-Class: luna --------------------------------------   More>>


I cannot get double-clickable JAR's to run on my Powerbook with Mac OS 10.1.5.
I have enclosed a small example below illustrating the problem.



The file:
/*
luna.java
*/



import java.sql.*;
import java.util.*;


			
public class luna {

public static void main(String args[]) {

System.out.println( "Started luna" );

}

}


------------------------------------------------------------------------------------


The Manifest:


Manifest-Version: 1.0
Main-Class: luna

------------------------------------------------------------------------------------


Folder "luna" contains:

luna.class

luna.java

lunaManifest.txt

luna.jar



luna.jar works in apple's OS 9 jar utility, but will not start on a double-click.
It flashes the opening animation, but nothing more.


Two questions:


(1) What does it take to make double-clickable hjars in Mac OS X?


(2) I have had a situation in which a jar started to work only after I removed an
unused import statement from the file.
Is this normal, i.e.: Should one unused import statement stop a jar in it's tracks?
What other gotchas are there that I should look out for?


I would greatly appreciate any pointers you can provide.


Many thanks in advance.

   <<Less
About | Sitemap | Contact