#about .java .class
1 messages · Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
If you are facing errors while using the "javac" command to compile your Java file, it could be due to various reasons. Here are a few common issues and their possible solutions:
-
Incorrect file path: Make sure you are in the correct directory where your Java file is located. If not, navigate to the correct directory using the "cd" command.
-
Syntax errors in your Java file: Check your Java file for any syntax errors or typos. Fixing these errors should resolve the compilation issues.
-
Missing dependencies or libraries: If your Java file depends on external libraries or packages, make sure they are properly included in your classpath using the "-cp" option with the "javac" command.
-
Version mismatch: Ensure that you have a compatible version of JDK (Java Development Kit) installed on your system. You can check this by running the "java -version" command in your terminal.
-
Classpath configuration: If you have set up a custom classpath, ensure that it is correctly configured and includes all necessary directories and JAR files.
If none of these solutions work, please provide more details about the specific error message you are encountering so that we can assist you further.
Share the errors
Read what it says
Missing ;
On line 91
Also why not using a build tool?
You don’t really use javac manually
Instead have tools like maven/gradle
That will handle a lot of stuff
Also you using an ide like IntelliJ? That would have told you about the missing ;
where are you getting this code
Why not running the code in the ide?
this looks like decompiled code
you cant use - in a variable name since it doesnt know if thats a minus sign or dash in the name
meaning you didn't write it
but yeah this looks like a decompiled forge mod
What are you trying to do?

Not that easy to change decompiled code iirc
explain why you are decompiling and recompiling a mod you don't have the code for, to start
You sure they don’t have an open source GitHub repository or smth
there is source, you don't have it
why
is this it?
first, we can get in trouble for helping you do "hack client" stuff
just as a general thing
so we don't
note that decompiling code is generally not allowed either
unless u have the owners permission to do so
second, when we ask you "why can't you do X" and you respond "no I just want to do Y"
note that decompiling code is generally not allowed either
and we know much more than you about Java and the JVM
thats just kinda silly
if you go this route, its gonna be hell
you can make like, maybe a few changes in a bytecode editor
anything beyond that requires work and expertise
if its not open source, you dont. you request the creator to make the fixes
which is something that you will find for minecraft for sure - thats what Fabric is. they reverse engineered minecraft - but you want to customize a hack client you got from somewhere else
to do that, get the source for it or give up
unless its a very, very small change
there is none
no thats what you want
if we fix that, another file is going to have the same issue
i suggest u read your responses 1st
the problem is that - is not allowed in variable names
that problem is likely in a bunch of files
you need to contact the owner of the mod & ask them to make the changes. stop modifying other people's closed-source code
pretty sure its against the rules here, and this convo shouldnt be dragged on any longer
if its open source, modify that
if you just want to change a number use a bytecode editor, don't decompile and recompile
but yeah, anything beyond that get the source
Closing thread...
