Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

JBoss

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

When I execute the run.bat - I get this error:
******************

ERROR:-
---------
Could not locate C:\j2sdk1.4.2_12\bin\lib\tools.jar. Unexpected results may occur.
Make sure that JAVA_HOME points to a JDK and not a JRE.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mahi,

Welcome to JavaRanch

Please use a meaningful subject while creating a topic.

ERROR:-
---------
Could not locate C:\j2sdk1.4.2_12\bin\lib\tools.jar. Unexpected results may occur.
Make sure that JAVA_HOME points to a JDK and not a JRE.



What is the output of:



It should point to C:/j2sdk1.4.2_12 assuming that's where your JDK is installed.
 
Mahi Ranga
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my %JAVA_HOME% is :C:\j2sdk1.4.2_12,
but i am using windows 7 ,when i installed java by default it's taken program files(xsm) folder.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you need to change your JAVA_HOME variable.
 
Mahi Ranga
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you don't mine can you please tell me JAVA_HOME configuration.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mahi Ranga wrote:if you don't mine can you please tell me JAVA_HOME configuration.



https://coderanch.com/how-to/java/how-to-create-java-program#SettingJavahomeAndPath
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic