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
Printable View
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
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.
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
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... ;)
heres the link specific to downloading the JDK
https://jsecom16k.sun.com/ECom/EComA...B64D8DE1944846
last note... you would need the j2se, thus j2se Development Kit(JDK)...
if you have any more questions you could try JAVA Tutorial
http://java.sun.com/docs/books/tutorial/
thanks again for the reply and links.
Moved from CodeBank.
I suggest using 1.4 at least for now. Unless you want to run into JVM implemenation details with older versions.
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.
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
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
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...Quote:
Originally Posted by popskie
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
the entry in bold should be the part you are likely to append to the string of the PATH system variableCode:%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%
i hope this helps :)
or... if you did not create those Path variable...and you edited it.. , some of your other programs might now work.. :( better restore those.
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
thank you so much oceanebelle . I got it. again so many times.
okies. glad you're on your way to learning java. ;)