|
-
Aug 17th, 2005, 10:54 PM
#1
Thread Starter
Fanatic Member
java compiler
Hi,
I have question here, where I can get j2se compiler. I have alreay installed the java runtime environment. There is no javac.exe but hava a java.exe.
pls give an advice.
Popskie
-
Aug 17th, 2005, 11:56 PM
#2
Re: java compiler
jre and jsdk/j2se is different... i think you'd need to jsdk about 40-60 mb download.
jre is about 10-15 mb download...
check the java sun website.
-
Aug 18th, 2005, 12:42 AM
#3
Thread Starter
Fanatic Member
Re: java compiler
ok oceanebelle what is lacking my dowload in order to get the java compiler in order to run the hellow world program? Is it the jsdk or j2se? and where i can download or I have to buy that software? pls .
Popskie
Last edited by popskie; Aug 18th, 2005 at 12:46 AM.
-
Aug 18th, 2005, 01:23 AM
#4
Re: java compiler
here is a link to java 5
http://java.sun.com/j2se/1.5.0/download.jsp
i downloaded the JDK5 part (j2sedevelopment kit)
and installed it, usually it will install in program files\java\jdk1.5 or something... but definitely not jre, then in this folder theres a bin directory, and there you can already see the javac.exe
assuming this is windows...
Last edited by oceanebelle; Aug 18th, 2005 at 02:28 AM.
-
Aug 18th, 2005, 01:25 AM
#5
-
Aug 18th, 2005, 01:28 AM
#6
Re: java compiler
last note... you would need the j2se, thus j2se Development Kit(JDK)...
-
Aug 18th, 2005, 01:30 AM
#7
Re: java compiler
if you have any more questions you could try JAVA Tutorial
http://java.sun.com/docs/books/tutorial/
-
Aug 18th, 2005, 01:48 AM
#8
Thread Starter
Fanatic Member
Re: java compiler
thanks again for the reply and links.
-
Aug 18th, 2005, 05:40 AM
#9
-
Aug 18th, 2005, 09:55 AM
#10
Frenzied Member
Re: java compiler
I suggest using 1.4 at least for now. Unless you want to run into JVM implemenation details with older versions.
-
Aug 18th, 2005, 07:18 PM
#11
Re: java compiler
yup, i agree with you system_error, there were some code that I have run in Java 1.5 at the office then run it at home using java 1.4, the code did not work at all, and the code I made should have been compliant with 1.4. it has to do with gUI operations and showing it... i think in java 1.5, it doesn't matter whether you have already called pack() and then change some of the components attributes, the gui will still show, but then in 1.4... it matters. gotta be careful with that. i only changed the order of the functions being called so that the gui would show.
-
Aug 18th, 2005, 07:42 PM
#12
Thread Starter
Fanatic Member
Re: java compiler
how would i set the path of my java so that whenever am I. I can compile and run my program. I used Windows XP.
D:\Program Files\Java\jdk1.5.0_04\bin
-
Aug 18th, 2005, 07:52 PM
#13
Re: java compiler
well.. just go to environment variables (right clicking my computer icon at the menu and clicking the properties tab would popup a window, find the tab where the Environment Variables button can be found, click it... and then it will pop up a window that has all the environment variables listed and look for PATH variable in the system variables list box part), click edit button (or just double click it.. i already forgot) , then append the path of the JDK bin directory and lib(??? not sure) check the Java Tutorial for this. just to make sure
note: i suggest you make a user variable called JAVA_HOME, then add this variable to your path, that way when you change the path to your JDK, (like you want to use another version) you only have to change this variable. 
and of course there are other ways of doing this... 
and make sure you are an administrator of the PC when changing variables... and careful also of changing the system variables.
if you have successfully done this, you can already invoke.. javac.exe and java.exe using the shell, wherever you may be(a directory other than the bin of jdk)
sorry i don't have pics to show... my OS is japanese so that won't be of any help to you i think
Last edited by oceanebelle; Aug 18th, 2005 at 07:57 PM.
-
Aug 18th, 2005, 08:19 PM
#14
Thread Starter
Fanatic Member
Re: java compiler
hi oceanebele pls see my attachment. Nothing happen when i append the variable.
Last edited by popskie; Mar 22nd, 2007 at 02:21 AM.
-
Aug 18th, 2005, 08:36 PM
#15
Re: java compiler
 Originally Posted by popskie
hi oceanebele pls see my attachment. Nothing happen when i append the variable.
never mind the japanese characters henry... but this is what i meant...
i think you created a PATH variable in user variables box (you don't need that.. as well as the other variables like LIB, BIN ... etc)
just JAVA_HOME which is set to the path of the java home is good(the parent folder).
now, in the system variables box, there exists already a Path system variable
all you need to do is append the JAVA_HOME user variable to the existing Path System variable...
the entry in mine is
Code:
%JAVA_HOME%;%JAVA_HOME%\lib;%JAVA_HOME%\include;%JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\php;C:\Program Files\PostgreSQL\8.0\bin;%PGDATA%
the entry in bold should be the part you are likely to append to the string of the PATH system variable
i hope this helps
Last edited by oceanebelle; Aug 18th, 2005 at 08:39 PM.
-
Aug 18th, 2005, 08:41 PM
#16
Re: java compiler
or... if you did not create those Path variable...and you edited it.. , some of your other programs might now work.. better restore those.
-
Aug 18th, 2005, 09:20 PM
#17
Thread Starter
Fanatic Member
Re: java compiler
I use variable java_hom and its value = to D:\Program Files\Java\jdk1.5.0_04
Is it correct if i set the path to ;%JAVA_HOME%\BIN
-
Aug 18th, 2005, 09:47 PM
#18
Thread Starter
Fanatic Member
Re: java compiler
thank you so much oceanebelle . I got it. again so many times.
-
Aug 18th, 2005, 09:57 PM
#19
Re: java compiler
okies. glad you're on your way to learning java.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|