Cant view package contents in .jar file Mac OS X

I understand that I should be able to right-click on a .jar file to get a number of options, one of which is 'show package contents'.
I have created a .jar file of my project, but when I right-click, no such option appears, so I can't see what's inside.
Any suggestions?
Also, is there a better way to view and edit the package contents, in particular the manifest file?

Martin_J wrote:
I understand that I should be able to right-click on a .jar file to get a number of options, one of which is 'show package contents'.
I think you may be confused between the jar file, and the application bundle on OS X. When you hold down the ctrl key and then left click, normal click on an application bundle file, you do indeed see a number of options. One of which is to show package contents. An application bundle is a form of a directory and showing the package contents allows you to navigate the directory of the bundle on OSX.
I have created a .jar file of my project, but when I right-click, no such option appears, so I can't see what's inside.
Correct. Neither can I. I've not heard of right clicking on jar files to see inside.
Any suggestions?
Also, is there a better way to view and edit the package contents, in particular the manifest file?The manifest file is part of the jar file. The application bundle is assembled from, among other resources, the jar files that make up your application.

Similar Messages

  • Viewing the contents of jar files

    If I have 5 jar files and I want to search for a specific package on these jar files
    what command does jar have to search for this?
    I need to search for a package called org/apache/XML in 5 jar files
    Is this possible or do I need to extract the files in jar?

    If you're running unix or linux try:
    jar tf jarFile.jar | grep org/apache/XMLToo bad that you cannot execute this command on several jar files at once.
    If you're running windows, just open the thing in Winzip, sort by package name and search for it manually...
    Message was edited by:
    Peetzore

  • I don't have permission to view the contents of hidden files on my own Macbook Pro

    I don't have permission to view the contents of hidden files on my own Macbook Pro.
    Im fairly new to Mac and for some reason I do not have permission to view the contents in hidden files.
    Can someone please help.
    Thanks

    kata505 wrote:
    After some time, I found the location of the files to be in the folder 'Masters'.
    Thank You everyone for their help.
    Much appreciated
    It is not good to mess with the structure of the iPhoto or Aperture Libraries.
    You can access the image "files" from within the programs. Anything you would want to do with an image file you can do with the image in the iPhoto app itself.
    If you really must get to the file, you can select Reveal in Finder from the File menu.

  • Need help: how to make a package into a jar file?

    I tried to make a package into a jar file by using:
    jar cf a.jar packagedirectory
    But when I import one class of this package in an other application, by using:
    javac -cp path\a.jar; app.java
    the compliler can not find the calss.
    The interesting thing is if I do not put the package into the jar file, it works well.
    Here is my sample code under path D:\b\b1
    package b1;
    public class Son
         int x = 10;
         public Son(){
         public int getX(){
              return x;
    and the application code under path d:\b
    import b1.Son;
    public class Father
         public Father(){
         public static void main(String[] args)
              Son son = new Son();
              System.out.println("Hello World!"+son.getX());
    Thanks for any advise.
    Xin Cheng

    You must make sure that you are in the right directory
    when you do your jar command to create the archive.
    [home/trejkaz/proj/test/classes]% jar -cf a.jar
    path/to/package/*.class
    Thank you very much.
    Yes, I did as what you said, but it does not work.
    Here is what I did:
    1. Edit Father.java in D:\b
    2. Edit Son.java in D:\b\b1
    3. Compile Son.java
    4. Complie Father.java
    5. Make the a.jar by
    command jar cf a.jar D:\b\b1\ (I cheked the content of the a.jar, it seems right.)
    a.jar is in directory D:\b
    6. Delete Son.class in D:\b\b1
    7. Run Father.class by
    command: java -classpath D:\b\a.jar; Father
    error message is: Exception in thread "main" java.lang.NoClassDefFoundError: b1/Son
    at Father.main(Father.java:11)
    What is the problem?
    Thanks again.

  • Problem in viewing a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X5)

    Hi,
    I have a javahelp project (compressed javahelp) created using
    RoboHelp 2002. The output files are jar files.
    The source files are .mpj. When I view the existing jar files
    without converting the project to .xpj I am able to view the jar
    files.
    However, this project needs to be upgraded to RHx5. During
    conversion(.mpj to .xpj) everything seems to be working fine and
    the javahelp files are generated. But when I try to view the jar
    files nothing is diplayed.
    I get the following error. Please see below.
    Has anybody come across anything similar? Is there anything I
    need to take care of before I upgrade to .xpj? I cannot locate the
    glo.xml file in RH.
    Best regards,
    Urmi
    Parsing failed for null
    Exception caught while parsing jar:file:C:/Documents and
    Settings/urmiroy/Desktop/ep2_cd1helps/Developer_edit/JavaHelp/FLEXIEDGEBTS_dev_edit.jar!/ FLEXIEDGEBTS_dev_edit_glo.xmljava.io.FileNotFoundException:
    JAR entry FLEXIEDGEBTS_dev_edit_glo.xml not found in C:\Documents
    and
    Settings\urmiroy\Desktop\ep2_cd1helps\Developer_edit\JavaHelp\FLEXIEDGEBTS_dev_edit.jar
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at
    javax.help.MergeHelpUtilities.mergeNodeChildren(MergeHelpUtilities.ja
    va:89)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.loadData(BasicGlossary
    NavigatorUI.java:217)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.reloadData(BasicGlossa
    ryNavigatorUI.java:198)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.installUI(BasicGlossar
    yNavigatorUI.java:146)
    at javax.swing.JComponent.setUI(Unknown Source)
    at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:257)
    at
    javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:276)
    at
    javax.help.JHelpNavigator.<init>(JHelpNavigator.java:105)
    at
    javax.help.JHelpGlossaryNavigator.<init>(JHelpGlossaryNavigator.java:
    62)
    at
    javax.help.GlossaryView.createNavigator(GlossaryView.java:82)
    at javax.help.JHelp.setupNavigators(JHelp.java:148)
    at javax.help.JHelp.<init>(JHelp.java:126)
    at javax.help.JHelp.<init>(JHelp.java:76)
    at
    sunw.demo.jhdemo.JHLauncher$DisplayAction.actionPerformed(JHLauncher.
    java:956)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown
    Source)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
    Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown
    Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown
    Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    Hi Colum,
    Thanks for your reply.
    Yes, I have gone through the Peter Grainge's article. It is
    indeed very informative and I have installed the JDK and the JH
    according to the instructions given therein. My installation seems
    complete as the viewer works fine. The JDK version is 1.4.2_18 and
    the JH version is 2.0. The environment variables have also been set
    accordingly.
    All this while I was thinking it is a Java issue so I have
    tried out with different JDK versions.
    But now I think it can be a tool issue because :
    I can view the existing JavaHelp file with the current Java
    viewer.(if I do not open the project in X5)
    I can view Sun supplied sample jar files with the viewer.
    I can create new JavaHelp files with RHX5 and the current JDK
    and JH installation and view those files.
    I cannot view the JavaHelp file if I convert the .mpj to .xpj
    (the generate dialog works fine and says compilation is complete).
    The Display button does not display the file. The view
    command line command throws up the error mentioned in my earlier
    mail.
    Would appreciate any pointers.
    Best regards,
    Urmi

  • I Cant view thumbnail versions of Raw Files (.arw) in finder when i upgraded to Lion.

    I Cant view thumbnail versions of Raw Files (.arw) in finder when i upgraded to Lion.
    It worked in Snow Leopard without a problem.
    Any Solutions?

    Ben,
    I also take photos with a sony DSLR. Not a professional one but theAlpha700.
    So this was one annoying issue.
    But, I haven't found the reason why, after a few days the problem returned.
    This happened after setting up my preferences. When we do this, some how, the preferences file becomes 'corrupted' or changes any bit/byte that interferes with icon display.
    But if we repeat the process (delete prefs files), things become all right again.
    hope this helps.

  • How to see the contents of jar file?

    Hi
    is there any way we can see the contents of jar file.(Since it is similar to zip file can we unzip it and see the contents)

    In total commander Ctrl + PageDown

  • How to get the contents of jar file?

    Hi
    is there any way we can see the contents of jar file.(Since it is similar to zip file can we unzip it and see the contents)

    You can use:
    this->getClass().getResourceAsStream("/something.txt")
    where 'something.txt' is a file inside your .jar

  • Why i cant view package body ?

    hi all,
    i cant view package body in my pl/sql.
    pls help.
    tks.

    It'isn't yours then!!
    So try this
    SELECT TEXT
    FROM ALL_SOURCE
    WHERE ( OWNER,NAME ) IN (
         SELECT OWNER,NAME
         FROM (
                   SELECT USER AS OWNER,OBJECT_NAME AS NAME
                   FROM USER_OBJECTS
                   WHERE OBJECT_NAME = :NAME
                        AND OBJECT_TYPE <> 'SYNONYM'
                   UNION ALL
                   SELECT TABLE_OWNER,TABLE_NAME
                   FROM USER_SYNONYMS
                   WHERE SYNONYM_NAME = :NAME
                   UNION ALL
                   SELECT TABLE_OWNER,TABLE_NAME
                   FROM ALL_SYNONYMS
                   WHERE SYNONYM_NAME = :NAME
                   AND OWNER = 'PUBLIC'
         WHERE ROWNUM=1
    ) AND TYPE = 'PACKAGE BODY'
    ORDER BY LINEBye Alessandro

  • How do i "show package contents" on .webtemplate files that have arrow

    Hi,
    Quick question:
    How do i "show package contents" on .webtemplate files that have a small arrow attached on the file icon. Its a template a downloaded from 11mystics.com (free). When i right click the icon there is no "show package contents" available on the drop down menu....
    Thanx!

    When you bring up the contextual menu for the icon, choose "Show Original". This will take you to where the original file is and you should be able to "Show Package Contents" on it.

  • Very Easy Question: How to view source code of JAR file

    Hi Experts,
    1) Can we can see the content of JAR file?
    2) How we can we see content of JAR file?
    3) I have with me JAR file. It is sap.compcui_gpoadp~ObjectAndDataProvider.JAR. I have to make some changes in the JAR file source code. How I can find the source code?
    I tried to see the source code using NWDS. However, I can not see the code.
    Regards,
    Gaurav

    >
    Gary wrote:
    > Can I make changes in the source code of JAR file? Can I make changes in the code?
    You cannot do this by simple repacking/rearchiving of JAR, because it contains special descriptor with fingerprint. In general, JAR is unmodifiable, however, you can create a new one with modified sources.
    You can try to import the JAR in some Java project in Eclipse, for example. Then make your changes and use the Eclipse's Export JAR wizard in order to repack the modified source Java files in a new JAR.
    >
    Gary wrote:
    > Can I rename the JAR file and still it will usable? Please confirm.
    I general, yes, the operation is allowed. However, you cannot do this with JAR deployed on some J2EE server or Portal, for example. Because there are references to it.
    >
    Gary wrote:
    > Please let me know if by any chance I can see the content of JAR file in NWDS.
    Yes, sure. Use Import from Archive wizard in Eclipse. Or add the JAR in the class path of some Java project and Eclipse will show you the content of it.
    BR, Sergei

  • SIP      Where can I find (JSR 180 Package - the actual jar files)

    Hey guys I have been looking for this for hours I'm up to my ears in lovely documentation and samples where can I find the actual jar file of an implementation of the SIP API for J2ME.
    Thank you in advnace Brian

    jjsomer,
    Unfortunately, we offer no such installer package. The closest thing to
    what you desire is the LabVIEW Device Drivers CD which comes with
    LabVIEW. It will install all hardware drivers. Another option would be
    to write a batch file to run the installers in silent mode. Searching
    ni.com for "silent install" should yeild several results for installing
    our software products and device drivers without user interaction.
    Good luck!
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Cant view windows 7 shard folder on mac 10.6.7

    I have a network in my home . i use time capsule 1TB and route my internet.
    now the problem is i use to share all my PC drive in home network with mac but after i install 10.6.7 i cant find my pc shard folder on mac.
    but still i can W/R mac shard file in PC windows 7.
    in my network i have 3 macbook pro with 10.6.7 and 3 HP PC with windows 7
    can anyone help me?

    Follow the instructions in the Boot Camp Installation Guide: http://www.apple.com/support/bootcamp/
    My recommendation, install the 64 bit Windows in order to use all your RAM, especially if you plan at any time increasing the amount of RAM to greater than 4GB. The only caution I have for you is that 20GB is way too small for Windows 7. Plan on at least 50GB or more depending on how much data you will have. 100GB will be better. I have 250GB Boot Camp partition and have used more than half of it without even trying.
    I believe the installation instructions say to not use a wireless keyboard during installation. This is because you have to provide keyboard input during installation prior to the wireless keyboard drivers being installed.

  • Firefox V33.0 can't find user profile and cant view window content

    Hello
    I have used Firefox since the old days, wayyy back. Never an issue, always worked, always performed.
    My Firefox (v32 I believe), automatically downloaded and applied the v33 browser and immediately, everything went wrong...
    First, the browser loaded but the screen was either sheet black or sheet white, then reloading (after closing the window) was informed (only via the window title as all else was block black) that Firefox couldn't see a user profile.
    I loaded FF with safe mode and disabled everything (list of addons at the bottom of this post), and the browser loads now and I can see content, but then after only a minute in "safe mode" firefox persistently returned with either a fatal crash or a sudden inability to find the user profile (causing exit).
    Reading up about possible workarounds, I eventually managed to export the Profile data (to desktop), to clear the profile data and replace data with desktop copy. Clearing the data took several attempts due to firefox display only showing black or white as stated above, but firefox then couldn't "import" profile as I can't see whats going on in the window.
    Eventually manually installed profile data (from desktop automatic copy) to firefox but FF still persisted in crashing to desktop and not displaying correctly if not in Safe mode. I eventually uninstalled firefox and reinstalled from scratch. The reinstall persisted with all the above mentioned issues, I did manually reinstate the FF user profile and crashing to desktop is now rare but does still happen, now it usually happens when Firefox is not the current active window.
    Firefox still does not display correctly unless in the "Safe Mode".
    Any clues or help or suggestion about why this would happen? Any way I can revert to version 32?
    My Addons :
    No Services.
    Appearance, default only
    PLUGINS:
    VLC plugin 2.1.3.0
    Silverlight plugin 5.1.3
    shockwave flash 15.0.0
    Quicktime plugin 7.7.5
    Java platform SE7 U67 10.
    Google Update (disabled)
    Adobe Acrobat 11.0.9
    EXTENSIONS:
    British Dictionary (not compatible with v33!!, disabled)
    Colorzilla 2.8.1
    cssUpdater 0.5.2 (disabled)
    Dust-Me Selector [for CSS] 4.1
    Firebug 2.0.3 (and associated FireDiff, FirePHP, EventBug)
    enabling / disabling all/any of these does not (so far) change the graphical fault loading Firefox outside of Safe Mode.
    Any ideas?
    cheers
    P.S>As additional info: I have tried the "reset firefox" but this caused numerous little bugs with saving the profile user data. Also reseting did not fix any of the issues.
    Everything else on my computer works fine. No virus, no malware (Eset / MWBytes) all other programs fine, and FF was fine until V33!!

    Hi for the crashes that are continuing, we're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and then go back to your forum question and paste that into the "Post a Reply" box. (Please don't take a screenshot of your crashes, just copy and paste the ID's. The below image is just an example of what your Firefox screen should look like)
    [[Image:aboutcrashesFx29|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

  • Hide java (.jar) file in dock

    help. im using mrpostman with thunderbird. i set up mrpostman.jar to open automatically everytime i login. i checked the "hide" button.. but upon restart i still see the java file/icon in the dock. is there anyway i can hide this? please help...

    so is it safe to say that there is ABSOLUTELY NO WAY to make "java" no appear in the dock?
    if that is the case, how can i possibly change the icon of that file? i tried the getinfo+paste but the icon only changed in the finder window and not the dock.. and i noticed there is no "show package contents" for jar files..

Maybe you are looking for