#Minecraft java programming in Eclipse

1 messages · Page 1 of 1 (latest)

coarse cobalt
#

Any idea how to fix this error?

stuck pilotBOT
#

This post has been reserved for your question.

Hey @coarse cobalt! 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 closed 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.

stark violet
coarse cobalt
#

well and how could i fix it

stark violet
#

right-click the project, select build path>configure build path

coarse cobalt
#

alright one second

stark violet
coarse cobalt
#

done

stark violet
#

In the Libraries tab, select JRE System library and click Edit...

coarse cobalt
#

done

stark violet
#

There, click on Installed JREs

coarse cobalt
#

alright

stark violet
#

What's shown in the window thatshould appear?

coarse cobalt
stark violet
#

Do you have Java installed on your computer?

coarse cobalt
#

yeah

#

i went onto my cmd and did java --version

#

it showed the java version i have installed

stark violet
#

and select the installation directory of your Java installation

coarse cobalt
#

alright

#

okay one second

#

it opens up this window

stark violet
#

yes, Standard VM

coarse cobalt
#

alright

#

do i click on add external jars

stark violet
#

no

#

What's shown when selecting Standard VM and clicking on Next?

#

Do you get something like that?

coarse cobalt
#

yes

stark violet
#

If so, click on the Directory... button next to JRE home and select your Java installation directory

coarse cobalt
#

alright

#

okay so here's the problem

#

its supposed to be in this pc > program files

#

right?

stark violet
#

probably

stark violet
# coarse cobalt

Alternatively, you could also click the Search... button on the right here, select your program files directory and let Eclipse search through all subdirectories

coarse cobalt
#

alright

#

uh

#

a bit of a problem

#

oddly enough, i cant seem to find anything through here

stark violet
#

What's the output of where java in cmd?

#

and javac -version

coarse cobalt
#

so i just use that

#

im here

#

hello?

#

@stark violet sorry for the ping

#

uh dan1st

stark violet
# coarse cobalt

ok, try selecting C:\Program Files\Eclipse Adoptium\jdl-21.0.1.9-hotspot

#

in Eclipse

coarse cobalt
#

alright

stark violet
coarse cobalt
stark violet
coarse cobalt
#

alright

#

that seems to have worked

stark violet
#

ok, click Finish

coarse cobalt
#

done

#

apply and close?

stark violet
stark violet
coarse cobalt
stark violet
#

What's shown whaen doing that?

coarse cobalt
#

just that

#

hold on

stark violet
#

the first one should be selected

coarse cobalt
#

the jdk?

stark violet
#

yes

coarse cobalt
#

okay done

#

apply and close?

stark violet
#

yes

#

In general, a JDK can do more than a JRE

#

In fact, every JDK contains a JRE

coarse cobalt
#

well thats nice to know

#

im waiting for the project to finish building

#

thank you so much

stuck pilotBOT
# coarse cobalt thank you so much

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

coarse cobalt
#

i dont have the error

#

i'll just run and tell you

#

tysm

#

you are actually amazing

#

really helpful

#

it worked

#

i have had this error for like uhhh

#

2 months

#

or so

#

and decided to work on it today since im almost done with GCSE

#

i have reached out to a bunch of people in the past few hours

#

you were the only one to help me

#

instead of saying "you should have used intellij, use gradle, use maven"

stark violet
#

lol

coarse cobalt
#

i'll be closing this

#

tysm