Here's how JRun 3.1 works with regard to starting from the command line.  I
don't know how VAJ works, but I've never had trouble getting any debugger or
IDE to work just by using the following information and adjusting
accordingly for the particular IDE:

Prior to JRun 3.1, to start JRun from the command line in the past, or in a
debugger/IDE, etc., you had to specify a slew 
of -D args to the JVM, including a bunch of Ejipt properties and a security
policy file.  Not any more.

In JRun 3.1, to start from the command line (or to get your IDE/debugger to
start JRun from java), you now:
 
1. Set up your classpath as before (all the $JRUN_HOME/lib and
$JRUN_HOME/lib/ext jars).

2a. UNIX: java -cp $CLASSPATH JRun /path/to/JRun/servers/server-name

2b. Win32: java -cp %CLASSPATH% JRun D:\path\to\JRun\servers\server-name
 
So the pattern is:
 
java [args] JRun [-start|stop|restart|status|version|build] [jvm-rootdir]
[name=value ...]
 
You don't need -start because that's the default.
 
JRun can derive the jrun.rootdir from the jvm-rootdir, which defaults to the
current directory ( . ).

Any JRun property can be passed as a name=value pair, and will be added to
the JRun ServiceConfig for that server instance.

Scott Stirling
Macromedia

> -----Original Message-----
> From: Arul [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 26, 2001 11:30 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Setting up JRun with IBM Visual Age for Java 3.5.3
> 
> 
> Scott
> 
> After changing the way u told, even the debugger window didnt open
> 
> The console window shows it as
> 
> java.io.FileNotFoundException: E:\Program Files\IBM\VisualAge for
> Java\ide\project_resources\Jrun\default\local.properties (The 
> system cannot
> find the path specified)
> 
> Why its looking for local.properties in that directory
> 
> 
> 
> -Arul
> 
> ----- Original Message -----
> From: "Scott Stirling" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 26, 2001 9:57 PM
> Subject: RE: Setting up JRun with IBM Visual Age for Java 3.5.3
> 
> 
> > Try this:
> >
> > Command line arguments like this:
> >
> > default
> >
> > That is all you will need for program args to JRun!  No 
> "start," and no
> path
> > to jrun.rootdir.
> >
> > But and add this property to your properties:
> >
> > Djrun.home=E:/Program Files/allaire/jrun
> >
> > And if that doesn't work, try changing "Program Files" to 
> "PROGRA~1,"
> and/or
> > try using -Djrun.rootdir instead of -Djrun.home.
> >
> > Scott
> >
> > > -----Original Message-----
> > > From: Arul [mailto:[EMAIL PROTECTED]]
> > >
> > > No scott..It didnt work out..
> > >
> > > My command line arguments is like this
> > >
> > > start E:/Program Files/allaire/jrun/servers/default
> > > jrun.rootdir=E:/Program
> > > Files/allaire/jrun
> > >
> > >
> > > and properties is
> > >
> > > Dejipt.classServer.host=127.0.0.1
> > > Djrun.home=E:/Program Files/allaire/jrun
> > > Djava.security.policy=E:/Program 
> Files/allaire/jrun/lib/jrun.policy
> > > Dejipt.homePort=2333
> > > Dejipt.ejbDirectory=E:/Program Files/allaire/jrun/servers/default
> > > Dejipt.classServer.port=2323
> > > Dejipt.home=E:/Program Files/allaire/jrun
> > >
> > > But still it throws this exception in console
> > >
> > > could not load global.properties
> > > java.io.FileNotFoundException:
> > > E:\Program\lib\global.properties (The system
> > > cannot find the path specified)
> > 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to