linux系统,java运行程序总是自动停止

不知道是怎么回事,
TERM trapped. Shutting down.
STATUS | wrapper | 2011/03/17 18:08:50 | <-- Wrapper Stopped
STATUS | wrapper | 2011/03/17 18:09:01 | --> Wrapper Started as Daemon
STATUS | wrapper | 2011/03/17 18:09:01 | Launching a JVM...
INFO | jvm 1 | 2011/03/17 18:09:02 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2011/03/17 18:09:02 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2011/03/17 18:09:02 |
INFO | jvm 1 | 2011/03/17 18:09:02 | WrapperSimpleApp: Unable to locate the class service.MainService: java.lang.ClassFormatError: service.MainService (unrecognized class file version)
INFO | jvm 1 | 2011/03/17 18:09:02 |
INFO | jvm 1 | 2011/03/17 18:09:02 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2011/03/17 18:09:02 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
INFO | jvm 1 | 2011/03/17 18:09:02 |
INFO | jvm 1 | 2011/03/17 18:09:02 | Where:
INFO | jvm 1 | 2011/03/17 18:09:02 | app_class: The fully qualified class name of the application to run.
INFO | jvm 1 | 2011/03/17 18:09:02 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 1 | 2011/03/17 18:09:02 | application.
STATUS | wrapper | 2011/03/17 18:09:03 | <-- Wrapper Stopped

配置文件看不出什么东东。

试试
javac -version

java version

如果jdk没有问题,重新编译一下发布再试试。

[quote]Unable to locate the class service.MainService: java.lang.ClassFormatError: service.MainService (unrecognized class file version)
[/quote]

感觉是存在jdk版本不一致编译的文件导致,先确认一下。

[quote]INFO | jvm 1 | 2011/03/17 18:09:02 | [color=red]WrapperSimpleApp: Unable to locate the class service.MainService: java.lang.ClassFormatError: service.MainService (unrecognized class file version) [/color]INFO | jvm 1 | 2011/03/17 18:09:02 |
INFO | jvm 1 | 2011/03/17 18:09:02 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2011/03/17 18:09:02 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
INFO | jvm 1 | 2011/03/17 18:09:02 |
INFO | jvm 1 | 2011/03/17 18:09:02 | Where:
INFO | jvm 1 | 2011/03/17 18:09:02 | app_class: The fully qualified class name of the application to run.
INFO | jvm 1 | 2011/03/17 18:09:02 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 1 | 2011/03/17 18:09:02 | application.
STATUS | wrapper | 2011/03/17 18:09:03 | <-- Wrapper Stopped [/quote]

红色字体部分应该是错误提示。

服务器端 敲入 which java 看看环境变量设置的是不是JDK1.6的。

环境变量设置正确不?

到这个目录下面看看java -version 看看jdk 的版本。

具体的linux下解决这个问题的办法,可以参考:
http://hulefei29.iteye.com/blog/781222

本地测试机器是什么系统

windows 还是linux?

/etc/profile 贴上来看看吧。

定位这个问题,可以从客户那里的red hat Enterprise Linux Server release5.3(Tikanga) 的jdk版本和环境变量设置即profile文件开始定位。

因为对你的环境不是很熟悉,只可以跟你说一下思路。

more profile 一下。

profile 是一个文件。

这个是客户机器上的配置?

java 程序是怎么运行,通过shell文件?

我这里上不了QQ呀,痛苦。

直接在客户的那台机器上进行编译看看吧。

如果还是不行,可能更操作系统有关系吧。