[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [condor-users] problem with Java execution



OK, let's try to solve those problems separately:
1. Java detection: condor uses several entries in the configuration file
to detect java. They are usually somewhere in the end. One of them is
JAVA, which should point to valid java executable. Check that it's true
for you.
2. Big jar. Here's what you can do: add your jars (offline) to the
condor lib directory , or where ever you want it, and add them to the
classpath in the configuration file : JAVA_CLASSPATH_DEFAULT. If you
have the same application to run all the time, that will do the job.
This way you won't have to specify them in the submission file.


On Sun, 2004-03-14 at 23:18, Michal Sankot wrote:
> I run java class from rather large jar file and don't want to have
> transferred every time, it's called (as communication with clients is rather
> slow).
> And for some bizzare reason, I can't get Java detected (by startd) on my
> master host either. From command-line I can call java without problem (I
> even reinstalled it yesterday as I was trying to fix it), but Condor, just
> doesn't detect it at all.
> 
> What could be the prolem ?  (jvm.cfg is placed in path which contains
> spaces, but that shouldn't matter. Or does it ?)
> 
> Michal
> 
> > Why not using  Java universe instead?
> >
> > On Fri, 2004-03-12 at 18:34, Michal Sankot wrote:
> > > Hi,
> > > I'm having problem with execution of java in vanilla universe. It fails
> on
> > > one machine, and runs ok on two others, which have the same
> installation.
> > >
> > > When I run my script, I get error message:
> > > -------
> > > Error: could not open `C:\Program Files\Java\j2re1.4.2\lib\i386\jvm.cfg'
> > > -------
> > >
> > > But jvm.cfg file is there.
> > >
> > > Script, I call is:
> > > ------
> > > java -jar c:\pipes\small.jar small.csv small.240.0.xml
> > > ------
> > >
> > > StarterLog says:
> > > 3/12 16:31:27 Starting a VANILLA universe job with ID: 240.0
> > > 3/12 16:31:27 IWD: d:\Condor/execute\dir_1648
> > > 3/12 16:31:27 Output file: d:\Condor/execute\dir_1648\240.0.out
> > > 3/12 16:31:27 Error file: d:\Condor/execute\dir_1648\240.0.err
> > > 3/12 16:31:27 Renice expr "10" evaluated to 10
> > > 3/12 16:31:27 About to exec C:\WINNT\system32\cmd.exe /Q /C
> condor_exec.bat
> > > small.jar small.csv small.240.0.xml
> > > 3/12 16:31:27 Create_Process succeeded, pid=2484
> > > 3/12 16:31:27 Process exited, pid=2484, status=1
> > > 3/12 16:31:27 Got SIGQUIT.  Performing fast shutdown.
> > > 3/12 16:31:28 ShutdownFast all jobs.
> > > 3/12 16:31:28 **** condor_starter (condor_STARTER) EXITING WITH STATUS 0
> > >
> > >
> > > What is the problem with Java ?
> > >
> > > Michal
> 
> Condor Support Information:
> http://www.cs.wisc.edu/condor/condor-support/
> To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
> unsubscribe condor-users <your_email_address>
> 

Condor Support Information:
http://www.cs.wisc.edu/condor/condor-support/
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>