Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:57:52+00:00 2026-05-23T15:57:52+00:00

I have set JAVA_HOME = C:\Program Files\Java\jdk1.6.0_26 in user defined variables and system variables

  • 0

I have set JAVA_HOME = C:\Program Files\Java\jdk1.6.0_26 in user defined variables and system variables and classpath = .; in user defined variables PATH = C:\Program Files\Java\jdk1.6.0_26\bin in system variables.

Now when I type java on cmd on windows 7 os then am getting message – Error could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'.

Thing to note here is that initially only jre6 was defined in Java folder and so I had to install jdk but still am getting this error any clue?

Update
I have able to get java information, all I did was initially I had set up path variable information in following some %SYSTEM_ROOT% and other variables in the PATH Variables values but now I just put C:\Program Files\Java\jdk1.6.0_26\bin as first value in PATH Variables value list and so it worked, guess %SYSTEM_ROOT% has pre-defined settings for Path which was pointing to old jre path location.

  1. Now when I run java -version, I
    get following information, how do i
    know if java installed is 32-bit or
    64-bit?

java version “1.6.0_26” Java(TM) SE
Runtime Environment (build
1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode,
sharing)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:57:52+00:00Added an answer on May 23, 2026 at 3:57 pm

    Your path variable is correct but for classpath variable use
    SET Classpath="C:\Program Files\Java\jdk1.6.0_26\lib"

    JVM uses class path at run time to search for .class files.

    By using “.;” JVM will search for .class files in bin directory whereas the compiled .class files of rt.jar are in lib directory.

    This why you’re facing errors.

    learn more about classpath variable @ http://programmingbulls.com/classpath-variable-java

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my JAVA_HOME set to: C:\Program Files (x86)\Java\jdk1.6.0_18 After I run maven install
We have set up a system where notifications get sent to a user with
I installed Java 1.7.0 in the following folder C:\Program Files\Java . My operating system
I have a Java application set up as a service to do data-mining against
I have a Java method in which I'm summing a set of numbers. However,
I have set up a version control system using TortoiseSVN at my home to
I always wondered why I have to manually set the JAVA_HOME environment variable after
I have installed Tomcat 5.5 in windows vista home basic. I have set classpath
I have set up Hadoop on my laptop and ran the example program given
I have installed the JDK, to C:\jdk, the JAVA_HOME variable is set to C:\jdk\jdk,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.