TeamCity default jdk for buildAgent on linux


I'm trying to run a TeamCity (default) build agent with 32-bit java
on ubuntu 64-bit, I have created a [TeamCity]/bin/setenv.sh what
contains:



JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun


That works fine running the server with 32-bit jre, but not for the
agent: I've tried these lines in
[buildAgent]/conf/buildAgent.properties



JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun
JRE_HOME=/usr/lib/jvm/ia32-java-6-sun/jre


and also a '[buildAgent]/jre' link



[buildAgent]/jre -> /usr/lib/jvm/ia32-java-6-sun/jre/


when I do a '[TeamCity]/bin/runAll.sh start' I get this:



Using CATALINA_BASE:   /srv/TeamCity
Using CATALINA_HOME: /srv/TeamCity
Using CATALINA_TMPDIR: /srv/TeamCity/temp
Using JRE_HOME: /usr/lib/jvm/ia32-java-6-sun
Using CLASSPATH:
/srv/TeamCity/bin/bootstrap.jar:/srv/TeamCity/bin/tomcat-juli.jar
Starting TeamCity build agent...
Java executable is found in '/usr/bin/..'.
Starting TeamCity Build Agent Launcher...
Agent home directory is /srv/TeamCity/buildAgent
Current Java runtime version is 1.6
Lock file: /srv/TeamCity/buildAgent/logs/buildAgent.properties.lock
Using no lock
Done [16436], see log at ../logs/teamcity-agent.log


As you can see from the output, the server is using 32-bit jdk, but
the build agent is running the java found in '/usr/bin' (which is
64-bit in my case).



Closer inspection of the '[buildAgent]/bin/findJava.sh', it looks
like the script runs a 'which java' and finds the default system java
before it even tries any of the supplied args/folders. I think it
should find '[buildAgent]/jre' before the system java.



Whats the correct way to specify the java version to use for a
build agent, which may be a different version than the server?



Should I just modify findJava.sh to check its arguments before
checking the system path for java?

Does anyone know how to switch the default Java compiler in Eclipse
from gcj to the sun java compiler?
Ubuntu
hello guys!
I wondering aside from linux mint what other linux
dsitribution that jdk already installed?
(fedora? openSuse or
other?)
thanks guy!
Ubuntu
hi guys im new to ubuntu and im trying to install the jdk from the
terminal and i keep getting an error. after i put in
apt-cache
search jdk and
sudo apt-get install sun-java6-jdk
sun-java6-jre
it says
E: Could not get lock
/var/lib/dpkg/lock - open (11: Resource temporarily unavailable) />E: Unable to lock the administration directory (/var/lib/dpkg/), is
another process using it?
again i just got ubuntu yesterday so
please put it in noob terms
Ubuntu
Java does not appear in the list of usable programs. I tried using the
'find programs online' button but it spit out an error (in a GUI text
box):
GDBus.Error:org.freedesktop.DBus.Python.xdg.Except
ions.ParsingError: Traceback (most recent call last):
File
"/usr/lib/python2.7/dist-packages/defer/__init__.py", line
489, in _inline_callbacks
result = gen.send(result)

File
"/usr/lib/python2.7/dist-packages/sessioninstaller/core.py",
line 1030, in _install_mime_types
path))
File
"/usr/lib/python2.7/dist-packages/xdg/DesktopEntry.py", line
33, in __init__
self.parse(filename)
File &q
Ubuntu

I got every time failed to fetch for apt-get install default-jdk
and openjdk-6-jdk



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ca-certificates-java fontconfig fontconfig-config hicolor-icon-theme
icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx
icedtea-netx-common
java-common libasound2 libasyncns0 libatk-wrapper-java
libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libcairo2
libdatrie1
libflac8 libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
libgif4
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libice-dev libice6
libjasper1
libjpeg-turbo8 libjpeg8 libjson0 libogg0 libpango1.0-0 libpixman-1-0
libpthread-stubs0 libpthread-stubs0-dev libpulse0 libsm-dev libsm6
libsndfile1 libthai-data libthai0 libtiff4 libvorbis0a libvorbisenc2
libx11-dev libx11-doc libxau-dev libxcb-render0 libxcb-shm0
libxcb1-dev
libxcomposite1 libxcursor1 libxdamage1 libxdmcp-dev libxfixes3
libxft2
libxi6 libxinerama1 libxrandr2 libxrender1 libxt-dev libxt6 libxtst6
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
shared-mime-info
ttf-dejavu-core ttf-dejavu-extra tzdata-java x11-common
x11proto-core-dev
x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
default-jre equivs libasound2-plugins libasound2-python
librsvg2-common gvfs
libjasper-runtime ttf-baekmuk ttf-arphic-gbsn00lp
ttf-arphic-bsmi00lp
ttf-arphic-gkai00mp ttf-arphic-bkai00mp pulseaudio libxcb-doc
openjdk-6-demo
openjdk-6-source visualvm icedtea-plugin libnss-mdns sun-java6-fonts
fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei
ttf-wqy-zenhei
ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts
ttf-bengali-fonts
The following NEW packages will be installed:
ca-certificates-java fontconfig fontconfig-config hicolor-icon-theme
icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx
icedtea-netx-common
java-common libasound2 libasyncns0 libatk-wrapper-java
libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libcairo2
libdatrie1
libflac8 libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
libgif4
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libice-dev libice6
libjasper1
libjpeg-turbo8 libjpeg8 libjson0 libogg0 libpango1.0-0 libpixman-1-0
libpthread-stubs0 libpthread-stubs0-dev libpulse0 libsm-dev libsm6
libsndfile1 libthai-data libthai0 libtiff4 libvorbis0a libvorbisenc2
libx11-dev libx11-doc libxau-dev libxcb-render0 libxcb-shm0
libxcb1-dev
libxcomposite1 libxcursor1 libxdamage1 libxdmcp-dev libxfixes3
libxft2
libxi6 libxinerama1 libxrandr2 libxrender1 libxt-dev libxt6 libxtst6
openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
shared-mime-info ttf-dejavu-core ttf-dejavu-extra tzdata-java
x11-common
x11proto-core-dev x11proto-input-dev x11proto-kb-dev
xorg-sgml-doctools
xtrans-dev
0 upgraded, 78 newly installed, 0 to remove and 3 not upgraded.
Need to get 25.3 MB/61.7 MB of archives.
After this operation, 180 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main
openjdk-6-jre-headless amd64 6b24-1.11.5-0ubuntu1~12.04.1 [25.3 MB]
Fetched 25.3 MB in 4s (5325 kB/s)
Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-headless_6b24-1.11.5-0ubuntu1~12.04.1_amd64.deb
Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?


thanks for you help

Ubuntu

I'm trying to run a TeamCity (default) build agent with 32-bit java
on ubuntu 64-bit, I have created a [TeamCity]/bin/setenv.sh what
contains:



JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun


That works fine running the server with 32-bit jre, but not for the
agent: I've tried these lines in
[buildAgent]/conf/buildAgent.properties



JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun
JRE_HOME=/usr/lib/jvm/ia32-java-6-sun/jre


and also a '[buildAgent]/jre' link



[buildAgent]/jre -> /usr/lib/jvm/ia32-java-6-sun/jre/


when I do a '[TeamCity]/bin/runAll.sh start' I get this:



Using CATALINA_BASE:   /srv/TeamCity
Using CATALINA_HOME: /srv/TeamCity
Using CATALINA_TMPDIR: /srv/TeamCity/temp
Using JRE_HOME: /usr/lib/jvm/ia32-java-6-sun
Using CLASSPATH:
/srv/TeamCity/bin/bootstrap.jar:/srv/TeamCity/bin/tomcat-juli.jar
Starting TeamCity build agent...
Java executable is found in '/usr/bin/..'.
Starting TeamCity Build Agent Launcher...
Agent home directory is /srv/TeamCity/buildAgent
Current Java runtime version is 1.6
Lock file: /srv/TeamCity/buildAgent/logs/buildAgent.properties.lock
Using no lock
Done [16436], see log at ../logs/teamcity-agent.log


As you can see from the output, the server is using 32-bit jdk, but
the build agent is running the java found in '/usr/bin' (which is
64-bit in my case).



Closer inspection of the '[buildAgent]/bin/findJava.sh', it looks
like the script runs a 'which java' and finds the default system java
before it even tries any of the supplied args/folders. I think it
should find '[buildAgent]/jre' before the system java.



Whats the correct way to specify the java version to use for a
build agent, which may be a different version than the server?



Should I just modify findJava.sh to check its arguments before
checking the system path for java?

Network & Servers

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow