Extracting contents of a jar file

I try to extract a jar file:
# jar -x Atheon.jar
it just doesn't do anything.
LOL. Im retarded. what am i doing wrong?

You expect an answer in 25 minutes on a Sunday?
Try telling jar that you're giving it a filename rather than piping stuff into it: jar xf myFile.jar

Similar Messages

  • Any Possibility To Extract Contents of a JAR File

    Is there Any Possibility To Extract Contents of a JAR File . i.e class files with proper names.
    Thnks

    Well, than it's to bad. There is no way to get the original names back. It's supposed to be that way, you know ;)

  • Extract contents of a .Jar file or executable jar file

    I have an executable Jar file.. Is there anyway that I can see the contents of this file.. the code in it..
    I have read some tutorials on how to extract .jar files but the question is where do i execute these commands.. is it on the command window or somewhere else.
    Can anyone help me plz????????

    but the question is where do i execute
    these commands.. is it on the command window or
    somewhere else.
    If you're using windows OS, you can do execute the
    command in dos promt
    and if you're using linux, you execute it in the
    Terminal/Console or double click on the file name in
    the
    Knoqueror, you can see the contents.Konqueror file manager,you can see the contents.

  • How to extract the contents of the Jar file?

    Hello,
    Can anyone tell me how to extract the contents of the Jar file?
    An example will be highly appreciated.
    Thanks.

    From command line, or from within a java application?
    Kaj
    Btw. Why do you need to do it. You do know that you can add jars to the classpath and read resources from them without extracting the file?

  • Extracting contents of a JAR

    how would i extract the contents of a JAR file called Atheon.jar?
    would it be:
    # jar -xf *.* Atheon.jar
    i have no clue how to do it. can somebody help??

    Apart from the fact that you've cross-posted this message, and that you're trying to extract the jar as root, it appears that you need to download a program to check the integrity of your RAM.

  • Extracting contents of a PPT file

    Hi all,
    Is it possible to extract contents from a PPT using java ? Like getting the text and image information slide by slide..... Please help me.
    Thanks in Advance ,
    Ravi

    I'm sure there's some kind of API, but I've found that Google is the best place to ask general questions.

  • How do i edit the contents of a JAR file?

    i have a file named AdvancedPlayer.java (i edited this one) and there is a file in the Jlayer jar named AdvancedPlayer, how do i switch them?

    you can open your jar archive with WinZip or WinRar, and just delete the old file and put in new one. All the signing will be destroyed thou. So if you want your JAR to still be signed, you want to build your JAR with the correct file already in place.
    Also you know that .java file is source code and not executable like .class file? You prbl want to replace class files not java files.
    Edited by: Crazy_Russian on Jun 14, 2008 7:32 PM

  • Executing JAR Files Windows 98 and XP

    Hey can someone please help me.
    I made an executable jar file the extract contents of a jar file. In windows XP it runs fine, however in Widnows 98 it does not, has anyone come across this problem? Any info would be greatly appreciated.
    Thanks

    Well When I try, On a windows XP machine it shows the progress bar I made, and extracts all the files to the c drive. On Windows 98 It shows the progress bar but will not extract the files to the c: drive folder.
    The program simply gets all the files that are within the jar file, and puts their names in a Vector, then takes the names from the Vector and Extrats the ones that need to be extracted.
    Any other Ideas, I know this sounds very wacky thats why I am in need of help.
    Thanks for the ideas.

  • Extracting JAR files and reading their contents

    Hi,
    I have a JAR files which contains classes in different packages also a config file which is also in some package structure.
    I have to read that config file, which will inturn have other file names, i have to read the filename and read the actual content of the file spcified in the config file.
    Can some one help me out with a simple example... ?
    I have tried with java.util.zip... I can read the name of all the files in JAR to any depth.. but couldn't open and read the required file.
    Thanks in advance...
    Thanks & Regards,
    Gurushant Hanchinal

    Hello you can see the content of a jar file with this line
    jar tf filename.jarand extract with
    jar xf filename.jar

  • Extract JAR file to a different directory

    Is it possible to use the jar command to extract the content of a JAR file to a different directory (not the current directory)?
    I want to use this command inside a makefile, looking for the same effect as "unzip example.jar -d directory".
    Thanks in advanced.

    Thanks Chuck, you solved my doubt... It surprises me that JAR doesn't support this option.
    I used the "unzip" command inside the makefile instead, but I wanted to be sure that there wasn't any chance to use "jar" (without using the additional script file).

  • Extracted ear/war/jar file location in JBoss

    How can I find out in runtime where JBoss extracted my ear/war/jar file?
    I have a file inside my ear/war/jar file and I need to know the location of the file. I know that it is in the tmp/deploy directory but I need the exact application temporary name.

    You can take out the common classes and bundle them in a jar library that can be bundled directly in APP-INF/lib (or library directory defined by <library-directory> in applicaton.xml if you are using JEE5 / WLS 10). Is it possible to do this re-arragement?

  • Help adding new files to Jar file.

    I am new to Java and am having problems haveing our Web App work after I have recreated the JAR file...this is what I did...
    Changed to the following directory at a dos prompt:
    D:\jdk1.3.1_01\bin
    Ran the following to extract the files from the jar file.
    jar xvf app2.jar
    ...this created 5 directories with various files.
    copied new and updated graphic files to
    D:\jdk1.3.1_01\bin\app2\images
    Recreated the jar file using the following command (pv com javavp meta-inf borland are the 5 directories that were extracted from the original jar file above):
    jar.exe cvf app2.jar pv com app2 meta-inf borland
    I now have a new jar file that is a similar size, so it looks good, but when I put it in our web site, it does not recognize certain frames (that get information from the database) that it did before (the frames are blank)
    Any thoughts on what I am doing wrong?
    Also, are there any Windows programs that i can use to make this easier instead of using the dos commands?
    Thanks...

    To change the contents while inside a java program, you might be able to use Runtime.exec(String[]). Make the array with "jar.exe" as the first index, flags in the second, and remaining arguments in the remaining indecies.

  • Unable to execute JAR files

    I am unable to execute jar files and applets. Also, the Java Web Start and the Java Plugin Control Panel will not load. I have unloaded the JRE and installed other versions. To date I have loaded and unloaded the following:
    1.4.1
    1.4.2_01, _02, _04
    1.4.2_04 SDK
    But no change in the outcome.
    The javaw application starts but does not load the jar file.
    The applets and jar files run fine on other computers with any of those JRE/SDK's installed.
    Any suggestions would be helpful.

    Command line
    To create a JAR file >jar cvf filename.jar filename.class(s)
    To view the contents of a JAR file >jar tvf filename.jar
    To extract the contents of a JAR file >jar xf filename.jar
    To extract specific files from a JAR file >jar xf filename.jar archived-file(s)
    To run an application packaged as a JAR file
    >jar xvf filename.jar META-INF/MANIFEST.MF
    The above will place META-INF/MANIFEST.MF file in your working directory. Open this file in text editor. Under Version, type in
    Main-Class: filename
    example;
    Manifest-Version: 1.0
    Main-Class: SelectPurchase
    Created-By: 1.3.0 (Sun Microsystems Inc.)
    save file
    update META-INF/MANIFEST.MF file in jar file with;
    jar umf META-INF/MANIFEST.MF filename.jarto run jar file from command line;
    java -jar filename.jarTo run an application packaged as a JAR file
    (version 1.1) jre -cp app.jar MainClass
    (version 1.2 -- requires Main-Class
    manifest header)
    To invoke an applet packaged as a JAR file <applet code=AppletClassName.class
    archive="JarFileName.jar"
    width=width height=height>
    </applet>
    Does anyone know how to get the application to run by clicking on a Desktop Icon?

  • Protect jar file from unzip utility

    Hi
    I have an application in .jar file and I don't want that the client
    can extract or unzip and see the contents of my .jar file.But still the .jar file
    could run by mouse double click or java -jar command.
    Anyone can give me an idea how to do it.
    Thanks...

    If java can read it on your client's machine, the client can read it. There is no way to prevent this. Here's the general cycle:
    int protectionMode = chooseProtectionMode();
    boolean haveCustomers = true;
    while (haveCustomers)
      switch (protectionMode)
        case OBFUSCATE: 
          //You can obfuscate your code to make it (marginally) harder to
          //reverse-engineer.  If your client is really interested in your
          //code, this won't keep them from figuring out what it does.
          break;
        case ENCRYPT:
          // You can encrypt most of your class files, and build a
          // decrypting classloader, and build a framework that calls
          // the decrypting classloader to get at the rest of the jar. 
          // Of course, your client can just arrange to call your
          // classloader from their own, and write the (decrypted)
          // classfiles to disk, and then reverse engineer them.
          protectionMode = OBFUSCATE;
          break;
        case STATECHECK:
          // You can put some kind of check in your decrypting classloader
          // that calls System.exit() if it discovers it's being called in
          // such an unfriendly way.  Your client will take about 10 minutes
          // to find and remove the check.
          protectionMode = ENCRYPT;
          break;
        case REMOTE:
          // You can keep your code on your server and let the client run
          // something that talks to it.  The client will complain
          // vociferously, and refuse to use your app. 
          haveCustomers = false;
          break;
        default:
          // You can decide to stop stressing over something you can't
          // help, and write code that people will buy
      }(Sorry - in an odd mood, seen this question or one like it too often recently, not enough sleep...)

  • UnJar Jar Files

    Hello all,
    Could someone point me to an unjarring tool. I need to take a jar file and unjar it. Not using WinZip though. I'm told that that doesn't always work correctly.
    Thanks.
    Lynn

    Use jar -xvf <source jar> from the command window to extract the Jar file.
    If tou just want to view the content of the jar file use jar -tvf <source jar> from the command.

Maybe you are looking for

  • Installing Windows 7 on MacBook Pro mid-2010 13" with Mavericks?

    Hello, my 13" macbook pro mid-2010 is only capable of running BootCamp 4, but has Mavericks which can only run BootCamp 5. Is there any way to get around this to install Windows 7 through Bootcamp or any ways to downgrade from Mavericks to Mountain L

  • Got itunes installed but...

    when i try to open it i get... "iTunes has encounted a problem and needs to close. We are sorry for the incovenience. If you were in the middle of something, the information you were working on might be lost. Please tell Microsoft about this problem.

  • Solution For Anyone Having Voicemail Issues

    Not long after activating my iPhone 5 with Verizon, my visual voicemail stopped working.  In addition, I was not even receiveing notifications when I had voicemail.  The only way for me to check and/or listen to voicemail was to do it the old fashion

  • Stuck with Headphone Icon on my Nokia E61I

    The headphone icon has appeared on my Nokia E61I phone and I cant get rid of it. It means that I cant speak on my phone unless I put it on loud speaker which is quite frankly embarrassing in public places!!! Please help I have switched off and on the

  • Close purchase order item

    Hi, we have B/1 2004A SP0 PL 42. Is it possibile close an item on purchase order (and only this item) after a partial goods receipt ? We have found only to close entire document in document header. Thank you for attention. Regards.