• 0

How do i edit a .class file and add it back into a .jar?


Question

Hey all,

I have a program in java that was made a while ago for me but my coder has gone awol. i need to be able to change a line in one of the .class files which is located within the .jar then i need to add it back into the .jar in order to run the program successfully.

I can extract the files using winrar and then edit the class file in notepad but a lot of the text is garbled. I have then tried creating an archive with the extension .jar instead of .rar but it wont work like that.

Does anybody know the best way to do this?

Thanks in advance

10 answers to this question

Recommended Posts

  • 0

hmm i have no idea whatsoever what i am doing with this program :s is there an easier program that will do it?

  divinatum said:
Jar files are zip files, rename to zip, extract, modify class, zip up, rename to .jar, should be good to go.

Hi and thanks for your reply. what should i edit the class with?

  • 0

Thanks monkey i was able to edit the class file with that program but now i am having troubles creating the .jar.

I am using winrar to create the archive and simply giving the extension of .jar but when i try to run it with cmd i get corrupt archive message

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • YouTube comments are not displaying correctly for some users by Aditya Tiwari Image by ElisaRiva via Pixabay YouTube comments have long been used to express opinions, ask questions, provide feedback, share insights, or simply react to the video you're watching. However, this can sometimes go south, and unexpected bugs can ruin the experience. The Google-owned video sharing platform reached out to its community support forum to announce that YouTube comments are not displaying correctly for some users. YouTube has listed various ways the known issue can appear on your screen. For instance, comments are only visible when the "Newest First" filter is chosen; they might disappear or hide when "Top Comments" is selected, or they may not display at all. Some users may not be able to sort comments by "Top Comments," or their comments may disappear after being posted. "We're aware that some of you are experiencing an issue where comments aren't showing up beneath certain videos, and we're looking into it now," YouTube said, adding that it will follow up on the issue with an update. However, it didn't mention the regions where the problem is most prominent or specify the platforms (Android, iOS, or desktop) that are affected. This comes about a week after YouTube ran into a different problem: the bottom navigation bar on its Android app wasn't displaying for users in different countries. YouTube has now marked that issue as fixed. In recent updates, the video streaming giant took down a video that taught people how to self-host their media, citing policy violations. Its latest update for iOS brings bad news for people running old iPhones; several of them are now incompatible with the YouTube app. While YouTube has introduced features like Google Lens for Shorts, voting for playlists, and trending podcasts charts, it plans to insert more ads into its cheaper premium tier later this month.
    • I think it was even showed off during presentation it looked like a windows taskbar and windows icon during part. It also had the task view button looking at it. 1:07 during the "ROG Xbox Ally World Premier Reveal Trailer | Xbox Games showcase" - https://youtu.be/FIVmyOIV1MQ?t=64 Other than the lack of clock it looked like some custom explorer implementation. The appeal would extend well beyond students. While the handheld might suit that crowd, a pre-configured "Xbox Gaming PC" line could be the perfect answer for players overwhelmed by GPU choices or by which pre-built to buy when they don’t want to build from scratch. It would provide a hassle-free and upgrade-friendly platform. Imagine "Xbox PC 1" today, then "Xbox PC 3" a few years later. If other vendors follow suit (and they probably will), a standardized performance score, similar to the old Windows Experience Index, could make comparing systems straightforward also. (i think that's the way they will go, some sort of index with listed certified systems you can check game performance in. Say they have a score of 5, you know games that have a 5 or above will run fine.) EDIT: We also know it can run windows software, people have used steam on it and installed other games. So it must be able to run Windows executables already. If it does not ship with Windows Explorer it can be made to work for it.
    • Yes! I have long thought the xbox should have a desktop mode. Even if it isn't a full Windows system, just a browser, file manager, photo/video viewer, and office apps would be all most people need. I imagine such a device would be very popular among students who both want a console and need a computer.
    • That being true does not excuse the mainstream product's level of inefficiency.
  • Recent Achievements

    • Enthusiast
      the420kid went up a rank
      Enthusiast
    • Conversation Starter
      NeoToad777 earned a badge
      Conversation Starter
    • Week One Done
      VicByrd earned a badge
      Week One Done
    • Reacting Well
      NeoToad777 earned a badge
      Reacting Well
    • Reacting Well
      eric79XXL earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      472
    2. 2
      +FloatingFatMan
      278
    3. 3
      ATLien_0
      246
    4. 4
      snowy owl
      205
    5. 5
      Edouard
      190
  • Tell a friend

    Love Neowin? Tell a friend!