• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:32
CEST 20:32
KST 03:32
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL63Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event22Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Flash Announces Hiatus From ASL BW General Discussion Player “Jedi” cheat on CSL SC uni coach streams logging into betting site Practice Partners (Official)
Tourneys
The Casual Games of the Week Thread CSL Xiamen International Invitational [BSL20] Grand Finals - Sunday 20:00 CET [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Summer Games Done Quick 2025! Trading/Investing Thread Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 588 users

[Help] Learning Java

Blogs > Coagulation
Post a Reply
1 2 Next All
Coagulation
Profile Blog Joined July 2006
United States9633 Posts
Last Edited: 2011-01-29 23:13:38
January 29 2011 23:12 GMT
#1
I have been wanting to get into learning coding (simple stuff )and from what i understand java is a good start point. So i did some research and went and downloaded the Java Developer Kit from here after I get everything downloaded and installed nothing seems to work so I did a little more reading and find out that i have to
Set up environmental variables for JDK before i can launch the program. however im having an extremely hard time figuring out exactly what im supposed to do.

I have a guide that gives this as first step
Under Windows, you set environmental variables by modifying the autoexec.bat file, located in the root directory of your hard-drive. This batch file is executed on startup; modifications to this file will not take effect until you run it, or reboot.


I have looked but..
I have no idea where to find this autoexec.bat file.
is it in the java instillation destination folder?
is it in my c root drive?
is it in my windows folder?
Im sorry if this is extremely dumb or simple and im being an ignorant newbie here
however..
I would appreciate any wisdom TL can shed on this frustrating road block

open to any and all suggestions if anyone has any good guides/sites etc to help


*
2Pacalypse-
Profile Joined October 2006
Croatia9497 Posts
Last Edited: 2011-01-29 23:24:37
January 29 2011 23:17 GMT
#2
You can set an Environment Variables by clicking right click on My Computer -> Properties -> Advanced.

Let me get back to you on exactly how to set up Java variables, because I did it like a year ago and kinda forgot now ^^.

EDIT: oh yeah, you need to set path to the Java executables. Under those Environment Variables, find Path variable under System Variables and click edit. Add semi colon at the end and type the path to your Java folder where the executables are.
Example: If you installed your Java to "c:\Program Files\Java", then you add to the path variable ";c:\program files\java\bin"
(note: I think executables are in bin folder, but you should check just to be sure)
Moderator"We're a community of geniuses because we've found how to extract 95% of the feeling of doing something amazing without actually doing anything." - Chill
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-01-29 23:21:35
January 29 2011 23:21 GMT
#3
Hi

You should get an IDE. Like Netbeans or Eclipse - They control everything for you and makes it simple. . From there, try an online tutorial for java?

http://www.tutorialspoint.com/java/index.htm
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
2Pacalypse-
Profile Joined October 2006
Croatia9497 Posts
January 29 2011 23:26 GMT
#4
And yeah, you should install some IDE (jGrasp is pretty simple).

You only need to edit your environment variables if you're gonna compile from command prompt, but with IDE there's no need for this.
Moderator"We're a community of geniuses because we've found how to extract 95% of the feeling of doing something amazing without actually doing anything." - Chill
Random()
Profile Blog Joined August 2004
Kyrgyz Republic1462 Posts
January 29 2011 23:30 GMT
#5
On January 30 2011 08:21 Qzy wrote:
Hi

You should get an IDE. Like Netbeans or Eclipse - They control everything for you and makes it simple. . From there, try an online tutorial for java?

http://www.tutorialspoint.com/java/index.htm


I would not recommend jumping into an IDE straight away though. I think it is quite helpful to understand how the whole chain of Java development process works, especially things like setting up the class path. An IDE would do that for you and that's cool, but then you will have a hard time trying to run your program without one, and that makes you feel quite stupid
Disregard
Profile Blog Joined March 2007
China10252 Posts
Last Edited: 2011-01-29 23:39:02
January 29 2011 23:35 GMT
#6
You should just use a very simple IDE like JCreator LE. This way everything can be compiled, easily checked for syntax errors and such. After that you should use Eclipse, which I find has better functionality but JCreator is very newbie friendly. Never tried Netbeans though, but its a whole package IDE.

Im not very experienced since Ive only been doing this for a year, both C++/Java. D:

edit: Try using MS-DOS then, I would probably be stumped without a IDE.
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
Coagulation
Profile Blog Joined July 2006
United States9633 Posts
January 29 2011 23:55 GMT
#7
ok im downloading netbeans at the moment
apparently it is a pretty complete package.

i will check out JCreator LE

Count9
Profile Blog Joined May 2009
China10928 Posts
January 29 2011 23:58 GMT
#8
NONONONO NOT NETBEANS!!!

No, just kidding, it's not bad at all, but eclipse is so nice. It's very beginner friendly: has a red x mark if your code is wrong, green check if its right, auto suggests correction etc.

I use netbeans mostly for GUI stuff, the coding environment is worse.
fanta[Rn]
Profile Blog Joined October 2004
Japan2465 Posts
January 30 2011 00:08 GMT
#9
netbeans is nice but it's buggy as fuck.
I still prefer it over eclipse though.
jacen
Profile Blog Joined April 2004
Austria3644 Posts
January 30 2011 00:11 GMT
#10
On January 30 2011 09:08 fanta[Rn] wrote:
netbeans is nice but it's buggy as fuck.
I still prefer it over eclipse though.

hi fanta
sup?
(micronesia) lol we aren't going to just permban you (micronesia) "we" excludes Jinro
Disregard
Profile Blog Joined March 2007
China10252 Posts
January 30 2011 00:13 GMT
#11
Everyone uses Eclipse, hop on the bandwagon. Haha :D
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
tofucake
Profile Blog Joined October 2009
Hyrule19031 Posts
January 30 2011 00:17 GMT
#12
I actually recommend learning C# instead. Java is bloated, and is up for some hard times.
Liquipediaasante sana squash banana
iGrok
Profile Blog Joined October 2010
United States5142 Posts
January 30 2011 00:25 GMT
#13
If you want to start by learning, check out Blue Pelican Java - its a free java textbook
MOTM | Stim.tv | TL Mafia | Fantasy Fighting! | SNSD
Cambium
Profile Blog Joined June 2004
United States16368 Posts
Last Edited: 2011-01-30 00:32:13
January 30 2011 00:30 GMT
#14
If you choose to use an IDE (you should), use IntelliJ. IntelliJ blows Eclipse out of the water in terms of usability and integration with other tools.

I use IntelliJ at home, and IDE at work because the corporate version is ridiculously expensive.
When you want something, all the universe conspires in helping you to achieve it.
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 30 2011 00:52 GMT
#15
On January 30 2011 08:55 Coagulation wrote:
ok im downloading netbeans at the moment
apparently it is a pretty complete package.

i will check out JCreator LE



Nooooooooooooooo!!!!

If you are starting, do not use an IDE. You have to learn how to set things up.

Besides that, if you are just gonna code simple programs, there is no need to fire up a whole IDE and start coding when you could just open a terminal and notepad.

When you have the need to develop a GUI that demand too much repetitive coding, then use an IDE.
"When the geyser died, a probe came out" - SirJolt
NevilleS
Profile Blog Joined July 2009
Canada266 Posts
January 30 2011 01:02 GMT
#16
Don't listen to these guys saying not to use an ide. If you've never programmed before, your goal isn't to become a ninja yet, you just want to learn the basics... There can be done arcane wizardry required to compile and run programs for any language, and it's better to have a solid understanding of programming fundamentals before you start trying to figure that out too...
jacen
Profile Blog Joined April 2004
Austria3644 Posts
January 30 2011 01:10 GMT
#17
On January 30 2011 09:52 fabiano wrote:
Show nested quote +
On January 30 2011 08:55 Coagulation wrote:
ok im downloading netbeans at the moment
apparently it is a pretty complete package.

i will check out JCreator LE



Nooooooooooooooo!!!!

If you are starting, do not use an IDE. You have to learn how to set things up.

Besides that, if you are just gonna code simple programs, there is no need to fire up a whole IDE and start coding when you could just open a terminal and notepad.


If he is learning java for education he should learn the basics, yes.
If he is learning java to learn an additional language or just start to learn programing, there is no need to code in notepad and compile it via command line.

An IDE is a good tool to keep track on what is working and what is not.
Not to mention step by step debugging which made learning to program a lot easier.
Why should he sacrifice this for some command line skills he won't need if he will never implement complex systems?
(micronesia) lol we aren't going to just permban you (micronesia) "we" excludes Jinro
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 30 2011 02:00 GMT
#18
The error tracking is a good point, but here are my reasons for not using an IDE:

1. He would be using a bazooka to kill a fly (complete netbeans package will install so much stuff that he probably will never use)
2. Opening a terminal+notepad is way faster than Netbeans
3. He has everything he needs installed (the JDK), just need to set the Path, which was explained step-by-step above
"When the geyser died, a probe came out" - SirJolt
jacen
Profile Blog Joined April 2004
Austria3644 Posts
January 30 2011 03:03 GMT
#19
On January 30 2011 11:00 fabiano wrote:
1. He would be using a bazooka to kill a fly (complete netbeans package will install so much stuff that he probably will never use)

Is that really an issue?
Most computers can handle it, right?
So what's bad about installing much stuff you'll never use?

On January 30 2011 11:00 fabiano wrote:
2. Opening a terminal+notepad is way faster than Netbeans

If i read the OP correct, he cannot code yet.
He WILL make plenty of mistakes some of which are hard to figure out on the command line (java compiling errors and exceptions sometimes really suck ...). A step by step debugger will save him more time than opening all those netbeans sessions will cost.

On January 30 2011 11:00 fabiano wrote:
3. He has everything he needs installed (the JDK), just need to set the Path, which was explained step-by-step above

See 2.
It's not about being able to code with the current setup, it's about learning efficiently.


One things why java is so easy to learn is because of it's easy to setup IDEs that let you look into how and why the program works. Not to mention that most of the IDEs are free. If it weren't for that, c# would be just as good as a first programing language.
(micronesia) lol we aren't going to just permban you (micronesia) "we" excludes Jinro
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 30 2011 04:02 GMT
#20
Ok, go with IDE then.

Hopefully you will see how much fun programming is!

Remember that many times you will find yourself stuck at something, like with the problem with Path you posted here, but by experience I can assure you these are the times you learn the most. This was a good time to learn what classpaths are, even if still don't know how to code

But if you are rushing to learn how to code, just go with IDE.

"When the geyser died, a probe came out" - SirJolt
1 2 Next All
Please log in or register to reply.
Live Events Refresh
BSL: ProLeague
18:00
Grand Finals - bo9
Dewalt vs Bonyth
ZZZero.O284
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 758
BRAT_OK 130
MindelVK 36
StarCraft: Brood War
Bisu 900
EffOrt 425
Mini 307
ZZZero.O 284
Soma 258
Hyuk 176
TY 114
ToSsGirL 69
Terrorterran 15
HiyA 13
[ Show more ]
LuMiX 5
Stormgate
BeoMulf171
NightEnD11
Dota 2
qojqva2993
League of Legends
Grubby2996
Dendi2110
Counter-Strike
fl0m1627
Super Smash Bros
Mew2King140
Chillindude43
Westballz26
Heroes of the Storm
Khaldor867
Liquid`Hasu520
Other Games
Gorgc3091
FrodaN2805
B2W.Neo730
mouzStarbuck297
KnowMe115
elazer88
Organizations
Other Games
gamesdonequick41245
EGCTV1698
StarCraft 2
angryscii 21
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• HeavenSC 30
• Adnapsc2 26
• maralekos13
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 4274
• Ler159
League of Legends
• masondota2559
Other Games
• imaqtpie2047
• Shiphtur676
• WagamamaTV378
Upcoming Events
Wardi Open
16h 28m
Monday Night Weeklies
21h 28m
Replay Cast
1d 5h
Sparkling Tuna Cup
1d 15h
WardiTV European League
1d 21h
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
2 days
The PondCast
2 days
WardiTV European League
2 days
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
Replay Cast
3 days
RSL Revival
3 days
ByuN vs SHIN
Clem vs Reynor
[ Show More ]
Replay Cast
4 days
RSL Revival
4 days
Classic vs Cure
FEL
4 days
RSL Revival
5 days
FEL
5 days
FEL
5 days
Sparkling Tuna Cup
6 days
RSL Revival
6 days
FEL
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.