Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss

 
Mahi Ranga
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
if you don't mine can you please tell me JAVA_HOME configuration.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahi Ranga wrote:if you don't mine can you please tell me JAVA_HOME configuration.


http://www.coderanch.com/how-to/java/how-to-create-java-program#SettingJavahomeAndPath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic