Create a custom dock/application icon for .jar files built in eclipse

I've spent the better part of the afternoon trying to figure out how to apply a custom icon to jar file that I created in eclipse. I am presently using eclipse v3.5 on Mac OS X 10.6.2 and have yet to find a way to change the java coffee cup logo in the document icon for my jar files created in eclipse. Is there some way I can call a specific Apple class in Eclipse to change the dock/application icon of my .jar file?
I found this link that uses a class that seems to be specific to XCode to change the icon of the .jar file.
What I mean by change the icon of the jar file, I mean change the icon used in the dock, and also the icon used when the "command+tab" switcher pops up. Presently, I have the black console icon with the text "exec" in the upperleft.
If anyone has any good links on this topic or even better knows the code I need insert into my program I would be highly greatful.
cheers
-ipatch

See http://www.centerkey.com/mac/java/

Similar Messages

  • Icon for Jar File?

    Is it possible to include an Icon in a Jar file
    that will be displayed for the jar file instead
    of a default Icon give to it by Windows 2000? If
    so, how is it done?
    Thanks

    no it's not possible as the JAR file does not know anything about the operating system. this is windows dependend. if you want a custom icon for one jar file, create a shortcut to the jar and adjust the icon of this shortcut.

  • Unable to replace the default icon with the application icon for SIS files on packaging

    Hi,
    I got hold of the earlier (now removed from Adobe) available Adobe Mobile Packager (the free version). Now the problem is that I see the default packager icon on my phone for my Flash Lite application. Also, the packager does not allow me to select my application icon. I have placed the desired icon in the output folder along with its svg; doesn't help either.

    You mentioned that you implemented loopback merge mode.  It's possible some of the settings being included in the merge are interfering with your new file associations.  Have you checked to see if there are any conflicting file
    associations in other GPOs that may be applying?  If so, you may want to experiment with loopback
    replace mode.
    Also check to see if any file associations are being set in the computer configuration settings, since you are attempting to set associations in the user configuration.  In a merge scenario the computer policy is processed after the user policy, and
    has precedence if any of the settings conflict.

  • How to create a custom home screen icon for your website and where to upload it

    I created a joomla 3 site used Icon Slate to size icon but know where to upload the icons. Right now when a user goes to "Add to Home Screen" It just uses a copy of the page they are on.

    I created a joomla 3 site used Icon Slate to size icon but know where to upload the icons. Right now when a user goes to "Add to Home Screen" It just uses a copy of the page they are on.

  • How can I create a custom dock for all users?

    Hello,
    I would like to create a custom dock for everyone that uses a certain Mac. I have found a bunch of stuff, but it is outdated. Most of the tutorials are for 10.4 or 10.5. I am using 10.7.4 and I have found nothing regarding that. Can anyone point me in the right direction?
    Thanks in advance

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • Bug: Custom AIR Application icons on Mac OS X don't display after install

    There are circumstances where custom AIR application icons don't display in certain Finder views after installation.
    This is apparent when viewing the application in a docked folder popup. The icon renders as a blank with a sort of no entry slash across it. Another example where this occurs is in a Downloads folder in the Dock (if you immediately create an alias to the app in the your Downloads folder, and your Downloads folder is in the Dock).
    In addition, the maximum icon size of 128x128 really not that large. I wish AIR applications could have larger icons, like real applications.

    I've seen this occur with numerous applications (native OS X and AIR) and typically restarting the dock (rebooting or logout/login) fixes it for me.  Doing a quick search on Google show's that it's a pretty common occurrence.  Are you still seeing this occur after rebooting?
    As for the large icon support, I would like to encourage you to vote for the following two feature requests!
    Application Icon Size
    512x512 Icon Support
    Thanks,
    Chris

  • Custom certificates for JAR file signing

    Hi,
    Can anyone please let me know how to check that we have custom certificates for JAR file signing set up in our instance
    Thanks,
    Praveen

    It depends on the version of your $ADJVAPRG. See the referenced note.
    How to use,create and /or update Digital Certificates for Jinitiator in 11i Applications
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=365735.1

  • How to create a custom task in SRM for the standard task

    Hi Gurus,
    How to create a custom task in SRM for the standard task  eg: TS10407929
    regards,
    George.

    from PFTC itself. Same.

  • How can i create a custom Audio Language name for video?

    I have create a dvd with menu and vidoe (Audio 1 is sing a song , and Audio 2 is only music)
    but i cant define" a audio name for andio that is mute,
    my question is How can i create a custom Audio Language name for video?"
    Anyone can help , thank you so much for reading !!

    Thanks Stan Jones,
    Anyone can tell me a soluation and some better show up method to present that the user is changing a audio track in correct name ...
    Or Encore can do a pop-up message to show the user's selection or not ?_? (i don't know)

  • Class Loader for Jar Files

    I have a set of Jar files which i need to load using Custom Class Loader. Any one who has Javacode for Custom Class Loader for loading Jar files send it. The Jar files are local jar files.

    Here is the class loader I use:
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.net.JarURLConnection;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.InvocationTargetException;
    import java.util.jar.Attributes;
    import java.io.IOException;
    * A class loader for loading jar files, both local and remote.
    public class JarClassLoader extends URLClassLoader {
        private URL url;
        private URL[] m_urlList = new URL[10];
         * Creates a new JarClassLoader for the specified url.
         * @param url the url of the jar file
        public JarClassLoader(URL url,ClassLoader cl) {
             super(new URL[] { url },cl);
          this.url = url;
        public JarClassLoader(URL[] urlList,ClassLoader cl) {
             super( urlList,cl);
          this.m_urlList = urlList;
         * Returns the name of the jar file main class, or null if
         * no "Main-Class" manifest attributes was defined.
        public String getMainClassName() throws IOException {
          URL u = new URL("jar", "", url + "!/");
             JarURLConnection uc = (JarURLConnection)u.openConnection();
             Attributes attr = uc.getMainAttributes();
             return attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;
         * Invokes the application in this jar file given the name of the
         * main class and an array of arguments. The class must define a
         * static method "main" which takes an array of String arguemtns
         * and is of return type "void".
         * @param name the name of the main class
         * @param args the arguments for the application
         * @exception ClassNotFoundException if the specified class could not
         *            be found
         * @exception NoSuchMethodException if the specified class does not
         *            contain a "main" method
         * @exception InvocationTargetException if the application raised an
         *            exception
         public void invokeClass(String name, String[] args) throws ClassNotFoundException,
                NoSuchMethodException,
                InvocationTargetException
             Class c = loadClass(name);
             Method m = c.getMethod("main", new Class[] { args.getClass() });
             m.setAccessible(true);
             int mods = m.getModifiers();
             if (m.getReturnType() != void.class || !Modifier.isStatic(mods) || !Modifier.isPublic(mods)) {
             throw new NoSuchMethodException("main");
             try {
               m.invoke(null, new Object[] { args });
             } catch (IllegalAccessException e) {
             // This should not happen, as we have disabled access checks
    }

  • Remove the unique icon for movie files

    In Finder, I get a custom icon for each movie file that is the first frame of the movie. That doesn't help me, so I want to change it to only show the QuickTime image as a custom icon. This is the behavior of Tiger and it was useful to me. I don't get any benefit out of seeing the first frame. I get a benefit out of instantly knowing it is a movie file. Please reply if you know how to revert Leopard to using the application icon rather than the first frame image as the document icon.

    Moof666 wrote:
    Progress? I think not. Anyone know a hack to make the Finder show app icon for all files at once?
    Open a Finder window, go to Macintosh HD (or whatever the boot volume is called in your system), click the little gear icon/button, and select "Show View Options", then un-tick "Show icon preview", and click on the "Use as Defaults" button (if this button is not active, select a different option from the Arrange drop-down menu, and it will activate).

  • Deploying a BC4/ADF Swing Application to a JAR File

    Hello,
    what do I exactly have to do, to deploy an ADF/Swing/Business Components-
    Project-Application to a JAR File. I can not start it outside the JDevloper IDE,
    but I created a deployment profile and deployed it to a JAR.
    There is always the error "Could not find the main class", when starting the
    JAR. In the JDeveloper IDE the application is running, and I also defined a "main class" there.
    Could anybody help me please?
    Greetings.

    You need the ADF runtime libraries in your classpath or as part of your JAR.
    Have a look at the command that JDeveloper is using to run your project (it is in the log window) and copy the classpath defenition provided there to the command line you use.

  • How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    Hi Ed
    Thank you for contacting me, however I already know how to save text to
    audio files via timeline using the Export feature.
    So my question was not entirely clear and I apologize for that.  To explain
    further, whenever I save a text to audio file, captivate takes me to a
    default save as folder where I then have browse back to my production
    folder where I am keeping all my Txt to Aud files.  This is very tedious
    process when you have alot of files to save.  So my question was is there a
    way to configure captivate so I can make my production folder the default
    file for whenever I save a Txt to Audio file through Export feature that
    the system automatically takes me to that production folder, and I am
    spared the long tedious process of saving the file manually to the
    prodcution folder I want.
    I have copy the pathway to the production folder in the URL filed in the
    Save As dialoge box and that workaround as cut the work down but I still
    have to paste that URL field to point the file to the right folder. So it
    would be nice if I could do everything automatically.  Microsoft makes this
    capability in their MS Office applications, so I was thinking Adobe might
    do the same thing.  Your help with this would be appreicated,
    Thanks
    Merrill Roberts
    Sr. Training Specialist
    SunGard Availability Services
    Direct 925-831-7730
    Mobile:415-215-9280

  • The icons for html files are blank . . . how do i get them to show the firefox image

    on the desktop and in directories, the icons for html files are blank . . .
    firefox is my default browser . . .
    how do i get the icons to show the firefox image ?? . . .

    You can check for issues with the Windows icon cache and try to rebuild the icon cache.
    # Open the Task Manager (Shift+Ctrl+ESC)
    # In the Process tab, right-click on the Explorer.exe process and select End Process.
    # Open the file picker via "File > New Task (Run)" and click the Browse button.
    # Type or Paste %USERPROFILE%\AppData\Local (%LocalAppData%) in the File name field (AppData is a hidden folder).
    # Select the IconCache.db file and use "Delete" in the right-click context menu to delete the file.
    # After the IconCache.db file has been deleted, start a new explorer.exe process via "File > New Task" to get the desktop and Taskbar back.
    The IconCache.db file is a hidden file, so make sure that you can see hidden files.
    * http://kb.mozillazine.org/Show_hidden_files_and_folders

  • I updated to OS X 10.8.5 and the icons for the files of one app have turned generic. How do I fix this?r

    I updated to OS X 10.8.5 and the icons for the files of one app were originally for another app (and opened it). I was able to make the files open the the original app but now the icons have turned generic. How do I fix this?

    Download Mavericks from the Mac App Store.
    (95518)

Maybe you are looking for