How to modify a class in .jar and compile it back

Hi,
I have questions reg .jar, I need to test my application and I need to modify certain files in that .jar and compile it back. How do I do that? I have extract all the classes and decompile it to .java, and I just want to edit just 1 file, but I always have problems compiling it. Am i doing it the wrong way?Please help...
Thanks.

Did you make a jar and now need to make changes? Help me to understand why you decomplied the class files? Can you not just make a new jar?

Similar Messages

  • Java classes in Jar and Cab files

    Hello all,
    Our product supply java classes in Jar and Cab files that the browser downloads each time.
    The files are big and it takes a long time.
    Do you know of a way to make the cab/jar files be copied in to the user computer and that the browser would know to download files again only if there is a new version (otherwise take it from the local computer)
    Please help me
    Tamg

    I think I've seen an option for this with manifest files (or was it something that had to do with the java plug-in). There was something about the version and only download a new version if it was newer than the one on your local computer. This version thing is something you define in the manifest file at least. Take a look at jar and manifest files, there might be something there.

  • I changed my apple ID and lost everything. How do I get all my apps and purchased items back?

    I changed my apple ID and lost everything. How do I get all my apps and purchased items back?

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple ID to another. Apple does not merge Apple IDs. You will never be able to access your content bought with one Apple ID with a new Apple ID.

  • Mac OS 10.4.11, Firefox 3.6.25. My home page has changed from Google Search to Bing Search, how do i get rid of bing and get Google back?

    Mac OS 10.4.11, Firefox 3.6.25. My home page has changed from Google Search to Bing Search, how do i get rid of bing and get Google back?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.com/kb/Preferences+are+not+saved

  • HT4528 How to I switHch from German iTunes and App Store back to US?

    How to I switHch from German iTunes and App Store back to US?

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • How do I Retrieve imovie projects from and external drive back into my mac internal drive

    How do I Retrieve imovie projects from and external drive back into my mac internal drive?
    Thank You

    Every working drive, Internal or External, should produce an Icon on your Desktop. If you cannot see those, click on the Desktop (to get Finder) and choose Preferences off the Finder Menu. The general pane has checkboxes for "Show these items on the Desktop:"
    Double click the Icon for your External Drive to open it. Open the folders on it until you find the Items you want to copy. Drag them to the Icon of your Internal Drive, or open the folder where you want them to land and drop them in there.
    A drive that does not appear on the desktop after you have asked it to may be damaged. But it would be smart to do a Restart to see if it is recognized again at next Startup.

  • How to modify files in the jar pack

    Is there any way to allow the classes to read and write the files or directories which are inside the same jar file?
    Thanks

    I think you can consider the jar file as a zip file and modify the content of it using
    java.util.zip package:
    http://www.java-tips.org/java-se-tips/java.util.zip/

  • How to modify java classes in tomcat

    Hi friends,
    I have jsp which calls some java classes,i want to modify code in one of the java class .Please tell me what are the steps required.
    Thanks
    Naresh

    Classes involved in web-apps are compiled from a source tree outside of Tomcat. The class files are then installed in either WEB-INF/classes or inside a jar in WEB-INF/lib.
    The source code is quite separate from the Tomcat server, and you're going to have to track it down. Normally the source for a web-app (including fixed pages and JSPs) is compiled and wrapped up in a "war" file (a kind of jar) and distributed to the web server like that.
    There may well be an ant script for the job.

  • Any 1 know how to convert a class to jar??

    How to convert a class file to jar executable file??

    Here's a jar tutorial.
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • How to install the struts-el jar and tld file

    How can i install/configure the struts-el jar and struts-logic-el.tld. When I tried with the related sites, i couldn't get any jar files for struts-el tag.
    I got only 404 status error.
    From where and how to get the jar file and tld file for the struts-el tag .Please refer me

    The jar file is part of the download of struts.
    its in the /contrib/lib directory
    You should need struts, jstl plus the struts-el jar files.
    The tld files should not be necessary - just use the standard URIs for them.
    eg http://struts.apache.org/tags-logic-el

  • How do I recover a "complete" folder and place it back onto the desktop screen.

    This has to be a common problem experienced by all Mac desktop users.  I placed
    an entire blue "file folder" (the common blue folders with tab) into the "trash" and
    cannot take it out or delete it.  I did it by accident because I wanted to "delete" a small
    file, within the "entire blue folder".  Apparently I put the "whole folder" in the "trash" instead
    and now cannot take it out.
    I have an exact copy on my desktop already, but I don't want to delete this folder that I
    placed in the "trash".  For now, I just want to recover it and put it back onto the desktop.
    I don't mind having two copies for now.
    To be extra clear, this is the usual blue "file folder" that contains "favorites", "shared", and "devices".
    Within these are "all my files", "desktop", "your personal files", "applications", etc., etc.
    Within these are "photos", "albums", "pictures", "video", and miscellaneous subsets of files.
    This "entire" folder containing all these items are now in the trash.
    I need to know a simple "step by step" process or instructions on how to take all this
    out of the trash and to put it back on the desktop where I can see it on my computer screen
    as a blue "file folder".
    I'm not very computer knowledgeable except to use the internet and knowing how to use
    data entry software.
    So it would be important to explain to me "step by step".  Any small detail left out and I might mess up.
    I know there must be a simple way of doing this.  All I see now is a pile of papers in the "trash" bin and
    no way to get out my "file folder"
    I appreciate all your help.
    Thank you very much.

    You cannot take a folder out of the Trash to your Desktop without erasing the one on the Desktop. You need to first change the name of the folder on the Desktop. Or you can open the folder that's in the Trash and drag the files onto the Desktop assuming there aren't too many of them.
    But if you have a duplicate on the Desktop why do you need to remove the one that's in the Trash?
    If you feel you must take the folder out of the Trash, then you need to rename the duplicate that's on your Desktop.
    If you wish to put the folder back where it was when you deleted it, then open the Trash window, select the folder, then CTRL- or RIGHT-click and select "Put Back" from the context menu.

  • How can I get my audio input and output devices back? I have no sound and cannot see any of the devices in Audio MIDI Setup..??

    Hi, I tried to set up a new output audio device on my mac that would have multiple outputs (iBox Twist speaker and my internal speaker) but when I went to click onto one of the iBox Twist (there were 2 options available: iBox Twist and iBox Twist Stereo), Audio MIDI Setup crashed and when I finally got that back open, I found that there were no audio input or output devices to be found. My sound is working, as when I turn on my iMac, the starting sound still plays, however the volume control in the menu bar is no longer a black colour, but grey and when I try to change the sound on my keyboard it does not change. This already happened to me once, and after 3 hours I managed to fix it very simply (switching off Mac, unplugging power cord, leaving for 15 seconds, plug power cord back in and switch Mac back on, holding Alt, Cmd, P and R keys until you hear the Starting Up sound twice) however this same technique that fixed it once before is not working this time and I am still stuck without sound. I have tried Repair Permissions, rebooting in Safe Mode, Hardware Test and checking for Software Updates. Has anyone else had this problem and managed to fix it?
    Thanks in advance for any help anyone can give me!

    In case anyone has had the same problem as me, I have just managed to fix this by doing the following:
    Switch off Mac
    Switch back on in Safe Mode (Hit power button, then hold Shift key until a loading bar appears at the bottom of the screen).
    Switch off Mac again
    Remove power cord and wait 15 seconds
    Plug power cord back in and hold down the keys alt, cmd, p, r all at the same time until you hear Starting chime for a second time and hopefully your audio will back.

  • Re: How do you specify an external jar and library when executing from a ja

    When you specify java -jar the -classpath argument is ignored and the jar's manifest file is used - see http://java.sun.com/docs/books/tutorial/deployment/jar/ .

    OK you know I read that somewhere and then totally forgot about it.
    I know this isn't the place to ask but I've had limited success with asking eclipse questions on their forums.
    Does anyone know how to export a jar file with the correct manifest from eclipse? My application works fine in eclipse but doesn't export a usable jar. To fix this I have to unjar the file, add the manifest text and rejar it.
    Thanks,
    Jim.

  • How to Create a Class, do something, and return the name of the child class

    Hello Java Experts,
    I am relatively new to using java. Particularly when it comes to creating something on my own (ie without some of the good samples sun and o'reilly provide!).
    Here is what I am trying to learn how to do:
    I want a class, I am calling in Message. The Message
    class with have various message types. I know what I want to call these message types: one example is what I will call a "ZeroSpace" ("0 143321 4 070302") message, another type is BracketHex, and yet another is BracketNN ("[99]").
    I will test a string (which will be a message received via a serial port, java serial, etc). Then after testing the string (like "0 143321 4 070302"). I will look for the "0" and the space (chr(32)) and want to return ZeroSpace as the message type. Not a string "ZeroSpace". Something like an enumeration in C or Delphi Pascal (ordinal list??)
    the hierarchy is like this: class Message msg;
    msg zsp = new ZeroSpace();
    msg bhex = new BracketHex();
    etc. Depending on the message type I what to do different processing - something like class Shape, and Circle, Square, etc are shapes, but their areas are different, etc
    any tips will help!
    Thank you
    eric w. holzapfel

    one way is to make Message an abstract class, make it a factory, eg with public static Message Create( String str ) method. have it check the string in determining the subclass to instantiate and return. eg if begins with "0 ..", then return new ZeroSpace( str ), where ZeroSpace extends Message. similar for BracketHex and BracketNN.

  • How will be the weblogic-ejb-jar and ejb-jar xml for EJB Local Interface?

    Hi,
    I have one ear application which is using Stateless Session Beans. I don't have any Bean to Bean communication . At present, the client is invoking remote methods thro Home/Remote interfaces. My doubt is , shall I implement EJBLocal home/ local interface to obtain this same functionality cos, in this app, both client and EJb bean have been deployed in same JVM. Can Local interfaces only be applicable to Bean - Bean relation ship?If LocalHome/Local interfaces can be implemented in my scenario, then may I know how will be the ejb-jar.xml and weblogic-ejb-jar.xml?
    thanks and regards,
    Venkat.

    Local interfaces are for communication between ejbs and their clients when both are in the same JVM. The clients can be normal clients, jsps, servlets, and other ejbs. If the client is not in the same JVM you cannot use local interfaces even though your client is another ejb.
    Advantage of using local interface is it reduces the network overhead.
    For more information you can download Mastering Enterprise Java Beans Third Edition by Ed Roman. You can go through 45
    You can download pdf version from.
    http://www.theserverside.com/books/wiley/masteringEJB/index.tss.
    Let me know the URL of the ejb doc that you referred.
    Thanks..

Maybe you are looking for