• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java Learning

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new member of coderanch.I need your help for two questions

1)I am marketing professional and my education background is btech computer science & MBA .I have studied my java basics during my btech and its been 3 years now am away from technical side.Now am planning to move to a technical role.So I just want to know whether i can learn it by myself or any coaching from institutes is Required.

2)I have installed jdk 8 update 25 ,also updated the path in System variable.But Still Java has not been recognised in either browser or Command prompt.Can anyone help with this.?

Thanks In Advance

Sorry if i have posted it in a wrong place

regards
Devika
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to Javaranch!

Learning a programming language is just like learning anything else. If you are used to self learning, it should be relatively easy for you to learn Java with a good book. In that case, I would recommend the K&B's book together with the Head First Java.

I don't know which path you gave that points to your Java installation. You should actually point to the bin directory of your Java installation in the path of your system variable.If you have set it correctly try closing the re-opening the command prompt and check for javac!

What do you mean by Java not recognized in the browser?
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Joe for the reply ..

C:\Program Files\Java\jdk1.7.0_05\bin -this is the path which i have given .this is version 7 .I have tried for both 7 & 8

I have tried rebooting the system also..

By not recognized in browser I mean ..every time i tried checking whether java is installed in your system its showing message like "download java"
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you get when you type javac from your command prompt?
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
'javac' is not recognized as an internal or external command, operable program or batch file
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try following the steps again as mentioned in the following article!

http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
 
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you installed Java8u25 then the PATH should include the jdk1.8.0_25 folder, not a jdk1.7... folder.

And welcome again
 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way: is that a system PATH or a user PATH. If a system PATH, did you delete anything? Please post your whole PATH.
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai Sheriff

thanks for the welcome

C:\Program Files\Java\jdk1.7.0_09\bin This the path which i have given

I edited the old path and entered this path

After that it was not working so i added a new path variable ,so i guess the one i edited got deleted

 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please show us the results of ECHO %PATH%
If you have deleted your system PATH you may end up with many other apps not working and might have to reinstall Windows® as a repair procedure.
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sheriff


PFB the messages am getting in cmd

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DELL>ECHO %PATH%
C:\Program Files\Java\jdk1.8.0_25\bin;C:\Program Files\Java\jdk1.7.0_71\bin

C:\Users\DELL>java_version
'java_version' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\DELL>ECHO %PATH%
C:\Program Files\Java\jdk1.8.0_25\bin;C:\Program Files\Java\jdk1.7.0_71\bin

C:\Users\DELL>
 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
O good grief!

You are supposed to add to the PATH, not replace it in its entirety
If you get any problems with normal program not working, you may have to reinstate most of that PATH. You don't need the jdk1.7 entry at all: remove it. I think your version of Windows® is Win7. I shall try finding the PATH for another Win7 machine so you can record it, in case you need to reinstate it.
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ohh


What Should i do now ?

Please help
 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never fear, Campbell's here!

I had forgotten how annoying Windows® can be when it wants to. Installing Java® is so much quicker on Linux.
This is the PATH on my machine with Win7:

Campbell's Command Prompt wrote:Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Campbell>echo %PATH%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Java\jdk1.8.0_31\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared

You may find that some of your apps cease to work. In which case maybe you should add back the parts of the PATH which you deleted.

Anybody think I am giving bad advice, please tell us now!
By the way: the latest version of Java® appears to be 8u31; I think it came out yesterday.
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have added the default one appended it with java path now am getting in cmd as below

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DELL>echo %PATH%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x8
6)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Fil
es (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.8.0_25\bin

C:\Users\DELL>java-version
'java-version' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\DELL>
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try i.e. with a space after "java".
 
Devika Suresh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hurray ...Its working....


Thanks Ranch Hand

Thanks Sheriff for your time and help

Thanks chris webster


Regards

Devika
 
Campbell Ritchie
Marshal
Posts: 82459
594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Success

You're welcome.
 
reply
    Bookmark Topic Watch Topic
  • New Topic