Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with classpath in Batchfile

 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Below is the snippet of Batch file

set CLASSPATH=% CLASSPATH%;D:\BatchApps\RDev\RTesting\GRTesting_Config.properties.;D:\BatchApps\RDev\RTesting\log4j.properties

c:\progra~1\java\jre6\bin\java -Xms512M -Xmx512M -jar D:\BatchApps\RDev\GRTesting\GRTesting.jar
GRTesting.jar is executable jar. So, when I run this batch file, I am getting properties file not found exception that is java.util.ResourceBundle.throwMissingResourceException

Anybody has an Idea?
 
Campbell Ritchie
Sheriff
Posts: 48635
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"=% CLASSPATH%" etc.
Shouldn't that read
"=%CLASSPATH%"
without a space?
 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya..sorry for typo mistake..In the batch file ...I do not have space anywhere.Any further suggestions?
 
Campbell Ritchie
Sheriff
Posts: 48635
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this. Shall I presume the . after Config.properties is a typo, too? Or have you missed a ;
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of that talk of classpaths is irrelevant. You have written "java ... -jar ..." which doesn't use the classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic