Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I compile a single java file into a class file? (I'm not a programmer)
    primarykey
    data
    text
    <p>Okay so basically I have these two Minecraft mods that both modify the bfj.class file and so I decompiled the files using an online decompiler here: <a href="http://java.decompiler.free.fr/?q=preview" rel="nofollow">http://java.decompiler.free.fr/?q=preview</a> I then copied the code from one file and put it at the end of the other file and saved it as a .java file. Now I do not know if this will work or if I need to reprogram the files (I don't know how to program) but what I would like to try is recompiling the one java file into one file. I do not have any other files except the two compiled files which I decompiled and merged and the merged .java file... How do I convert the java file into a class file with missing files??? For example when I try to compile I get these errors: </p> <pre><code>C:\Users\*******\Desktop\New folder&gt;javac bfj.java bfj.java:3917: error: class, interface, or enum expected import cpw.mods.fml.relauncher.Side; ^ bfj.java:3918: error: class, interface, or enum expected import cpw.mods.fml.relauncher.SideOnly; ^ bfj.java:3919: error: class, interface, or enum expected import java.io.FileInputStream; ^ bfj.java:3920: error: class, interface, or enum expected import java.io.FileNotFoundException; ^ bfj.java:3921: error: class, interface, or enum expected import java.io.IOException; ^ bfj.java:3922: error: class, interface, or enum expected import java.net.MalformedURLException; ^ bfj.java:3923: error: class, interface, or enum expected import java.net.URL; ^ bfj.java:3924: error: class, interface, or enum expected import java.util.Properties; ^ bfj.java:3925: error: class, interface, or enum expected import java.util.Random; ^ bfj.java:3926: error: class, interface, or enum expected import net.minecraft.client.Minecraft; ^ bfj.java:3927: error: class, interface, or enum expected import net.minecraftforge.common.MinecraftForge; ^ bfj.java:3928: error: class, interface, or enum expected import net.minecraftforge.event.EventBus; ^ bfj.java:3929: error: class, interface, or enum expected import net.minecraftforge.event.entity.PlaySoundAtEntityEvent; </code></pre> <p>Any ideas on what I need to do and/or if this will work if we can get it to compile?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload