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

weblogic.Admin command not running

 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My env varaible are set like:


Now when I am trying to run this from my command prompt:
C:\Documents and Settings\navbhatt>weblogic.Admin
I am getting like:

'weblogic.Admin' is not recognized as an internal or external command,
operable program or batch file.

Any idea why 'weblogic.Admin' is not recognized here?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anand Bhatt:
My env varaible are set like:


Now when I am trying to run this from my command prompt:
C:\Documents and Settings\navbhatt>weblogic.Admin
I am getting like:

'weblogic.Admin' is not recognized as an internal or external command,
operable program or batch file.

Any idea why 'weblogic.Admin' is not recognized here?


*Hint 1* Are you executing it with java?
*Hint 2* You need to think about your CLASSPATH

Cheers,
Martijn
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1* Are you executing it with java? I am not get this point

2:You need to think about your CLASSPATH : Path is already set there
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anand, do you know that weblogic.Admin utility is deprecated as of WebLogic Server 9.0?
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My classpath is showing as:
CLASSPATH=;C:\bea9.2\patch_weblogic921\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea9.2\JDK150~1\lib\tools.jar
;C:\bea9.2\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea9.2\WEBLOG~1\server\lib\weblogic.jar;C:\bea9.2\WEBLOG~1\server\lib\webservice
s.jar;;C:\bea9.2\WEBLOG~1\common\eval\pointbase\lib\pbclient51.jar;C:\bea9.2\WEBLOG~1\server\lib\xqrl.jar;;
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few points:

1.) See Misha's post, sounds like you're trying to run a deprecated utility

2.) Your CLASSPATH looks very suspicious to me (with all of the ~ characters), this is often caused by using windows directory structures, e.g. Is C:\bea9.2\WEBLOG~1\ a real directory? I'd used the full directory name but quote it.

2.a) Alternatively make sure that you have the jar files in a directory structure without spaces or ~ characters
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea why 'weblogic.Admin' is not recognized here?

Originally posted by Anand Bhatt:
1* Are you executing it with java? I am not get this point



The command to run weblogic.Admin is
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Misha ,
This might be reason, as I am using weblogic9.2
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic