#could not create the java virtual machine error

119 messages · Page 1 of 1 (latest)

digital vector
#

so ive been trying to play modded minecraft,and i needed java 8 for the modpack i was thinking of,however...well,it got fucked and now no matter what i do,with any use java doesnt work,it may be a segmentation error,or so i think

waxen pagodaBOT
#

This post has been reserved for your question.

Hey @digital vector! Please use /close or the Close Post button above when you're finished. 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.

broken steppe
#

uh, do you even know what segmentation error means lol

#

anyways, what exactly are you doing that generates the error?

digital vector
#

literally just opening any java application

#

lemme check tho

#

when i try to download java or use java for anything,this error pops up

broken steppe
#

ah

digital vector
#

i tried downloading a bunch of versions of java before because i am...not the best at computers and kept getting it wrong

broken steppe
#

this issue has come up before but the channels are gone and i don't really know about it myself, but from what i remember;
try opening cmd.exe and check java -version

digital vector
#

it doesnt recognize java as a command

broken steppe
#

ok so that means you haven't installed it

#

or at least not properly

#

make sure to check the box about PATH when you install

digital vector
#

it just pops that error i posted before and gets stuck

broken steppe
#

when you try to open the installer/wizard?

digital vector
#

Yes

#

any piece of tech i touch gets cursed i swear to god

broken steppe
#

that happens to all of us, try leveling your anti-curse charms

#

i don't remember where to go from here, sorry

digital vector
#

ah well...if you can find anyone who can help,if appreciate it a lot

digital vector
#

but it threw me the same error i posted before like 9 times

#

and when i try to use it to open anything ,like a minsweeper app i downloaded for testing,it just throws the same error,again

digital vector
#

nope

#

opening CMD and typing that command results in uh,java not being recognized as a command

broken steppe
#

oof

digital vector
#

y-yeah

#

shits fucked

weak geyser
#

Hi, do you know you don't need to install Java using the installation wizard at all. For example I let IntelliJ to download different versions of Java and than can easily switch between them.

What I'm trying to say is that it's enough to just download Java binaries, place it to some nice place and than you have to only make sure to update JAVA_HOME and PATH system variables.

digital vector
#

i tried things like adoptium and it uh,didnt work either

weak geyser
#

And you updated PATH variable?

digital vector
#

i believe so

#

yes

#

still same problem

weak geyser
#

Can you post here the content you put into that variable?

#

I'm doing this all the time and it just works

digital vector
#

i dont think i fully understand,but first lemme check one thing

#

it just refuses to open at all

#

even the configuration file

#

ok i think i found the issue

weak geyser
digital vector
#

java itself

#

cursed situation

weak geyser
#

How do you open Java?

digital vector
#

nvm that wasnt it

weak geyser
#

Okay

digital vector
#

just opening any file with java brings the same issue

weak geyser
#

You can open any Java file with text editor. That should work

digital vector
#

but i cannot run anything that requires java

weak geyser
#

and if you run "java -version" what do you get?

digital vector
#

literally says java is not a command

weak geyser
#

Because you did not set updated path to Java on PATH system variable!!!

digital vector
#

bruh i cant open configure java what can i do

#

really i dunno how to do that

#

please,tell me how

weak geyser
#

This is for JAVA_HOME variable. Next to it there will be a Path variable where you add absolute path to bin directory in Java

digital vector
#

ok

weak geyser
#

Check the version in cmd

digital vector
#

C:\Windows\System32>java -version
Error: could not open `C:\Program Files (x86)\Java\jre1.8.0_351\lib\i386\jvm.cfg'

#

well this is progress atleast

weak geyser
#

Show me content of the variables you updated

#

You definitely used wrong path

digital vector
#

100% probably

#

i just put it into the download folder for now

weak geyser
#

I need the system variables content

digital vector
#

aye aye

weak geyser
#

Ok and next to this variable is also Path variable

#

Have you updated it too?

digital vector
#

wdym ¨next to?¨ i dont understand

weak geyser
#

In the parent window, there is a lot of other variables

digital vector
#

you mean on the link you posted earlier? sorry im rather slow

weak geyser
#

The window where are listed all the system variables. There you have the JAVA_HOME variable

digital vector
#

OK i think i found it

#

its thi?

weak geyser
#

Yes, this one

digital vector
#

what do i do with all this?

weak geyser
#

Amazing

#

Change the first entry

#

By the variable u used in JAVA_HOME

#

Oh and remove rest of the Java entries

#

To not confuse the system

digital vector
#

ok done

#

now?

#

i still cant seem to run games

#

(like i did not have java at all)

weak geyser
#

version in cmd still say that it is unknown command?

digital vector
#

no

#

wait

#

C:\Windows\System32>java -version
Error: could not open `C:\Program Files (x86)\Java\jre1.8.0_351\lib\i386\jvm.cfg'

#

could not open it

#

so yes

#

my computer is 64 bits tho

broken steppe
#

that's a different error so no

#

it's reading java just fine but it's not reading the stuff inside java

digital vector
#

oh yeah mis read that

waxen pagodaBOT
#

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

digital vector
broken steppe
#

no clue, JAVA_HOME broken probably

it's 4 am please let me sleep chima_ded

digital vector
#

sorry

#

just woke up myself

#

as of right now,i have nothing inside the folder java (in uh,both program archives),but i changed the path and home to a java binary i downloaded,no idea how to continue though

waxen pagodaBOT
#

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

digital vector
#

bumping it now (better hour i hope) because i think im close to finishing it but i still cant use it

weak geyser
#

Hello again 🙂 So what is the current state?

digital vector
#

sorry for not asnwering

#

but pretty much,i did what you told me to

#

and nothing more,because i was scared of breaking it again

#

it recognizes java as a command now atleast,but cant read the version number

#

however im going to sleep right now,so i wont be avaiable,sorry

waxen pagodaBOT
#

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

digital vector
#

got my sleep schedule fucked now,so ill open this now as im not gonna be awake at a normal human hour