Results 1 to 19 of 19

Thread: java compiler

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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.

  3. #3

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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.

  4. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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.

  5. #5
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: java compiler

    heres the link specific to downloading the JDK

    https://jsecom16k.sun.com/ECom/EComA...B64D8DE1944846

  6. #6
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: java compiler

    last note... you would need the j2se, thus j2se Development Kit(JDK)...

  7. #7
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: java compiler

    if you have any more questions you could try JAVA Tutorial

    http://java.sun.com/docs/books/tutorial/

  8. #8

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: java compiler

    thanks again for the reply and links.

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: java compiler

    Moved from CodeBank.

  10. #10
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: java compiler

    I suggest using 1.4 at least for now. Unless you want to run into JVM implemenation details with older versions.

  11. #11
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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.

  12. #12

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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

  13. #13
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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.

  14. #14

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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.

  15. #15
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: java compiler

    Quote 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.

  16. #16
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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.

  17. #17

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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

  18. #18

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: java compiler

    thank you so much oceanebelle . I got it. again so many times.

  19. #19
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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
  •  



Click Here to Expand Forum to Full Width