• Log InLog In
  • Register
Liquid`
TeamLiquid Liquipedia LiquidDota LiquidHearth LiquidLegends
EST 04:56
CET 10:56
KST 18:56
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • WCS
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • BarCraft
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[BSL6] Ro24 Group E and F Previews6WCS Winter 2019: RO16 Gate Crashers9Code S RO32 Preview: Groups E, F & G18The Best Games of January 20195Team Liquid Map Contest #12 Finalists38
Community News
Qikz Interview15SC2 esports team members included in Blizzard layoffs110Feb 12 Community Update (Blink cost rollback)149Iron Chain becomes Mkers, acquires ShoWTimE12Cheeseadelphia to hold five SC2 events in 201919WCS Winter RO32 concludes, RO16 groups drawn63Classic, GuMiho, sOs, and others advance to Code S RO1629
StarCraft 2
General
SC2 esports team members included in Blizzard layoffs StarCraft Mass Recall: SC1 campaigns on SC2 thread Feb 12 Community Update (Blink cost rollback) Cheeseadelphia to hold five SC2 events in 2019 AlphaStar AI goes 10-1 against human pros in demonstration
Tourneys
[GSL 2019] Season 1 - Ro32 Group G WCS 2019] Winter Series - Group Stage 2 - Day 3 Sentimiento Latino WCS 2019] Winter Series - Group Stage 2 - Day 2 [TLMC 12] Map Contest Tournament - Playoffs
Fan Clubs
The Scarlett Fan Club The FanTaSy Fan Club Serral Fan Club soO Fan Club
Strategy
The LotV Protoss Help Me Thread The LotV Terran Help Me Thread Simple Questions Simple Answers TL Strategy Spawning Tool Build Thread The LotV Zerg Help Me Thread
Custom Maps
uptodate training maps? micro or macro Simple Questions/Answers Work In Progress Melee Maps [M] (2) Ishual [UMS] Entropy TD
Single Player
Mutation Week 145 Together Forever Ranks/Tiers Mutation #145 Together Forever Mutation Week 144 Ulnar New Year Ranks/Tiers Mutation #144 Ulnar New Year Mutation Week 143 Attrition Warfare Ranks/Tiers
Brood War
General
Remembering Bisu [BSL6] Ro24 Group E and F Previews Grant D making decisions based on twitter poll? BW General Discussion Recommended FPV games (post-KeSPA) Qikz Interview
Tourneys
God Azae League [ASL7] Ro16 Group B [STPL] R4 W1 - WHITECLAN vs Red - BuLL vs dM iRk- DGaF inhouse tournament - FINALS! [BSL6] RO24 - Group E - Saturday 19:00 CET
Strategy
[G] How to get started on ladder as a new Z player Simple Questions, Simple Answers New Hydra Bust from Soulkey Cheese Hydra ZvT [I] Liquipedia Strat Update
Other Games
Other Games
Dota Auto Chess Custom Map? [WoW] Battle for Azeroth Path of Exile Nintendo Switch Thread Sid Meier's Civilization VI
Artifact
Introducing DrawTwo.gg! Tips for new players Hyped's post-nerf tier list
CS:GO
Counter-Strike: Global Offensive IEM Katowice Major 2019 Challengers Stage DreamHack Masters Las Vegas 2017 Minor Championships - Katowice 2019 TL Community team (NA)
Smash Bros
Smash Small VOD Thread Smash Bros. Melee General Discussion
Heroes of the Storm
2/4/19 Ana/Abathur PTR patch notes QQ/Rage Thread. HOTS Dev Update 2/8/19 [HotS] Why I'll Keep Playing HotS HotS: WP and Funny Moments
Overwatch
RUOW CUP Season 2 announcement!
LoL General
LoL Tournaments
LoL Strategy
Community
General
US Politics Mega-thread Iraq & Syrian Civil Wars UK Politics Mega-thread The Big Programming Thread If you're seeing this topic then another mass shooting happened and people disagree on what to do
Media & Entertainment
Movies you have seen recently... [Manga] One Piece What Are You Reading 2019 [Books] Dune [TV] Suits
Sports
NBA Season 2018-2019 2018 NFL and CFB season NHL 18-19: Karlsson my wayward Sen 2018 - 2019 Football Thread F1 2018
Tech Support
Computer Build, Upgrade & Buying Resource Thread TwitchTest: Twitch Bandwidth Tester Software to check SATA ports cant conect to most of internet Simple Questions Simple Answers
TL Community
The Automated Ban List Happy Birthday R1CH! Gay StarCraft Players DC/VA/MD Weekly Nerd Dinner! Who's in?
TL Mafia
Active List of Mafia Games 2.0 A Game of Thrones Mafia TL Mafia Community Thread TL voice mafia!
User Streams
[Stream] Indy [Stream] Hiro> Terran [Stream] LiquidTLO [Stream] maniac1122
Blogs
Featured Blogs
Bigfan Becomes a Caster
BigFan
some new art stuff
Glider
Three Volume IIII
Mizenhauer
Comics Part II: Star Wars VIII
Falling
Translation: How Soulkey Became a Pro-Gamer…
Letmelose
Regular Blogs
Casting Broodwar games!…
reps)squishy
So I have been to some place…
opisska
the desperation of creating …
fishjie
Some random music I've co…
Jockmcplop
Advice on getting affordable f…
Tak3r
Guitar Covers #2
NeThZOR
Spiritual alienation…
Starlightsun
Jan 2019 CranKy Eve…
CranKy Ducklings
Customize Sidebar...

Website Feedback

Closed Threads



Active: 920 users

[Help] Learning Java

Blogs > Coagulation
Post a Reply
1 2 Next All
Coagulation
Profile Blog Joined July 2006
United States9616 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
Croatia8116 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
Croatia8116 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 Republic1308 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
China10081 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 States9616 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
China5994 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
Japan2463 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
Austria3643 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
China10081 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
Hyrule17196 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 States4812 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
Brazil4640 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
Canada262 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
Austria3643 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
Brazil4640 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
Austria3643 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
Brazil4640 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
Next event in 1h 4m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft1149
Stats 1086
ROOTCatZ 484
UpATree 310
ProTech208
ForGG 15
KawaiiRice 13
StarCraft: Brood War
Britney 10937
Jaedong 1511
EffOrt 753
Rain 684
ZerO 629
Aegong 222
Soulkey 173
Movie 165
Tyson 99
Stork 92
[ Show more ]
NaDa 88
Nal_rA 44
Rush 39
Noble 16
MisO 11
eros_byul 7
Hm[arnc] 6
Counter-Strike: Global Offensive
nookyyy 78
Other Games
AZ_Axe101
CrankTV 86
McIntyre31
SFAT1714
Organizations
Counter-Strike: Global Offensive
ESL CS:GO6805
StarCraft 2
OGamingTV SC2 309
Counter-Strike: Global Offensive
dreamhackcs113
StarCraft: Brood War
Classic BW VODs23
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 73
• RavenZ_2vs238
• Freeedom 14
• HKG_Chickenman4
• LUISG 3
• LaughNgamezAfreeca0
StarCraft: Brood War
• sscaitournament8
• WhiteTv 3
• Alex)2
Heroes of the Storm
• chu8667
Other Games
• TSM TheOddOne1460
• HappyZerGling260
• Makarimorph1156
• DooMNoThx118
• subETTE21
• PengWin_SC12
• ezykron4
• Ninjadirt3
• Algost 3
Upcoming Events
Map Test Tournament
1h 4m
Rogue vs aLive
MC vs soO
Bunny vs TBD
TRUE vs TBD
KeeN vs TBD
Intel Extreme Masters M…
2h 4m
Ninjas in Pyjamas vs Vega Squadron
G2 Esports vs Fnatic
Cloud9 vs Furia eSports
WCS
5h 4m
ShoWTimE vs DnS
HellRaiser vs Elazer
REGENERATE OPEN WEEKLY…
5h 4m
DuSt Gaming Open
7h 4m
BSL: ProLeague
8h 4m
KenZy vs Casper
KameZerg vs babo
WCS
9h 4m
Neeb vs MCanning
puCK vs Epic
Alpha X Event
13h 34m
BaseTradeTV Misc.
15h 4m
MaSa vs CalebAracous
puCK vs TLO
Afreeca Global
16h 4m
Rogue vs Cure
Stats vs SortOf
[ Show More ]
Afreeca Starleague
1d
Sharp vs Mind
Modesty vs BeSt
Intel Extreme Masters M…
1d 2h
BW Jeez Weekly
1d 3h
Go4SC2
1d 3h
WCS
1d 5h
Serral vs Rail
GunGFuBanDa vs Harstem
Proxy Tempest
1d 7h
BSL: ProLeague
1d 8h
Dewalt vs Bakuryu
DragOn vs Napoleon
WCS
1d 9h
TIME vs Silky
Kelazhur vs Astrea
BaseTradeTV Misc.
1d 15h
OSC
1d 16h
Showmatch
1d 17h
OSC
2 days
God Azae League
2 days
Proxy Tempest
2 days
ESChamp Toronto
2 days
Afreeca Starleague
3 days
Mini vs Larva
Sacsri vs Rain
OlimoLeague
3 days
Alpha Pro Series
3 days
Harstem vs Bly
GSL Code S
3 days
Zest vs Patience
aLive vs Rogue
Intel Extreme Masters M…
4 days
The Pylon Show
4 days
Intel Extreme Masters M…
5 days
Go4SC2
5 days
God Azae League
6 days
Intel Extreme Masters M…
6 days
Proxy Tempest
6 days
Liquipedia Results

Completed

Coach Pupil League S3
2019 WCS Winter Americas China Qualifier
Fight Night #2
ELEAGUE Invitational 2019

Ongoing

BWCL Season 47
2018 Shinhan Tank Proleague
Bombastic StarLeague 6
Afreeca Starleague Season 7
2019 WCS Winter Americas
2019 WCS Winter Europe
2019 Global StarCraft II League Season 1
OSC Team Championship 2018
WardiTV Team Liquid Map Contest Tournament #4
H. Lounge Div. S S1 NA Qual.
H. Lounge Div. S S1 EU Qual.
H. Lounge Div. S S1 NA Qual. 3
H. Lounge Div. S S1 EU Qual. 3
ESEA Season 30 - AU Premier
ESEA Season 30 - NA Premier
ESEA Season 30 - EU Premier
IEM XIII - Katowice Major 2019

Upcoming

BW Jeez weekly 8
BW Jeez weekly 7
2019 WCS Summer
2019 Global StarCraft II League Season 3
2019 WCS Spring
2019 Global StarCraft II League Season 2
2019 AfreecaTV GSL Super Tournament 1
World Electronic Sports Games 2018
IEM Season XIII - Katowice
H. Lounge Div. S S1 NA Qual. 4
H. Lounge Div. S S1 EU Qual. 4
Tespa Collegiate Series 2019
Agon League Season 3
StarSeries & i-League Season 7
BLAST Pro Series: São Paulo '19
WESG 2018 Global Finals
TLPD

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

Advertising | Jobs | Privacy Policy | Terms Of Use | Logo & Style Guide | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2019 Team Liquid. All Rights Reserved.