Results 1 to 6 of 6
- 01-30-2011, 05:08 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 40
- Rep Power
- 0
Need help setting up my environment in Java
I installed the Java JDK package update 23 and I can open java files and view them that are already classes. But for the ones that aren't, I can't make classes. Also I tried to install Eclipse but when I run the application I get this.
http://img651.images....us/i/escl.png/
In my paths I put this. \jdk1.6.0_23
Not sure if I did it right. Can someone give me a real step by step guide. Stuff I find online aren't really helpfu,
- 01-30-2011, 05:41 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
Check where your JDK is really installed, suppose this directory is named X; check directory X\bin (or X/bin); your executable javac (the compiler) is
supped to be present there. Set your path to point to X\bin (or X/bin).
Note that you have only set up your JDK, you have to do the same for your
JRE (where java the JVM itself is stored). If all that works come back here for the installation of Eclipse. Eclipse doesn't need a JDK because it is a JDK itself and it is clever enough to find an installed JRE.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-30-2011, 05:49 PM #3
Member
- Join Date
- Jan 2011
- Posts
- 40
- Rep Power
- 0
JRE? Do I need paths for that too?
Also you mean like this?
C:\Program Files\Java\jdk1.6.0_23\bin\
- 01-30-2011, 06:59 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
Yep, that's what I mean. On an MS Windows machine the JVM is copied to some windows directory (for reasons that are beyond me) which is already in your path variable so there's no need to worry about it for now. As long as you can get javac.exe and java.exe (or javaw.exe) running you're on the right track.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-31-2011, 12:58 AM #5
Member
- Join Date
- Jan 2011
- Posts
- 40
- Rep Power
- 0
Thanks, also for some reason I can open files that already have a class but I can't make on in the run command thing.
- 01-31-2011, 08:52 AM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
I don't understand your question; the jvm (java.exe or javaw.exe) can only run .class files and the compiler (javac.exe) can only compile .java (source) files and generate .class files. Of course you can open .java source files with an editor; if you try to open .class files with an editor you'll see gibberish.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
How to setting a best environment for java programming under linux
By huasen in forum New To JavaReplies: 11Last Post: 12-12-2010, 06:27 AM -
java run time environment
By abdullahansari in forum New To JavaReplies: 2Last Post: 09-21-2010, 05:39 PM -
making simple java environment
By daanlaan in forum New To JavaReplies: 0Last Post: 07-07-2009, 12:22 AM -
Setting the environment variable for j2sdk
By kiki2009 in forum Java ServletReplies: 3Last Post: 07-04-2009, 05:14 AM -
Environment for java
By carl in forum New To JavaReplies: 2Last Post: 07-31-2007, 08:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks