• Post Reply Bookmark Topic Watch Topic
  • New Topic

A real beginner  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am about to embark on the journey of learning java. I am really excited about
this and can't wait to start! Having said that when I say I am a real beginner what
I mean is I have never been a member of a forum and not at all sure how this works.
It took me about 10 minutes to figure out how to post a question. I actually feel
compelled to submit this because I am not sure how to cancel or delete so please
be patient, I'll get the hang of this.

Thanks!
GA
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You tell us what is going wrong … and we confuse you by telling you several different ways to solve it
How far have you got?
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome the the Ranch and have fun learning Java!

If you have questions, please let us know and we'll help you along.

Do you already have a book or other resource to learn Java from? Oracle, the owner of Java, as a good set of tutorials available, from the absolute beginner level to advanced topics.
 
Gary Allen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I need to understand the how the compiler works and what is the best environment to do this.
I have downloaded the developer and from what I understand I need to map a path from a
text editor to C:\Program Files\Java\jdk1.8.0_45\bin. I am the kind of person that when I learn
how to do something I need to know how it works.

Even though I am somewhat new to programming I believe I have a knack for it and find the
subject one of the few things in life that I never get bored with. I can't wait to get started and
would appreciate all the help I can get now and it the future.

Thanks!
GA
 
Sheriff
Posts: 4289
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just putting C:\Program Files\Java\jdk1.8.0_45\bin in the PATH environment variable should do it. Then when you create a program like Foo.java, you can type at the command line:

C:>javac Foo.java

That will compile the source code or give you the reasons it can't compile.

HTH
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best way to do it is to give the computer an instruction where to find the javac.exe, java.exe etc programs which live in that folder. You do that by setting the PATH environment variable, which is a list of directories. The computer goes through the PATH from left to right looking for the program you are invoking and stops the first time it finds a name match. There are several ways to set the PATH; you will find one of them in our FAQ.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have downloaded Java8u45 (JDK) you have all you actually need at present, but you would do well to use a decent text editor and set some of its options. Suggestions here. Also see our FAQ about editors.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle's Hello World tutorial shows you step by step how to install the JDK, write, compile and run your first Java program.
 
Bartender
Posts: 689
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gary Allen wrote:I am the kind of person that when I learn
how to do something I need to know how it works.


I'm exactly the same with most things, and it can be both a blessing and a curse. When first starting out in Java there are a lot of things going on in even the most basic program, so take care not to get too distracted and takes things one step at a time. There might be a point when you're first starting out where you have to type some things to make a basic program and you don't fully understand what all of the things mean, but stick with it and learn the basic syntax and things will become clear. Welcome to the world of Java!
 
Gary Allen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not learning the code that I'm having a problem with right now. My degree
is in accounting even though I have extensive experience with database
programming and ERP systems. The company I started working for is usint
Salesforce which is a cloud platform. This is a whole different animal!

I have accepted the fact that cloud computiing is the future but I am really new
to this. Also I am not an IT guy. When I am getting instructions to edit the path
variable this is the first time I have ever heard this term.

Right now I am not sure where I am writing code. I know it's compiled using a
text editor but am I also using that to write code? I always try to figure out
something on my own before asking help but at this point in my learning it
can't be taken for granted that I know anything.

I know this isn't rocket science but I just need a little time to get used to this environment. I am determined to compile some code before this day is over
so any help I can get will be most welcomed.

Thanks!
 
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gary Allen wrote:It's not learning the code that I'm having a problem with right now. My degree
is in accounting even though I have extensive experience with database
programming and ERP systems. The company I started working for is usint
Salesforce which is a cloud platform. This is a whole different animal!



It sounds like you are using a specialized build environment (with framework) -- and it is very likely, that it is very different from the standard Java API and build environment. There is a very high chance that the information that we are providing do not apply here. You may be better off contacting Salesforce.com customer service instead.

Henry
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's reduce this to things really simple:-
  • Have you installed Java®?
  • Do you get a sensible response to the following two instructions (minus quotes)?: "javac -version" "java -version"?
  • Have you installed a decent text editor←link? We have an FAQ about editors; have a look at that. On the rare occasions when I use Windows® I prefer NotePad++.
  • Have you been through the introductory part of the Java® Tutorials (which includes what Jesper linked to yesterday)? I think that will answer your remaining questions.
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!