# Unusual method appeared when decompiling JAR file into java project

**URL:** <https://forums.unrealengine.com/t/unusual-method-appeared-when-decompiling-jar-file-into-java-project/1191479>\
**Category:** C++\
**Tags:** javascript, unreal-engine, question\
**Created:** [June 7, 2023, 7:02am UTC](https://forums.unrealengine.com/t/unusual-method-appeared-when-decompiling-jar-file-into-java-project/1191479 "2023-06-07T07:02:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintuk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chintuk1](https://forums.unrealengine.com/u/chintuk1)\
**Post date:** [June 7, 2023, 7:02am UTC](https://forums.unrealengine.com/t/unusual-method-appeared-when-decompiling-jar-file-into-java-project/1191479/1 "2023-06-07T07:02:37Z")

</div>

When attempting to decompile a JAR file into a Java project using the Java Decompiler JD-GUI, I encountered an issue with the decompiled methods. Here is an example:

```auto
public Node getNode() {
    Node res = null;
    try {
      Exception exception2, exception1 = null;
    } catch (Exception e) {
      e.printStackTrace();
    } 
    return res;
}

```

**I’m seeking assistance in two aspects:**

1. How can I resolve the apparent issue with the Exception exception2, exception1 = null; try/catch block, as the original method should contain different code?
2. Are there alternative methods available that are more efficient for decompiling JAR files into Java projects and executing them?

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [June 7, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/unusual-method-appeared-when-decompiling-jar-file-into-java-project/1191479/2 "2023-06-07T21:06:31Z")

</div>

Hi there @chintuk1,

Welcome to the Unreal Engine Forums 🙂

This topic has been moved from **Community: Off-Topic** to **Programming & Scripting: C++**.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing!
