aspose file tools*
The moose likes BEA/Weblogic and the fly likes need to know about classpath and path variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "need to know about classpath and path variable" Watch "need to know about classpath and path variable" New topic
Author

need to know about classpath and path variable

nandini lagunia
Ranch Hand

Joined: May 05, 2009
Posts: 57
Hi,
When I run setWLSEnv.cmd (located in WL_HOME/server/bin) I get the following message on my console...


CLASSPATH=E:\bea\patch_weblogic922\profiles\default\sys_manifest_classpath\weblo
gic_patch.jar;E:\bea\JROCKI~1\lib\tools.jar;E:\bea\WEBLOG~1\server\lib\weblogic_
sp.jar;E:\bea\WEBLOG~1\server\lib\weblogic.jar;E:\bea\WEBLOG~1\server\lib\webser
vices.jar;D:\softwares\xmlbeans-2.4.0\lib\xbean.jar

PATH=E:\bea\patch_weblogic922\profiles\default\native;E:\bea\WEBLOG~1\server\nat
ive\win\32;E:\bea\WEBLOG~1\server\bin;E:\bea\JROCKI~1\jre\bin;E:\bea\JROCKI~1\bi
n;E:\Java\jdk1.5.0_12\bin;E:\Ant\Ant-1.7.1\bin\ant.bat;E:\oracle\product\10.1.0\
db_1\bin;E:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;E:\oracle\product\10
.1.0\db_1\jre\1.4.2\bin;E:\Java\jdk1.5.0_12;C:\WINNT\system32;C:\WINNT;C:\WINNT\
System32\Wbem;E:\maven-2.0.6\bin;C:\Program Files\Windows Imaging\;E:\Ant\Ant-1.
7.1\bin;C:\Program Files\Microsoft SQL Server\90\Tools\bin\;C:\Program Files\MyS
QL\MySQL Server 5.0\bin;D:\server\jboss\jboss-4.0.2\bin;D:\softwares\xmlbeans-2.
4.0\bin;C:\GlassFishESB\glassfish\bin;E:\bea\WEBLOG~1\server\native\win\32\oci920_8

Your environment has been set.

My querries are...

1)What the symobol (~) signifies?

2)There's no any physical path E:\bea\patch_weblogic922\profiles\default\sys_manifest_classpath\weblogic_patch.jar
I checked it on my machine. What does it mean then?

3)How can I set these settings in my Ant build script?


Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

nandini lagunia wrote:

1)What the symobol (~) signifies?



Windows uses that symbol when there are too many characters to display. Like Progra~1 instead of Program Files. No big deal

nandini lagunia wrote:

2)There's no any physical path E:\bea\patch_weblogic922\profiles\default\sys_manifest_classpath\weblogic_patch.jar
I checked it on my machine. What does it mean then?



Perhaps it is a mapped drive. Check if this actually points to some other location.

nandini lagunia wrote:

3)How can I set these settings in my Ant build script?



There is a weblogic compilation task. It should be capable of accepting path and classpath information


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
nandini lagunia
Ranch Hand

Joined: May 05, 2009
Posts: 57
Thanks for addressing my queries...

I still have a couple of questions.

1) Can I write "E:\bea\weblogic92\server\lib\webservices.jar" instead of "E:\bea\WEBLOG~1\server\lib\webservices.jar"??

2)What do you mean by mapped drive??
I get the same message on my laptop (which is standalone) when I execute setWLSEnv.cmd
I couldn't find any physical path corresponding to E:\bea\patch_weblogic922


3) I know that for running weblogic server I've to set WL_HOME and BEA_HOME variable. Do I need to set any more system varaible
for running the server using Ant build script? Do I need to set CLASSPATH variable too? If yes what would be the value??
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Running the server from weblogic workshop is the easiest thing to do.

1) Can I write "E:\bea\weblogic92\server\lib\webservices.jar" instead of "E:\bea\WEBLOG~1\server\lib\webservices.jar"??


Yes

2)What do you mean by mapped drive??


A mapped drive is one that exists logically but not necessarily physically. Do a google search and you should be able to find some examples.

3) I know that for running weblogic server I've to set WL_HOME and BEA_HOME variable. Do I need to set any more system varaible
for running the server using Ant build script? Do I need to set CLASSPATH variable too? If yes what would be the value??


Its hard to say. Try running it from weblogic workshop. The GUI will set classpath / path etc for you. It makes your job easy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need to know about classpath and path variable
 
Similar Threads
Java -Version Problem
Retrieve WL command-line (-Dname=value)
Axis problem
Problem with classpath
APR based Apache Tomcat Native library which allows optimal performance in production environments w