Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old September 20th, 2008   #1
miggl
A Carafe of Ubuntu
 
miggl's Avatar
 
Join Date: Apr 2005
Location: Los Angeles
Beans: 88
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to miggl Send a message via AIM to miggl Send a message via MSN to miggl
Question Running CruiseControl at startup

Hi folks!

I have managed to get CruiseControl (http://cruisecontrol.sourceforge.net/) installed, well... somewhat.
There are a few quandaries I am trying to overcome:
  1. How to get CruiseControl to work from /opt/cruisecontrol/ directory, instead of ~/cruisecontrol/.
  2. How to get CruiseControl to run at startup.

I guess the main problem is #1: When installing it per these instructions (http://no-names.biz/2008/06/09/cruis...n-debian-etch/) I receive the following error when trying to start cruisecontrol:
Quote:
mike@sol:/opt/cruisecontrol$ sudo ./cruisecontrol.sh
Using Cruise Control at /opt/cruisecontrol-bin-2.7.3
/bin/java -Djavax.management.builder.initial=mx4j.server.MX4J MBeanServerBuilder -Dcc.library.dir=/opt/cruisecontrol-bin-2.7.3/lib -jar /opt/cruisecontrol-bin-2.7.3/lib/cruisecontrol-launcher.jar -jmxport 8000 -webport 8080 -rmiport 1099
./cruisecontrol.sh: line 102: /bin/java: No such file or directory
Note: I'm using SUDO here because it would use the same permissions if trying to start it from /etc/rc.local (which doesn't work).

I've narrowed the error down to the JAVA_HOME environment variable not being read correctly, even though:
Quote:
mike@sol:/opt/cruisecontrol$ sudo echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Does anyone have any advice?

Thanks!
miggl is offline   Reply With Quote
Old October 1st, 2008   #2
hexusff
First Cup of Ubuntu
 
Join Date: Oct 2008
Beans: 1
Kubuntu 8.04 Hardy Heron
Send a message via ICQ to hexusff Send a message via AIM to hexusff Send a message via MSN to hexusff Send a message via Yahoo to hexusff Send a message via Skype™ to hexusff
Re: Running CruiseControl at startup

Hi i crush with the same problem, apparently cruise control has hardcoded that path, so I made a symbolic link to the java binary
Code:
$ ln -s /usr/lib/jvm/java-6-sun/bin/java /bin/java
This solved this problem, maybe some one got a better way to get this tool running
hexusff is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry