Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How to instal JDK 8 in a drive other than C

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to instal JDK 8 in a drive other than C

    Hi,

    I have installed JDK-8u11-windows-i586 in to D drive as i cant install in C drive, because the laptop which i am using is office laptop and it is not allowing me to do so.
    after installing i added the environment variable with the name PATH and given the path as 'D:\VIJAY\Mobile App\bin\'.
    after doing all this, i tried compiling a small program, i am getting the following error....please help me to fix this error...

    Error: Could not find or load main class com.sun.tools.javac.Main

    Thanks in advance,
    VIJ


  2. #2
    Forum VIP
    Join Date
    Jun 2011
    Posts
    313
    My Mood
    Bored
    Thanks
    46
    Thanked 87 Times in 73 Posts
    Blog Entries
    4

    Default Re: How to instal JDK 8 in a drive other than C

    Strange... First thing I would try is a reboot. Then in the command prompt:

    java -version
    javac -version

    To verify the environmental variables are sound.
    Computers are fascinating machines, but they're mostly a reflection of the people using them.
    -- Jeff Atwood

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to instal JDK 8 in a drive other than C

    Thanks for the reply. I have rebooted my system and tried to use the above mentioned two commands. When i typed in and entered, i am not getting anything. This is how i am entering the details.

    1) java -jdk1.8.0_11 --> i didnt get anything and Run window is disappeared
    2) javac -jdk1.8.0_11 --> i didnt get anything and Run window is disappeared

    Please help...

    Thanks,
    VIJ

    --- Update ---

    My another question is, can we really install JDK into any other drive other than C? i mean successfully...Because in the path on D drive where i have installed, it doesnt show up like 'Java --> jdk1.8.0_11'. This hierarchy doesnt exists. i directly has bin folder underneath D drive.

  4. #4
    Forum VIP
    Join Date
    Jun 2011
    Posts
    313
    My Mood
    Bored
    Thanks
    46
    Thanked 87 Times in 73 Posts
    Blog Entries
    4

    Default Re: How to instal JDK 8 in a drive other than C

    Yes you can install it on D:/ drive.

    If you have Windows XP: Start -> Run -> cmd
    If you have Windows 7: Start -> All programs -> Accesories -> Command Prompt
    If you have Windows 8: Start -> All applications -> Windows System -> Command prompt


    This will open a black screen you can type in called the command prompt. Now type *exactly*:

    java -version

    and then

    javac -version
    Computers are fascinating machines, but they're mostly a reflection of the people using them.
    -- Jeff Atwood

Similar Threads

  1. Its Legal Instal Oracle JDK on Linux?
    By vikar in forum Java Theory & Questions
    Replies: 2
    Last Post: May 21st, 2014, 10:58 AM
  2. Replies: 1
    Last Post: January 12th, 2014, 03:58 AM
  3. Replies: 2
    Last Post: December 5th, 2011, 07:17 AM
  4. How to instal JDBC driver package in eclipse
    By sathish in forum JDBC & Databases
    Replies: 2
    Last Post: September 2nd, 2010, 10:09 AM