> Chris Burke wrote:
> Sherlock, Ric wrote:
> > How can I specify to start a Jwdp session with a custom profile?
> >
> >
> > I got Jwdp to start fine, but I have changed my Jwdw sessions to use
a
> > custom profile:
> > "C:\Program Files\j601\j.exe" -jprofile
d:\jprg\user\config\profile.ijs
> >
> > Among other things this means that my Project folders are at custom
> > location, so I thought I'd just need to edit the Target string for
> > Jwdp to point to the custom profile and I would be away.
> > Unfortuately I haven't been able to work out how to do this.
> >
> > This Target string starts Jwdp fine with the default profile:
> > C:\WINDOWS\system32\javaw.exe -Xss6000000 -jar j.jar
> >
> > This target string starts Jwdp fine without any profile:
> > C:\WINDOWS\system32\javaw.exe -Xss6000000 -jar j.jar -jprofile
> >
> > This target string doesn't start a session:
> > C:\WINDOWS\system32\javaw.exe -Xss6000000 -jar j.jar -jprofile
d:\jprg\user\config\profile.ijs
>
> I don't see a problem with this, and would expect that you
> could just point to your custom profile.
>
> If you have a startup.ijs file, rename it in case that causes
> the problem. Otherwise, check there are no typos. Try the
> command in a command terminal and let us know what messages are given.
I don't have a startup.ijs file.
I tried running the command in cmd.
There are no error messages (as long as I make sure I run the command in
the J binary directory so J.dll can be found).
If I open Windows Task Manager, I can see javaw.exe appear and then
disappear again.
I can run applications fine in the java interface (see reply to Oleg).
I've copied the active part of my custom profile.ijs
(D:\jprg\user\config\profile.ijs) below in case that helps shed any
light on the matter.
3 : 0 ''
notdef=. 0: ~: 4!:0 @ <
if. notdef 'ARGV' do. ARGV_z_=: ,<'undefined' end.
if. notdef 'PROFILE' do. PROFILE_z_=: 'D:\jprg\user\config\profile.ijs'
end.
if. notdef 'PROFILE' do. PROFILE_z_=: 1!:45'' end.
PATHSEP_j_=: '/\'{~6=9!:12''
jhostpath_z_=: PATHSEP_j_ & (I. @ (e.&'/\')@] })
''
)
NB. =========================================================
NB. create SYSTEMFOLDERS
NB. the entry for binary is added in boot.ijs
sep=. PATHSEP_j_
prf=. PROFILE {.~ PROFILE i: sep
cfg=. prf
usr=. cfg {.~ cfg i: sep
tmp=. usr,sep,'temp'
bin=. (1!:45'') {.~ (1!:45'') i: sep
add=. bin,sep,'addons'
sys=. bin,sep,'system'
hlp=. sys,sep,'extras',sep,'help'
hom=. (0&e. { ;&prf) 2!:5 'HOME'
ids=. ;: 'profile system addons temp user config help home'
SYSTEMFOLDERS_j_=: ids ,. prf;sys;add;tmp;usr;cfg;hlp;hom
NB. =========================================================
NB. boot up J:
NB. note: this may load a command line script, and should be
NB. the last entry in this script. Any additions beyond this
NB. point may confuse things and cause failures.
0!:0 <jhostpath sys,'\extras\util\boot.ijs'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm