aspose file tools*
The moose likes Java in General and the fly likes JVM Options  - How are paths set? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JVM Options  - How are paths set?" Watch "JVM Options  - How are paths set?" New topic
Author

JVM Options - How are paths set?

David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
Hi all,

I am trying to set a JVM Option in the Sun Java System Application Server Admin Console.

I am trying to set an option to the path of the configuration file for Log4J. My option is as follows but is not being picked up:

My Java app is running on a Solaris machine that I have mapped to my Z: drive.

I have also tried to following to no avail:


Can anyone help me with finding this configuration file this way?

Thanks,
David
David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
Please, please, please let me, let me, let me, let me get what I want this time.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19755
    
  20

PatienceIsAVirtue.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Christian Dillinger
Ranch Hand

Joined: Jul 20, 2009
Posts: 189
Where do you put that -D-Stuff into your command line?
David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
Rob Prime wrote:PatienceIsAVirtue.


Apologies. I'm a newbie to this game and am vey naive.
David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
Christian Dillinger wrote:Where do you put that -D-Stuff into your command line?


I open the Sun App server console and set the variable in the JVM Options tab. I have now realised that my path was wrong. Because I am using a VM Solaris box running on Linux, I need to point the property to my Linux box.

Still doesn't work.
David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
Problem solved:

-Dlog4j.configuration=file:${com.sun.aas.instanceRoot}/applications/j2ee-apps/my_project/my_project-ejb_jar/prodlog4j.properties

Works!

Thanks everyone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JVM Options - How are paths set?