This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Eclipes - Java
Post Reply
Return to board index
Post by
Toldry
So I started learning compewters this year, and I'm required to install Eclipse on my computer at home to do homework and such, but I've been having trouble doing that.
I downloaded eclipse from
here
and didn't know what to do after that, it was just a folder with a bunch of files I don't recognize and the eclipse.exe file that I tried to use but it does
this error
.
Please help.
Post by
ArgentSun
Do you need to use Eclipse? There are many text editors out there, and some have integrated compilers in them, to help you work your Javaz fastah. I am currently using EditPlus, and I have heard about Notepad+, but as far as I know both are okay only for non-hardcore programming. When you get to the huge projects, there are better ones.
Post by
Toldry
Uknown programs crit Toldry for 8653 health.
And, well, yes.
I assume those other programs work somewhat differently than Eclipse, and working on them will probably only confuse me more.
Post by
MeanMachine
I assume that you want a Java IDE (integrated development environment - editing, compiling, executing and debugging all in one). While there are many such solutions, I myself am no Java expert, so instead I'll address your problem.
It's simple, really - the problem is exactly what it says - Eclipse cannot find the Java runtime. Now, I assume you already have JRE (Java Runtime Environment) at least, for if not you would not be able to run any Java application, including Wowhead's model viewer. The simplest solution would be to add the JRE directory to your environmental variable called PATH. If you know what I'm talk about ignore the following instructions and just do it :)
1)
Go to Control Panel, open System and select the "Advanced" tab.
2)
Click Environmental Variables at the bottom.
3)
From the "System variables" list, select PATH (or Path if that's what it's called, the case's irrelevant) and click Edit.
4)
Add a semicolon at the end and paste the path of your JRE's bin directory. It would be something like
C:\Program Files\Java\jre6\bin
5)
Click OK and you're done!
Post by
Skyfire
Do you need to use Eclipse? There are many text editors out there, and some have integrated compilers in them, to help you work your Javaz fastah. I am currently using EditPlus, and I have heard about Notepad+, but as far as I know both are okay only for non-hardcore programming. When you get to the huge projects, there are better ones.
Notepad++ *
Post by
124027
This post was from a user who has deleted their account.
Post by
Toldry
I'm a beginner at this entire subject and from what I understood, Eclipse is the most user-friendly program for beginners.
4)
Add a semicolon at the end and paste the path of your JRE's bin directory. It would be something like C:\Program Files\Java\jre6\bin
whatwhatwhat?
Post by
Deepthought
I'm a beginner at this entire subject and from what I understood, Eclipse is the most user-friendly program for beginners.
4)
Add a semicolon at the end and paste the path of your JRE's bin directory. It would be something like C:\Program Files\Java\jre6\bin
whatwhatwhat?
....
Are you joking? What in the world is difficult to understand about this instruction?
Post by
Incendium
Chances are that if you are getting that error, you don't have the JDK installed. The JRE installer (included with the JDK) automatically updates the PATH variable in Windows. After you install the JDK, Eclipse should work fine.
Post by
Toldry
I'm a beginner at this entire subject and from what I understood, Eclipse is the most user-friendly program for beginners.
4)
Add a semicolon at the end and paste the path of your JRE's bin directory. It would be something like C:\Program Files\Java\jre6\bin
whatwhatwhat?
....
Are you joking? What in the world is difficult to understand about this instruction?
I don't know whats a semicolon.
I have no idea what JRE and JDK is.
Because of the above, I don't know what JRE's bin directory is.
I have nothing remotely similar to "C:\Program Files\Java\jre6\bin" in my computer.
Post by
124027
This post was from a user who has deleted their account.
Post by
Deepthought
I don't know whats a semicolon.
I...I.....how....
I..don't even...I..
;
I have no idea what JRE and JDK is.
Now, I assume you already have JRE (Java Runtime Environment)
Because of the above, I don't know what JRE's bin directory is.
The bin directory in JRE's folder?
I have nothing remotely similar to "C:\Program Files\Java\jre6\bin" in my computer.
It was an example.
An example.
Post by
124027
This post was from a user who has deleted their account.
Post by
Incendium
I have no idea what JRE and JDK is.
Download and install
this
. This will solve your problem.
Post by
Toldry
Even examples should be remotley similar, I assume that I'm supposed to have the \Java\jre6\bin part regardless of where I put the "Java" folder, which
I don't seem to have
.
(The folder marked 'java' has two folders named 'classes' and 'trustlib' in it, which are both empty.
Post by
Toldry
I have no idea what JRE and JDK is.
Download and install
this
. This will solve your problem.
Downloading as I type.
Post by
Deepthought
Toldry.
Go into Program files.
Look for a "Java" folder.
Click on it.
You should see said "jre6" folder.
Search did not find it for me either (I checked) but I found it in about 30 seconds manually.
Edit: Ugh, should've refreshed, missed your last post ._.
Post by
Toldry
It works!
But something else worries me,
When I make a new class on school it usually starts like this;
public class NAME
{
public static void main(String
And I remember my teacher saying once something about that if it's not like that then the program wont work the same way or not work something like that.
And when I open it on eclipse now it starts with
public class NAME{
}
And I don't know what to do :s
Post by
MeanMachine
So, what's the problem? Just add the "main" method in (it must be
public static void main(String[] args)
). By the way, extra spaces and new lines matter not a bit, so you could have a whole program on one line. I would strongly advice against it, though.
P.S. In each Java application you must have a main method in one of the classes, which will always be the starting point of your program. There's nothing more to it, really. No special rules for placement, brackets or whatever.
Post by
Toldry
I know I can add it manually, but I think there's something beyond that.
So.. there isn't?
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.