#I need help in setting up visual studio code for Java.

300 messages · Page 1 of 1 (latest)

split lynx
#

please help me

floral magnetBOT
#

This post has been reserved for your question.

Hey @split lynx! 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.

split lynx
#

hi

glass coral
#

first off, which manual are you following currently?

split lynx
#

dev.java i guess

glass coral
#

which website is this screenshot you posted earlier from

split lynx
#

this

#

now what to do next

glass coral
#

alright so you downloaded the jdk and unzipped it to somewhere

#

right?

split lynx
#

yes

#

done

glass coral
#

where did you unzip it to

split lynx
#

desktop

#

where else

glass coral
#

can you send a screenshot of the unzipped folder

split lynx
glass coral
#

where is your desktop located exactly

#

C:\Users\username\Desktop?

split lynx
#

yes

glass coral
#

then the command should be set JAVA_HOME=%HOMEPATH%/Desktop/jdk-19.0.2

#

not what you entered earlier

split lynx
#

ok

#

done

#

though nothing happened

glass coral
#

yeah that's expected

#

can you do echo %JAVA_HOME% and echo %PATH% and send the results?

split lynx
glass coral
#

okay, that should be ok

#

next, do set PATH=%JAVA_HOME%/bin;%PATH%

split lynx
#

done

#

next

glass coral
#

then try to run java -version

split lynx
glass coral
#

hm

#

do echo %PATH% again please

split lynx
glass coral
#

oh wait i see what the issue is

#

do set PATH=C:%PATH%

#

then try java -version again

split lynx
#

ok done

#

next

glass coral
split lynx
#

yes

#

same error

glass coral
#

wtf

#

1s

split lynx
#

yeah

#

what?

#

what should i do now

glass coral
#

search for System properties, start it, go to the Advanced tab, click Environment Variables, then send a screenshot of what that looks like

split lynx
glass coral
#

click on the first New button at the top, send a screenshot of that

split lynx
#

then

glass coral
#

what does it look like

split lynx
glass coral
#

Variable name is JAVA_HOME, variable value is C:\Users\divga\Desktop\jdk-19.0.2\

split lynx
#

dude

#

wait

#

where should i store my file ?

#

if not on desktop

glass coral
#

make a new cmd window, then try echo %JAVA_HOME%

split lynx
glass coral
#

wtf

split lynx
#

next

glass coral
split lynx
#

dude

#

@glass coral

glass coral
#

what

#

im trying to help

split lynx
#

lol wait

#

i didn't click on ok

#

wait i need to redo it

#

like this

#

now?

#

@glass coral

glass coral
#

wrong New button...

glass coral
split lynx
#

ok

glass coral
#

eh whatever it should be fine

split lynx
#

let me redo it

glass coral
#

no, it should be fine

#

it doesn't matter

split lynx
#

ok

#

next

glass coral
#

open a new cmd window again, echo %JAVA_HOME%

split lynx
#

done

glass coral
#

which output

split lynx
glass coral
#

is that a new cmd window

#

or the old one

split lynx
#

yes

glass coral
#

there we go

#

okay

glass coral
# split lynx

next, click on the Path variable in the bottom section, then click on the Edit button below it

split lynx
#

ok

#

done

glass coral
#

how does it look

split lynx
glass coral
#

click the New button, and enter C:\Users\divga\Desktop\jdk-19.0.2\bin

split lynx
#

done

glass coral
#

then click OK

split lynx
glass coral
#

after that, new cmd window and try java -version

split lynx
#

same error

glass coral
#

screenshot

split lynx
glass coral
#

what the fuck

split lynx
#

isn't there any direct method

glass coral
#

try javap

#

just javap

split lynx
#

nope

#

why

#

the fuck

#

i hv to struggle to just install java

glass coral
#

can you try "C:\Users\divga\Desktop\jdk-19.0.2\bin\java" -version

hollow grove
split lynx
#

what does that mean

hollow grove
#

Admittedly you seem to have found a tutorial that isn't exactly helpful

split lynx
#

that golden helper gave me

#

the tutorial

#

chris if i remember

glass coral
#

that was the issue

#

go into your jdk folder again, then put cmd in the address bar and press enter

split lynx
#

now what should i do

glass coral
#

screenshot

hollow grove
#

(Or, you know, just installing IntelliJ and commanding it to install Java)

split lynx
#

tell me the easier way

glass coral
split lynx
glass coral
#

for some reason

#

windows moment

split lynx
#

ok

#

so?

glass coral
#

move the jdk-19.0.2 folder to your home directory

#

so to C:\Users\divga

#

out of your desktop

split lynx
glass coral
#

one second

split lynx
glass coral
# split lynx

alright, in this cmd, do cd .., then after that, move jdk-19.0.2 C:\Users\divga\jdk-19.0.2

glass coral
split lynx
#

ok i am downloading it

#

i don't wanna get a headache

#

can't download

glass coral
#

oh wait

split lynx
#

??

glass coral
#

and pick the .msi thing

split lynx
#

now?

glass coral
#

scroll down

#

there are downloads

#

pick the right .msi download for your system and you should be good to go

split lynx
#

where?

glass coral
#

what the fuck

split lynx
#

?/

#

where is it?

glass coral
#

does this work

split lynx
#

yes

#

finnally

#

dude my net is lagging

#

a lot

#

i think i need to rest

#

bye

#

will get back at nigh

#

night

remote heath
#

lol

#

https://adoptium.net/ then just download extensions for java in vs code

Eclipse Adoptium provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

#

make sure to click that it should be for all users

#

done

fallen idol
#

I have solution: IntelliJ

split lynx
#

hello

#

i'm back

#

guys i don't want eclipse

#

@glass coral

#

any video tutorial?

#

@hollow grove @fallen idol

hollow grove
#

For starters, where is Eclipse coming from? Was it named in this discussion?

split lynx
#

ok

#

just installing it wait

hollow grove
#

........ That wasn't an answer

split lynx
#

no no i got it

#

why the hell is it taking so much time

#

it failed to install

#

what should i do now?

#

@hollow grove

#

@fallen idol

hollow grove
#

I don't know what you're doing

split lynx
#

downloaded and ran it

hollow grove
#

Uh. Okay, we're getting into less normal territory here. How do you know it failed to install?

split lynx
#

it is showing right?

split lynx
glass coral
split lynx
#

it redirected me to it

glass coral
#

you downloaded that from dev.java, didn't you

split lynx
#

i think so long back

#

but it redirected me to it

glass coral
#

which country do you live in

split lynx
#

india

glass coral
#

your internet provider might've censored some sites for some reason

split lynx
#

yes

glass coral
#

then the installer's just bad

split lynx
glass coral
split lynx
#

yes

glass coral
#

and it worked

#

right?

split lynx
#

yes

glass coral
#

open cmd, try java -version again

split lynx
glass coral
#

there we go

split lynx
#

ok next

hollow grove
#

I don't have the first clue on how to use Java with VSC... And why would anyone even consider doing that?
I hear it's possible to, though not a great experience

split lynx
#

what to do next

split lynx
#

@glass coral

hollow grove
#

Ah, I'm glad that it's easier, apparently you're doing it easily right now

split lynx
#

dude what should i do

#

for the next part

#

@glass coral

fallen idol
#

Slayer stop pinging

#

If people want to help, they will

#

Id suggest downloading IntelliJ, it's a simpler solution to this problem

red gull
#

"Coding pack for Java" lol

#

Just run the actual installer and not malware

#

Then get the extensions from the marketplace

#

So you need to go to the marketplace and find your Java extensions

remote heath
#

@fallen idol how much do you take for teaching advanced java

#

just wondering

split lynx
fallen idol
split lynx
#

lol

#

dude

#

now that i have installed java, how can add it to vs code

glass coral
#

@split lynx please do not dm me

split lynx
#

lol

#

ok

glass coral
#

keep it on this server

split lynx
#

ok what next

#

how can add it to vs code

glass coral
#

you install the vscode extensions for java

#

that's it

#

that's all there is to it

split lynx
#

wait

#

and are these file take a lot of storage

glass coral
#

which files

split lynx
#

which extension should i select

fallen idol
#

bets of luck soldiers 🫡 i can't take this anymore lol

split lynx
glass coral
split lynx
glass coral
#

that should be it

split lynx
#

this?

glass coral
#

no

split lynx
#

ok

#

how much time should it take to download it

glass coral
#

idfk

#

like 30 seconds

split lynx
#

and

#

please give me some tutorials

#

like video tutorials for java

#

@glass coral

glass coral
#

i'm not your parent

#

there are thousands of tutorials online

#

please try to use google before asking me

split lynx
#

error is coming

#

is something wrong with my wifi

glass coral
#

probably

split lynx
#

ok

split lynx
#

ok and i am done

#

thank you guys