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
JavaBot
JavaBotโ€ข3w ago
โŒ› This post has been reserved for your question.
Hey @Snowy 1nxfp ๐ŸŽ„โ„! Please use /close or the Close Post button 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Snowy 1nxfp ๐ŸŽ„โ„
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.
ayylmao123xdd
ayylmao123xddโ€ข3w ago
yea it says it cant find that file
Snowy 1nxfp ๐ŸŽ„โ„
yeah but like idk what file it wants (im new to java)
dan1st
dan1stโ€ข3w ago
Does the error happen right when the problem occurs or before? Did you add any Discord RPC code?
Snowy 1nxfp ๐ŸŽ„โ„
it occurs when i click launch Yes i did
dan1st
dan1stโ€ข3w ago
Does it reach executing the code? I assume the problem is the program crashing?
Snowy 1nxfp ๐ŸŽ„โ„
The problem is the program doesnt open
dan1st
dan1stโ€ข3w ago
Can you try debugging that part with a breakpoint?
Snowy 1nxfp ๐ŸŽ„โ„
i have no idea what a breakpoint is -_-
dan1st
dan1stโ€ข3w ago
Does the program crash right after starting?
Snowy 1nxfp ๐ŸŽ„โ„
no it never launches like everything behind the scenes does
JavaBot
JavaBotโ€ข3w ago
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
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
I recommend reading through the dev.java article and the Debugging in Eclipse one
Snowy 1nxfp ๐ŸŽ„โ„
i have debugged tho?
dan1st
dan1stโ€ข3w ago
using breakpoints?
ayylmao123xdd
ayylmao123xddโ€ข3w ago
i mean could it crash cuz it cant find that file
Snowy 1nxfp ๐ŸŽ„โ„
no idea what that is
dan1st
dan1stโ€ข3w ago
That's why I recommend reading the article(s)
dan1st
dan1stโ€ข3w ago
breakpoints are the main tool for debugging
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
then (once you read it) set a breakpoint next to the beginning of the RCP code and run the application in debug mode
Snowy 1nxfp ๐ŸŽ„โ„
? cause im in the middle of coding a splash screen
dan1st
dan1stโ€ข3w ago
The first error seems to be Minecraft-specific.
Snowy 1nxfp ๐ŸŽ„โ„
yes i am aware the others are not errors just info
dan1st
dan1stโ€ข3w ago
Was that error also there before the issue you are having?
Snowy 1nxfp ๐ŸŽ„โ„
no it just popped out of nowhere
dan1st
dan1stโ€ข3w ago
ok In the top toolbar of Eclipse, there is a "Search" menu select Search > Files...
Snowy 1nxfp ๐ŸŽ„โ„
okaty okay*
dan1st
dan1stโ€ข3w ago
and then search for Can't find the resource index file maybe that finds where it happens
Snowy 1nxfp ๐ŸŽ„โ„
aight i will try thatr
dan1st
dan1stโ€ข3w ago
What exactly was the thing you changed before the error occured?
Snowy 1nxfp ๐ŸŽ„โ„
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
Snowy 1nxfp ๐ŸŽ„โ„
i searched
No description
dan1st
dan1stโ€ข3w ago
Do you know which of these files?
Snowy 1nxfp ๐ŸŽ„โ„
sadly no
dan1st
dan1stโ€ข3w ago
No, that's the wrong search
Snowy 1nxfp ๐ŸŽ„โ„
it is? which search u talkin bout?
dan1st
dan1stโ€ข3w ago
in the top bar
No description
Snowy 1nxfp ๐ŸŽ„โ„
oh ok
Snowy 1nxfp ๐ŸŽ„โ„
this
No description
dan1st
dan1stโ€ข3w ago
How did you add DiscordRCP? My current guess is that you added it in the wrong way and now DiscordRCP isn't actually available
Snowy 1nxfp ๐ŸŽ„โ„
no it works the discord rp
dan1st
dan1stโ€ข3w ago
you can enter it in "Containing text" and then press the "Search" button
Snowy 1nxfp ๐ŸŽ„โ„
cause even tho the window doesnt launch it adds it into my RPC
dan1st
dan1stโ€ข3w ago
Even if Eclipse shows the methods etc, it might not actually be available at runtime oh ok then it is available
dan1st
dan1stโ€ข3w ago
So the program starts, the Window doesn't launch and it keeps running?
Snowy 1nxfp ๐ŸŽ„โ„
yes exactly
dan1st
dan1stโ€ข3w ago
ok that's just logs and not that useful
Snowy 1nxfp ๐ŸŽ„โ„
yeah
dan1st
dan1stโ€ข3w ago
Can you show the project structure? Are there any resource/rsc folders?
Snowy 1nxfp ๐ŸŽ„โ„
here
No description
dan1st
dan1stโ€ข3w ago
Can you press Ctrl+Shift+R and enter 1.8.json?
Snowy 1nxfp ๐ŸŽ„โ„
yes
dan1st
dan1stโ€ข3w ago
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?
Snowy 1nxfp ๐ŸŽ„โ„
wait brb gotta eat
dan1st
dan1stโ€ข3w ago
So there's an 1.8.8.json but it looks for an 1.8.json I assume those are Minecraft versions?
ayylmao123xdd
ayylmao123xddโ€ข3w ago
yes
dan1st
dan1stโ€ข3w ago
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?
dan1st
dan1stโ€ข3w ago
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.
dan1st
dan1stโ€ข3w ago
message for when you are finished: Do you have a src/minecraft/Start.java class? If so, check whether there is a Main.main call
Snowy 1nxfp ๐ŸŽ„โ„
im back lemme check
Dexter
Dexterโ€ข3w ago
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
{
public static void main(String[] args)
{
Main.main(concat(new String[] {"--version", "mcp", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.8", "--userProperties", "{}"}, args));
}

public static <T> T[] concat(T[] first, T[] second)
{
T[] result = Arrays.copyOf(first, first.length + second.length);
System.arraycopy(second, 0, result, first.length, second.length);
return result;
}
}
{
public static void main(String[] args)
{
Main.main(concat(new String[] {"--version", "mcp", "--accessToken", "0", "--assetsDir", "assets", "--assetIndex", "1.8", "--userProperties", "{}"}, args));
}

public static <T> T[] concat(T[] first, T[] second)
{
T[] result = Arrays.copyOf(first, first.length + second.length);
System.arraycopy(second, 0, result, first.length, second.length);
return result;
}
}
This message has been formatted automatically. You can disable this using /preferences.
dan1st
dan1stโ€ข3w ago
try changing the "1.8" to "1.8.8"
Snowy 1nxfp ๐ŸŽ„โ„
ok lemme see
dan1st
dan1stโ€ข3w ago
I assume you are trying to change Minecraft 1.8.8, right?
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
[12:23:54] [Client thread/ERROR]: Can't find the resource index file: assets\indexes\1.8.json
looks like it's trying to access something from Minecraft 1.8
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
Can you try decompiling it again (however that works)? But create a backup of the project and workspace before
Snowy 1nxfp ๐ŸŽ„โ„
i could but i dont see how that would help as ive heavily modified MCP and it isnt even the same start.java
dan1st
dan1stโ€ข3w ago
Then I assume some part of these modifications is the problem
dan1st
dan1stโ€ข3w ago
Why?
Snowy 1nxfp ๐ŸŽ„โ„
cause this error was yesterday sorry i ment i added them yesterday
dan1st
dan1stโ€ข3w ago
Did you change anything in src/assets?
Snowy 1nxfp ๐ŸŽ„โ„
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?
dan1st
dan1stโ€ข3w ago
maybe
Snowy 1nxfp ๐ŸŽ„โ„
cause the json is in CakeClient\mcp918\jars\versions\1.8.8
dan1st
dan1stโ€ข3w ago
Actually maybe also in src/minecraft but idk
Snowy 1nxfp ๐ŸŽ„โ„
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*
dan1st
dan1stโ€ข3w ago
Is there a Minecraft class with a constructor?
Snowy 1nxfp ๐ŸŽ„โ„
umm idk i know there is minecraft.java but ive only touched it a little bvit while watching a tutorial
dan1st
dan1stโ€ข3w ago
Can you show it?
Snowy 1nxfp ๐ŸŽ„โ„
yes should i send the whole file or just the first part? or like
dan1st
dan1stโ€ข3w ago
should be fine I'm specifically interested in any constructors at least if you are allowed to share it
Snowy 1nxfp ๐ŸŽ„โ„
yes i am
dan1st
dan1stโ€ข3w ago
idk what the Minecraft EULA allows and doesn't
Snowy 1nxfp ๐ŸŽ„โ„
it is pastebin?
dan1st
dan1stโ€ข3w ago
just upload it here
Snowy 1nxfp ๐ŸŽ„โ„
aight
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
ok idk about that stuff
Snowy 1nxfp ๐ŸŽ„โ„
about the Minecraft.java stuff? or like the splash screen stuff
dan1st
dan1stโ€ข3w ago
I don't know about Minecraft development
Snowy 1nxfp ๐ŸŽ„โ„
oh ok
Defective
Defectiveโ€ข3w ago
Just a note, this depends on which mapping you used
Defective
Defectiveโ€ข3w ago
If you are using official Mojang mappings, you are not allowed to share the decompiled code
Snowy 1nxfp ๐ŸŽ„โ„
used MCP .. not official
Defective
Defectiveโ€ข3w ago
aight
Snowy 1nxfp ๐ŸŽ„โ„
idk what to do
Defective
Defectiveโ€ข3w ago
How are you launching the client?
Snowy 1nxfp ๐ŸŽ„โ„
usually i either have reddit to help me or i just wait and the error magically dissapeares launch and debug tried both nothing works
dan1st
dan1stโ€ข3w ago
Would decompiling it again result in your code being removed/overwritten?
Defective
Defectiveโ€ข3w ago
What run configuration do you use?
Snowy 1nxfp ๐ŸŽ„โ„
yes
dan1st
dan1stโ€ข3w ago
I see
Snowy 1nxfp ๐ŸŽ„โ„
lemme show a screenshot
Snowy 1nxfp ๐ŸŽ„โ„
skrivbord means desktop
Defective
Defectiveโ€ข3w ago
ah, I totally forgot how much of a pain MCP is
dan1st
dan1stโ€ข3w ago
maybe that mcp918/jars directory needs to contain assets/indexes/1.8.8.json?
Defective
Defectiveโ€ข3w ago
Are you new to making custom clients?
Snowy 1nxfp ๐ŸŽ„โ„
yes its my first one im mostly following eric goldeas series idk
Defective
Defectiveโ€ข3w ago
Have you any experience in modding?
Snowy 1nxfp ๐ŸŽ„โ„
Mcreator
Defective
Defectiveโ€ข3w ago
If you are new, I'd recommend doing a custom client as a Forge/Fabric mod rather than playing with MCP
Snowy 1nxfp ๐ŸŽ„โ„
yeah but cant find a tut for that
Snowy 1nxfp ๐ŸŽ„โ„
should i try?
dan1st
dan1stโ€ข3w ago
trying doesn't hurt but I guess Defective knows more about Minecraft development than me lol
Snowy 1nxfp ๐ŸŽ„โ„
lol
Defective
Defectiveโ€ข3w ago
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)
Snowy 1nxfp ๐ŸŽ„โ„
yeah just showed ya
Defective
Defectiveโ€ข3w ago
But you'll probably encounter less issues that way
Snowy 1nxfp ๐ŸŽ„โ„
id rather deal with some errors than not know what im doing imma try
Defective
Defectiveโ€ข3w ago
Yup. What I meant is that you can learn Forge modding with tutorials Especially the official ones
Snowy 1nxfp ๐ŸŽ„โ„
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
Snowy 1nxfp ๐ŸŽ„โ„
its open but at the same time it isnt
No description
dan1st
dan1stโ€ข3w ago
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
Snowy 1nxfp ๐ŸŽ„โ„
i didnt i only added stuff didnt modify things that didnt need to be
dan1st
dan1stโ€ข3w ago
adding stuff is modifying something
Snowy 1nxfp ๐ŸŽ„โ„
weell yea but you know what i mean at least i didnt modify the drawing window logic
dan1st
dan1stโ€ข3w ago
doesn't matter it's still useful for you to know whether it's called/what happens
Snowy 1nxfp ๐ŸŽ„โ„
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
dan1st
dan1stโ€ข3w ago
I mean, it's certainly possible you messed up something with the Eclipse configuration/e.g. the build path
Snowy 1nxfp ๐ŸŽ„โ„
yeah could be imma just continue w my splash screen and get back to this l8er
dan1st
dan1stโ€ข3w ago
but if it starts running and there are no errors, it should be mostly fine except if you accidentially removed some source folders
Snowy 1nxfp ๐ŸŽ„โ„
yeah cause i have no workspace errors didnt dw
JavaBot
JavaBotโ€ข3w ago
๐Ÿ’ค 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.
Snowy 1nxfp ๐ŸŽ„โ„
Hey im back to developing and stil have the issue Can i have some help Anyone???
Madjosz
Madjoszโ€ข2w ago
Could you summarize the problem and the current state again? I don't want to read over 200 messages.
dan1st
dan1stโ€ข2w ago
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.json
They 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
Defective
Defectiveโ€ข2w ago
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...
Snowy 1nxfp ๐ŸŽ„โ„
Im using Eclipse 2019 so it works The error is fixed but it doesnt launch
dan1st
dan1stโ€ข2w ago
oh ok
Snowy 1nxfp ๐ŸŽ„โ„
but i have no idea what to do
dan1st
dan1stโ€ข2w ago
Did you debug the drawing part with breakpoints?
Snowy 1nxfp ๐ŸŽ„โ„
idk how to do that i dont even know where the drawing part IS
dan1st
dan1stโ€ข2w ago
Does it crash before or after the splashscreen? It crashes without any error, right?
Snowy 1nxfp ๐ŸŽ„โ„
it doesnt crash it just never loads
dan1st
dan1stโ€ข2w ago
ah right
Snowy 1nxfp ๐ŸŽ„โ„
like the window never draws
dan1st
dan1stโ€ข2w ago
Is there any code where you register the splashscreen?
Snowy 1nxfp ๐ŸŽ„โ„
you mean my custom splash screen or
dan1st
dan1stโ€ข2w ago
yes
Snowy 1nxfp ๐ŸŽ„โ„
the minecraft one yes my custom welp um wdym with register it like load it?
dan1st
dan1stโ€ข2w ago
yeah
Snowy 1nxfp ๐ŸŽ„โ„
yes but idk how that would be useful
dan1st
dan1stโ€ข2w ago
it would be useful to see what happens when stepping through but make sure to understand the debugging functionality in Eclipse and breakpoints first
Snowy 1nxfp ๐ŸŽ„โ„
Is there anything i can do to learn?
dan1st
dan1stโ€ข2w ago
debugging?
Snowy 1nxfp ๐ŸŽ„โ„
breakpoints
JavaBot
JavaBotโ€ข2w ago
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
dan1st
dan1stโ€ข2w ago
there
dan1st
dan1stโ€ข2w ago
Dev.java: The Destination for Java Developers
Debugging in Java - Dev.java
Learning how to use a debugger
dan1st
dan1stโ€ข2w ago
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.
Madjosz
Madjoszโ€ข2w ago
So the game freezes in the splash screen?
dan1st
dan1stโ€ข2w ago
I thought the splash screen just doesn't appear? idk thoug
Snowy 1nxfp ๐ŸŽ„โ„
no nothing appears like the window doesnt appear the minecraft window
JavaBot
JavaBotโ€ข2w ago
๐Ÿ’ค 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.

Did you find this page helpful?