java installation

Discussion in 'QnA (read only)' started by johny, Dec 6, 2004.

Thread Status:
Not open for further replies.
  1. johny

    johny New Member

    Joined:
    Nov 17, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    I just got jdk1.3 from a friend and installed it but all the *.java files that i create need to be in the jdk1.3\bin directory to be compiled or executed. but in my computer center and in college i can have the java files anywhere in the hard drive and execute it for eg: when i type javac in my pc in c drive it says "bad command or filename" but in my college the program is compiled no matter where it is stored. please tell me how do i enable this feature in my pc.
     
  2. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    Your PATH environment is not set properly.... Check out the Environment Variables settings from System Properties.... your PATH should point to the bin directlry of JDK installation...

    on win98 you may need to edit your autoexec.bat file instead...

    on GNU/Linux, you'll have to edit your ~/.bashrc or the system wide /etc/profile file and make the PATH environment variable point to the jdk's bin directory
     
  3. diab0lic666

    diab0lic666 New Member

    Joined:
    Sep 3, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Godless Savage Garden.
    Whats your OS? i hope in future you wud take care of this. Do mention OS u running and basic PC details b4 asking any related question.
    now i assume you are running win XP (not *NIX, coz u have mentioned C drive :wink:Thank God for this much) :) ) NOw right click on My computer, goto properties and under Advance tab click Environment variables, in system variable box click PATH and click edit, now at the end on line enter ";" (without quotes) and now enter C:\jdk1.3\bin Click OK and you are done. :)

    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page