Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms
Questions tagged [java]
1835 questions
5
votes
2 answers
Create tomcat war file from static web dir
I created a simple web application that consists of a dir with html, css, js. No server code. For reasons complicated to explain, my administrator insists on turning it into a .war file, so that it can easily be deployed on tomcat. Again, the…

Jeroen Ooms
- 2,239
- 8
- 34
- 51
5
votes
1 answer
Automatic updating of newer JRE on GNU/Linux
How can a GNU/Linux machine be set up to automatically update a newer version of the Java Runtime Environment (JRE)? The difficulty is wanting to use a newer version of Java (Java 7, at present) and also be reasonably up to date with bugfixes,…

Raedwald
- 191
- 1
- 11
5
votes
2 answers
Tomcat ClassNotFoundException after switching from openjdk to sun java
We switched our java version from openjdk jre 1.7 to sun jre 1.7 and now starting tomcat gives the following errors:
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener
at…

gAMBOOKa
- 999
- 6
- 19
- 34
5
votes
2 answers
PermGen error in Java, while memory usage seems low
Java application dies from time to time with PermGen space error, but when I look at the
memory usage it seems low from what I can tell.
It is a Tomcat application, plus there is SOLR server running (under the same tomcat).
JVM params in…

serg
- 245
- 1
- 3
- 7
5
votes
1 answer
"runas" or "sudo" equivalent on AS400 IBM iSeries
I'm trying to invoke a program to run as another user (by getting input user/pwd) in AS400 OS using Java. Like runas in Windows or sudo in Unix — what can we do in AS400 OS?
I am able to invoke basic Unix commands like find, cd, ls etc. through Java…

AkD
- 161
- 3
5
votes
5 answers
How can I monitor memory usage for a windows-based JVM and trigger an alert if it gets too high?
I have an app that runs as a JVM in Windows 2008. I'd like to monitor it's memory usage and be sent an email if/when memory usage reaches a specific threshold. Is there a free utility or method for doing this?

Mike B
- 11,871
- 42
- 107
- 168
5
votes
2 answers
Tomcat directly serve static (css, js) files shared by multiple applications
I'm using the ExtJS framework which has a bulk of js and css files that are used for all apps. I intend to share these between a number of web applications (different war files).
For this reason I would like to serve ExtJS js and css directly from…

Joseph Victor Zammit
- 171
- 1
- 1
- 6
5
votes
3 answers
Virtualbox HTTP load testing, host CPU overload issues
I'm doing HTTP load testing benchmarks (using Apache Benchmark and Siege) on a small Java EE 1.7.0 / Tomcat 7.0.26 application running on a Debian Squeeze 6.0.4 x64 virtualized with Virtualbox 4.1.8. The computer host is Ubuntu 11.10 x64.
I've…

aschuler
- 175
- 3
- 12
5
votes
3 answers
Java Runtime Environement on Windows 7, disable "Enable the next-generation Java Plug-in"
Starting from jre 1.6u10, browser integration uses a so-called "next-generation plugin".
Some old applications are not compatible with it, and (on windows) it could be disabled in control panel, java, Advanced, Java Plug-in, remove the check from…

AgostinoX
- 181
- 2
- 13
5
votes
3 answers
Tomcat - Spring Framework - MySQL, Load balancing design
Lets say I have Spring Framework App that is running on Tomcat and uses MySQL database:
What would be the best solution in this instance that would allow for sociability (price/performance/integration time)?
More precisely: What would be on the Web…

MatBanik
- 379
- 3
- 7
- 28
5
votes
3 answers
What are the best practices for monitoring and alerting for low level JVM metrics?
I'm looking to set up monitoring and alerting for java server based app and want to find some best practices for monitoring JVM specific metrics and for designing alerts based on those metrics.
So what are the key JVM metrics to monitor? Some…

Tim
- 1,879
- 3
- 18
- 16
5
votes
4 answers
What issues do you need to check for deploying a java application on linux?
What issues should be specifically checked for when deploying a server application written in Java (without any specific platform dependencies) that was written and tested on Windows.
Two that I know of:
Case sensitive file names
Available fonts

Yishai
- 708
- 1
- 6
- 15
5
votes
3 answers
Setting Java Runtime setting for all users on a client PC
We have a problem with a java application running out of memory. Our (Windows XP) client PCs have JRE 1.6 version 18 installed. I want to increase the -Xmx runtime parameter for the JRE to 512M but I can't seem to set this for all users. When I log…

steviey
- 53
- 1
- 1
- 3
5
votes
2 answers
Java: Tomcat slow serving static files?
I'm running an instance of Apache Tomcat (5.5) on a Windows 2008 platform. I think I'm seeing an issue related to concurrent file access / locking.
When the number of concurrent HTTP threads is increased beyond the default setting (150), I see…

Michael
- 325
- 5
- 13
5
votes
4 answers
apt-get problem and hang. DPKG was interrupted error afterwards
When I attempt to install a package on my ubuntu(10.10) server on amazon ec2 with update-alternatives" for the JRE, apt-get doesn't respond anymore.
I've been waiting now for 20 minutes on this hang with this line of text:
update-alternatives:…

Noel
- 51
- 1
- 2