You are not logged in.
Hello archies,
please, can I install Tomcat server (no tomcat-native package) without OpenJDK? I using Oracle's JDK in my /opt directory
sudo pacman -S tomcat8
resolving dependencies...
:: There are 2 providers available for java-runtime>=7:
:: Repository extra
1) jre7-openjdk 2) jre8-openjdk
Enter a number (default=1):
I cannot choose another than 1 or 2
Some hints? Or just manual installation? Thanks
Linux bella 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 Intel
(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
nVidia GeForce GTS 250
Offline
I would probably go with a manual install because Tomcat is pretty self-contained anyway. But you could always install OpenJDK via the dependency and then remove it afterwards with pacman -Rdd. There's probably a way to tell pacman to ignore the dependency during install but I don't know how without googling. :-)
Offline
Thanks for reply Yes, I can uninstall it then but I like minimalistics systems with minimum packages and minimum bloat
That's the reason I using archlinux and not Bloatbuntu
It's only for internal development Spring JSP, so I can use glassfish server also
Thanks for the reply
Linux bella 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 Intel
(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
nVidia GeForce GTS 250
Offline
If it's for your own development box, I would recommend a manual install anyway so you can easily tweak configuration and start/stop/debug under your normal user account.
Offline
Tomcat packages require a java-environment. Packages for Oracle JVM do provide it. Just install one of theme. Manually installing a JVM is a bad idea.
Offline
@Wikimig: What do you mean please? What kind "one of theme"? Yes, I had installed Oracle JDK 1.8 in my /opt/jdk folder. But if I want install Tomcat, I must install also one of the openJDK package (1.7 or 1.8). But I have already JDK :-)
@Rob_H: Do you mean manual install of Tomcat?
Thanks
Linux bella 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 Intel
(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
nVidia GeForce GTS 250
Offline
And of course I have set my JAVA properties in .basrc and in .xinitrc also
cat ~/.bashrc
export JAVA_HOME=/opt/jdk1.8.0_11
export PATH=$PATH:/opt/jdk1.8.0_11/bin
export _JAVA_OPTIONS='-Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd_hbgr'
export JAVA_FONTS=/usr/share/fonts/TTF
Linux bella 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 Intel
(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
nVidia GeForce GTS 250
Offline
Yes, a manual install of Tomcat is what I meant.
Offline
I strongly advise you against manually installing software thare are provided as packages by your distro (either in official repos – tomcat*, OpenJDK – or AUR – Oracle JDK).
To sum up (and if you insist you do not want OpenJDK), if I were you I would:
1) Remove all the JAVA_HOME, and PATH variables you mention from ~/.bashrc and ~/.xinitrc (very important)
2) Install jre8-oracle and jdk8-oracle from AUR or from my repo. As these packages provide "java-environment" now you can…
3) Install tomcat8 from extra
4) Configure tomcat8 to use Oracle JVM à la systemd:
# cp /usr/lib/systemd/system/tomcat8.service /etc/systemd/system/
# vim /etc/systemd/system/tomcat8.service
In this last line you want to change
Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk
by
Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-8-oracle
Then start Tomcat 8 and check it is started with Oracle JVM by visiting http://localhost:8080/manager/status:
Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture Hostname IP Address
Apache Tomcat/8.0.11 1.8.0_20-b26 Oracle Corporation Linux 3.16.1-1-ARCH amd64 columbia 127.0.0.1
Last edited by Wikimig (2014-08-26 20:40:45)
Offline
BTW this is already explained in the wiki.
Offline