Eclipse IDE not opening Process.
Hey! I'm developing a Minecraft Client! (That isnt that important to my issue) But the issue i have is that after i added discord RPC my game window wont load. It will load the RPC, the JDK processes and all the stuff needed but wont let me load the game, ive tried everything i can and cant get it to work. Would be nice if i could get some help. (i have no errors in my code) And i dont think im using gradle cause i decompiled with MCP and have a start.java and no gradle files
180 Replies
โ This post has been reserved for your question.
Hey @Snowy 1nxfp ๐โ! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
actually i have one error but it only pops up when i launch
'[12:23:54] [Client thread/ERROR]: Can't find the resource index file: assets\indexes\1.8.json
[12:23:54] [Client thread/INFO]: Setting user: Player781
[12:23:54] [Client thread/INFO]: (Session ID is token:0:Player781)
Welcome 1nxfp#0.
yea it says it cant find that file
yeah
but like idk what file it wants
(im new to java)
Does the error happen right when the problem occurs or before?
Did you add any Discord RPC code?
it occurs when i click launch
Yes i did
Does it reach executing the code?
I assume the problem is the program crashing?
The problem is the program doesnt open
Can you try debugging that part with a breakpoint?
i have no idea what a breakpoint is
-_-
Does the program crash right after starting?
no it never launches
like everything behind the scenes does
It looks like you are having issues with debugging or issues that can be solved using a debugger.
Check out this article on dev.java to see how debugging works and how to use a debugger.
This Stack Overflow question and its answers also explain debugging in general.
These links describe how to use the debugger in some IDEs:
โข Debugging in IntelliJ
โข Debugging in Eclipse
but the minecraft window never opens
ive used debugging in eclipse
im using eclipse 2019 btw cause that supports my minecraft version
but this error is when debugging and launching
and nothing pops up in the debug logs
I recommend reading through the dev.java article and the Debugging in Eclipse one
i have debugged tho?
using breakpoints?
i mean could it crash cuz it cant find that file
no idea what that is
That's why I recommend reading the article(s)
ye
breakpoints are the main tool for debugging
but is there a temporary solution for right now
as i think the problem is that it doesnt reach the file
but i have no idea what file
then (once you read it) set a breakpoint next to the beginning of the RCP code and run the application in debug mode
?
cause im in the middle of coding a splash screen
The first error seems to be Minecraft-specific.
yes i am aware
the others are not errors
just info
Was that error also there before the issue you are having?
no
it just popped out of nowhere
ok
In the top toolbar of Eclipse, there is a "Search" menu
select Search > Files...
okaty
okay*
and then search for
Can't find the resource index file
maybe that finds where it happensaight i will try thatr
What exactly was the thing you changed before the error occured?
i added discordRP. idk exactly what i did cause i coded like 3 files
i just know that when i was done this error occured
i searched

Do you know which of these files?
sadly no
No, that's the wrong search
it is?
which search u talkin bout?
in the top bar

oh ok
this

How did you add DiscordRCP?
My current guess is that you added it in the wrong way and now DiscordRCP isn't actually available
no it works the discord rp
you can enter it in "Containing text" and then press the "Search" button
cause even tho the window doesnt launch
it adds it into my RPC
Even if Eclipse shows the methods etc, it might not actually be available at runtime
oh ok then it is available

So the program starts, the Window doesn't launch and it keeps running?
yes
exactly
ok that's just logs and not that useful
yeah
Can you show the project structure? Are there any resource/rsc folders?
here

Can you press Ctrl+Shift+R and enter
1.8.json?yes

Can you expand Client/jars/versions in the package explorer and show a screenshot?
Can you right-click on the project and select Build Path > Configure Build Path and show a screenshot of the "Source" tab?


wait brb gotta eat
So there's an 1.8.8.json but it looks for an 1.8.json
I assume those are Minecraft versions?
yes
It looks like there is some mix between those versions. Maybe you (Snowy) reset/redecompiled Minecraft/ran some script that changed the workspace while Eclipse was still running?
Maybe this is the same issue as https://github.com/ModCoderPack/MCPBot-Issues/issues/343?
GitHub
MCP does not update assetIndex argument value ยท Issue #343 ยท ModC...
MCP version: 9.35 rc1 In the last MCP versions the Start.main(String[]) class always starts Minecraft with 1.8 as assetIndex. This causes multiple error messages because of missing files.
message for when you are finished:
Do you have a
src/minecraft/Start.java class? If so, check whether there is a Main.main callim back
lemme check
heres my start.java
import java.io.File;
import java.lang.reflect.Field;
import java.util.Arrays;
import net.minecraft.client.main.Main;
public class Start
This message has been formatted automatically. You can disable this using
/preferences.try changing the
"1.8" to "1.8.8"ok lemme see
I assume you are trying to change Minecraft 1.8.8, right?
no, the project was 1.8.8 from the start. i assumed the 1.8 ment the java version
but i'll try your tip
[12:23:54] [Client thread/ERROR]: Can't find the resource index file: assets\indexes\1.8.jsonlooks like it's trying to access something from Minecraft 1.8
yes it needs to get that json to launch the version
[13:58:04] [Client thread/ERROR]: Can't find the resource index file: assets\indexes\1.8.8.json
[13:58:04] [Client thread/INFO]: Setting user: Player31
[13:58:04] [Client thread/INFO]: (Session ID is token:0:Player31)
Welcome 1nxfp#0.
same error
Can you try decompiling it again (however that works)? But create a backup of the project and workspace before
i could
but i dont see how that would help as ive heavily modified MCP and it isnt even the same start.java
Then I assume some part of these modifications is the problem
no
Why?
cause this error was yesterday
sorry
i ment
i added them yesterday
Did you change anything in src/assets?
this error was today
the mod changed basically everything but not that no
WAIT
i think i know the issue
its looking in src/assets?
maybe
cause the json is in CakeClient\mcp918\jars\versions\1.8.8
Actually maybe also in src/minecraft but idk
src minecraft doesnt have that either
idk what i should do
im guessing its looking in the wrong place but i have no idea what part of the minecraft code tells it to look their
there*
Is there a
Minecraft class with a constructor?umm idk
i know there is minecraft.java
but ive only touched it a little bvit while watching a tutorial
Can you show it?
yes
should i send the whole file
or just the first part?
or like
should be fine
I'm specifically interested in any constructors
at least if you are allowed to share it
yes i am
idk what the Minecraft EULA allows and doesn't
it is
pastebin?
just upload it here
aight
this is the root of minecraft which ive not made, ive modified a little for the RPC but most of the code is not mine
most of the code is official
I'm afraid it doesnt show the whole file as it says 84kb left
Can i continue coding my Splash Screen while i wait? @dan1st | Daniel
ok idk about that stuff
about the Minecraft.java stuff?
or like the splash screen stuff
I don't know about Minecraft development
oh ok
Just a note, this depends on which mapping you used
?
If you are using official Mojang mappings, you are not allowed to share the decompiled code
used MCP
..
not official
aight
idk what to do
How are you launching the client?
usually i either have reddit to help me or i just wait and the error magically dissapeares
launch and debug
tried both
nothing works
Would decompiling it again result in your code being removed/overwritten?
What run configuration do you use?
yes
I see
lemme show a screenshot

skrivbord means desktop
ah, I totally forgot how much of a pain MCP is
maybe that
mcp918/jars directory needs to contain assets/indexes/1.8.8.json?Are you new to making custom clients?
yes
its my first one
im mostly following eric goldeas series
idk
Have you any experience in modding?
Mcreator
If you are new, I'd recommend doing a custom client as a Forge/Fabric mod rather than playing with MCP
yeah but cant find a tut for that
should i try?
trying doesn't hurt but I guess Defective knows more about Minecraft development than me lol
lol
Yeah, you'll need to learn Forge modding step-by-step. I don't think there are ready tutorials for custom clients on Forge (although there might be if you look hard enough)
yeah
just showed ya
But you'll probably encounter less issues that way
id rather deal with some errors than not know what im doing
imma try
Yup. What I meant is that you can learn Forge modding with tutorials
Especially the official ones
yeah, i'll try this tho first
i think the error is gone
but it doesnt launch
this is what i have now OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[14:19:23] [Client thread/INFO]: Setting user: Player421
[14:19:23] [Client thread/INFO]: (Session ID is token:0:Player421)
Welcome 1nxfp#0.
but no window
but this is progress
its open but at the same time it isnt

Can you try setting a breakpoint and stepping through at the beginning of your logic for doing anything with the window?
like initially drawing it or whatever
idk whether you modified something there
i didnt
i only added stuff
didnt modify things that didnt need to be
adding stuff is modifying something
weell yea
but you know what i mean
at least i didnt modify the drawing window logic
doesn't matter
it's still useful for you to know whether it's called/what happens
yeah
but idk
i have no idea what the problem is and i think its more a eclipse issue that fixes itself
like the time i had 1 thousand errors
went to go eat
and everything was gone
all the errors
I mean, it's certainly possible you messed up something with the Eclipse configuration/e.g. the build path
yeah
could be
imma just continue w my splash screen and get back to this l8er
but if it starts running and there are no errors, it should be mostly fine
except if you accidentially removed some source folders
yeah cause i have no workspace errors
didnt dw
๐ค Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.Hey im back to developing and stil have the issue
Can i have some help
Anyone???
Could you summarize the problem and the current state again? I don't want to read over 200 messages.
They are writing some Minecraft client thing with MCP(?) 1.8.8 and it crashes with
[Client thread/ERROR]: Can't find the resource index file: assets\indexes\1.8.jsonThey made a lot of changes and don't know where it comes from (possibly Discord RCP) I don't know where or what that file is supposed to be since I have no idea about Minecraft development
Now that I look at this, I'm surprised that Discord RPC worked in the original video in the first place
The videos are very outdated, and the author uses a deprecated Discord library that depends on native libraries
From my experience, embedding natives in Minecraft modfications doesn't work very well...
Im using
Eclipse 2019 so it works
The error is fixed but it doesnt launch
oh ok
but i have no idea what to do
Did you debug the drawing part with breakpoints?
idk how to do that
i dont even know where the drawing part IS
Does it crash before or after the splashscreen?
It crashes without any error, right?
it doesnt crash
it just never loads
ah right
like the window never draws
Is there any code where you register the splashscreen?
you mean my custom splash screen
or
yes
the minecraft one
yes my custom
welp um
wdym with register it
like load it?
yeah
yes
but
idk how that would be useful
it would be useful to see what happens when stepping through
but make sure to understand the debugging functionality in Eclipse and breakpoints first
Is there anything i can do to learn?
debugging?
breakpoints
It looks like you are having issues with debugging or issues that can be solved using a debugger.
Check out this article on dev.java to see how debugging works and how to use a debugger.
This Stack Overflow question and its answers also explain debugging in general.
These links describe how to use the debugger in some IDEs:
โข Debugging in IntelliJ
โข Debugging in Eclipse
there
specifically https://dev.java/learn/debugging/
Dev.java: The Destination for Java Developers
Debugging in Java - Dev.java
Learning how to use a debugger
Debugging the Eclipse IDE for Java Developers | The Eclipse Foundation
There are many debugging improvements included in the latest Eclipse Java Development Tools (JDT) release. Get even better at debugging thanks to this article.
k
So the game freezes in the splash screen?
I thought the splash screen just doesn't appear? idk thoug
no
nothing appears
like the
window doesnt appear
the minecraft
window
๐ค Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.