#about .java .class

1 messages · Page 1 of 1 (latest)

craggy steppeBOT
#

<@&987246652869971988> please have a look, thanks.

#

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:

  1. 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.

  2. Syntax errors in your Java file: Check your Java file for any syntax errors or typos. Fixing these errors should resolve the compilation issues.

  3. 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.

  4. 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.

  5. 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.

final pond
#

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 ;

obtuse dove
#

where are you getting this code

final pond
#

Why not running the code in the ide?

obtuse dove
#

this looks like decompiled code

valid python
#

you cant use - in a variable name since it doesnt know if thats a minus sign or dash in the name

obtuse dove
#

meaning you didn't write it

valid python
#

but yeah this looks like a decompiled forge mod

final pond
#

What are you trying to do?

final pond
#

Not that easy to change decompiled code iirc

obtuse dove
#

explain why you are decompiling and recompiling a mod you don't have the code for, to start

final pond
#

You sure they don’t have an open source GitHub repository or smth

obtuse dove
#

there is source, you don't have it

#

why

#

is this it?

final pond
#

„Hacked client“ 💀

obtuse dove
#

first, we can get in trouble for helping you do "hack client" stuff

#

just as a general thing

#

so we don't

fossil abyss
#

note that decompiling code is generally not allowed either

#

unless u have the owners permission to do so

obtuse dove
#

second, when we ask you "why can't you do X" and you respond "no I just want to do Y"

fossil abyss
#

note that decompiling code is generally not allowed either

obtuse dove
#

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

neat mulch
#

if its not open source, you dont. you request the creator to make the fixes

obtuse dove
#

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

sick axle
#

i suggest u read your responses 1st

obtuse dove
#

the problem is that - is not allowed in variable names

#

that problem is likely in a bunch of files

neat mulch
#

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

obtuse dove
#

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

craggy steppeBOT
#
OP left

Closing thread...