This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Wrong java version!  RSS feed

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After installing java 6 update 20 ....i still get the version as 1.3 ,can someone could help me...and java 1.3 is not there in control panel
path.jpg
[Thumbnail for path.jpg]
 
Java Cowboy
Sheriff
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your PATH environment variable set to? Are you sure you do not have Java 1.3 installed somewhere?

Do you have Oracle database client software installed? Older versions of the Oracle client software installed a Java 1.3 JDK along. Make sure the bin directory of your Java 6 JDK is in the PATH before any other Java installations on your system.
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(And please just copy and paste text when showing console output. Thanks!)
 
Arun raghvan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jesper Young wrote: Older versions of the Oracle client software installed a Java 1.3 JDK along



Your right ,i have Oracle 9i .

PATH:
F:\oracle\ora92\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;JAVA_HOME\bin;

JAVA_HOME
;F:\Java\jdk1.6.0_03
 
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just delete "C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;" from your path - oracle will work anyway.
 
Marshal
Posts: 60065
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle has a reputation for installing older versions of Java and adding them to your PATH just where they are most annoying.
 
Sheriff
Posts: 21450
95
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even worse, it adds them at the start. And since the path is evaluated from left to right the Oracle path elements take precedence...
 
Campbell Ritchie
Marshal
Posts: 60065
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Prime wrote:Even worse, it adds them at the start. ...

That's what I meant by "most annoying."
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Arun raghvan wrote:PATH:
F:\oracle\ora92\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;JAVA_HOME\bin;

JAVA_HOME
;F:\Java\jdk1.6.0_03


Change your PATH to the following:

F:\oracle\ora92\bin;D:\oracle\ora92\bin;F:\Java\jdk1.6.0_03\bin

Note: Do not use "JAVA_HOME" literally in your PATH. Windows will not understand that.
 
Rob Spoor
Sheriff
Posts: 21450
95
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's why you enclose it in % symbols:
I have both JAVA_HOME and ANT_HOME on my path like that, and it works like a charm.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob: In my experience that doesn't always work correctly, in some versions of Windows (?) it might set PATH before it sets JAVA_HOME, and then you'd have a literal "%JAVA_HOME%" in your path instead of the real path.
 
Rob Spoor
Sheriff
Posts: 21450
95
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used this on several versions, including 32-bit Windows XP SP3 and both 32-bit and 64-bit Windows Server 2003 R2 SP2, and it has worked on all so far.
 
Arun raghvan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So why do we use classpath?? ...i'm am able to run the program ! but some specify to use class path can i know . why?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classpath is what Java uses to determine where to look for classes.
 
Arun raghvan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i never assigned value for classpath but ...i can execute in different directory.How is that so?
 
Campbell Ritchie
Marshal
Posts: 60065
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is no system or user classpath, the JVM looks in the current directory. It is like having a default classpath of . which would be overwritten by a system classpath.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!