- 浏览: 28984 次
- 性别:
- 来自: 济南
最新评论
jira error: Neither the JAVA_HOME nor the JRE_HOME environment variable is defin
error:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat。只要在setclasspath.bat的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径自己修改
#!/bin/sh
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 467182 2006-10-23 23:47:06Z markt $
# -----------------------------------------------------------------------------
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JRE_HOME=/usr/lib/jvm/java-6-sun/jre
# First clear out the user classpath
CLASSPATH=
# Make sure prerequisite environment variables are set
if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
# Bugzilla 37284
if $darwin && [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home" ]; then
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home"
else
echo "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined"
echo "At least one of these environment variable is needed to run this program"
exit 1
fi
fi
if [ -z "$JAVA_HOME" -a "$1" = "debug" ]; then
echo "JAVA_HOME should point to a JDK in order to run in debug mode."
exit 1
fi
if [ -z "$JRE_HOME" ]; then
JRE_HOME="$JAVA_HOME"
fi
# If we're running under jdb, we need a full jdk.
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
if [ "$os400" = "true" ]; then
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
else
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
fi
fi
if [ -z "$BASEDIR" ]; then
echo "The BASEDIR environment variable is not defined"
echo "This environment variable is needed to run this program"
exit 1
fi
if [ ! -x "$BASEDIR"/bin/setclasspath.sh ]; then
if $os400; then
# -x will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
eval
else
echo "The BASEDIR environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
fi
# Set the default -Djava.endorsed.dirs argument
JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed
# Set standard CLASSPATH
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
CLASSPATH="$JAVA_HOME"/lib/tools.jar
fi
# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = "Darwin" ]; then
OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
if [ -d "$OSXHACK" ]; then
for i in "$OSXHACK"/*.jar; do
JIKESPATH="$JIKESPATH":"$i"
done
fi
fi
# Set standard commands for invoking Java.
_RUNJAVA="$JRE_HOME"/bin/java
if [ "$os400" != "true" ]; then
_RUNJDB="$JAVA_HOME"/bin/jdb
fi
_RUNJAVAC="$JAVA_HOME"/bin/javac
转自:http://linghongli.iteye.com/blog/615303
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat。只要在setclasspath.bat的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径自己修改
#!/bin/sh
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 467182 2006-10-23 23:47:06Z markt $
# -----------------------------------------------------------------------------
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JRE_HOME=/usr/lib/jvm/java-6-sun/jre
# First clear out the user classpath
CLASSPATH=
# Make sure prerequisite environment variables are set
if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
# Bugzilla 37284
if $darwin && [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home" ]; then
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home"
else
echo "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined"
echo "At least one of these environment variable is needed to run this program"
exit 1
fi
fi
if [ -z "$JAVA_HOME" -a "$1" = "debug" ]; then
echo "JAVA_HOME should point to a JDK in order to run in debug mode."
exit 1
fi
if [ -z "$JRE_HOME" ]; then
JRE_HOME="$JAVA_HOME"
fi
# If we're running under jdb, we need a full jdk.
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
if [ "$os400" = "true" ]; then
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
else
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
fi
fi
if [ -z "$BASEDIR" ]; then
echo "The BASEDIR environment variable is not defined"
echo "This environment variable is needed to run this program"
exit 1
fi
if [ ! -x "$BASEDIR"/bin/setclasspath.sh ]; then
if $os400; then
# -x will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
eval
else
echo "The BASEDIR environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
fi
# Set the default -Djava.endorsed.dirs argument
JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed
# Set standard CLASSPATH
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
CLASSPATH="$JAVA_HOME"/lib/tools.jar
fi
# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = "Darwin" ]; then
OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
if [ -d "$OSXHACK" ]; then
for i in "$OSXHACK"/*.jar; do
JIKESPATH="$JIKESPATH":"$i"
done
fi
fi
# Set standard commands for invoking Java.
_RUNJAVA="$JRE_HOME"/bin/java
if [ "$os400" != "true" ]; then
_RUNJDB="$JAVA_HOME"/bin/jdb
fi
_RUNJAVAC="$JAVA_HOME"/bin/javac
转自:http://linghongli.iteye.com/blog/615303
发表评论
-
Ubuntu共享WiFi(AP)给Android方法【修正版】(转)
2013-04-03 11:42 3129Ubuntu共享WiFi(AP)给Android方法【修 ... -
UBUNTU12.04手动安装eclipse4.2
2012-11-07 12:45 8861. 先下载eclipse2.解压 ... -
Ubuntu12.04安装sunjdk1.6
2012-11-07 12:30 664因为一些原因,Sun Java 无法从Ubuntu的软件 ... -
ubuntu12.04无法安装Adobe AIR
2012-09-11 21:31 714ubuntu12.04无法安装Adobe AIR ... -
ubuntu txt乱码解决
2012-09-05 10:59 770gsettings set org.gnome.gedit.p ... -
ubuntu11.10 下eclipse提示背景黑色的修改
2012-05-06 15:23 977[size=x-large]修改下系统主题的tooltip 背 ... -
ubuntu11.10 How can I install Adobe AIR?
2012-05-03 18:38 118518 down vote I need Air for abo ... -
ubuntu10.10安装谷歌拼音输入法
2012-05-02 20:46 8401、安装scim: sudo apt-get install ... -
一个装桌面版webqq的方式,不依赖于浏览器,
2012-04-23 16:25 1065Q+ Web桌面化:pyWebQQ pyWebQQ是 sq ... -
Ubuntu 11.10 把最小化、最大化和关闭按钮放到右边
2012-04-23 10:22 7721、首先安装gconf-editor: sudo apt-ge ... -
ubuntu下eclipse的tomacat配置
2012-04-22 02:10 710今天晚上将linux下的tomacat配置了一下,其实主要 ... -
Ubuntu中手工安装Eclipse
2012-04-22 01:17 8341. 下载 2. 解压缩 使用t ... -
ubuntu11.10下的jdk1.7环境配置
2012-04-21 21:45 1155咱也不废话了,直接说 ...
相关推荐
阿尔弗雷德·吉拉(Alfred Jira)搜索 Alfred工作流程可快速搜索您的Jira问题 :magnifying_glass_tilted_right: 安装 从下载最新的工作流。 您将收到有关Alfred未来更新的通知。 配置 系统将要求您使用以下值配置...
标题中的“Unknown system variable 'storage_engine'”是一个MySQL数据库错误信息,表示系统未找到名为'storage_engine'的变量。这个变量在MySQL 5.7版本中被弃用,替换为'innodb_storage_engine'。这通常是由于旧...
**JIRA工具详解** JIRA是一款由Atlassian公司开发的项目与任务管理工具,尤其以其强大的缺陷跟踪(bug tracking)功能而闻名。本教程将深入探讨JIRA在bug跟踪、项目管理和工具使用上的核心概念。 ### 一、JIRA基础...
export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH ``` - 使配置生效: ```bash source ~/.bashrc ``` - 验证JDK是否安装成功:...
export PATH=$PATH:/opt/jdk1.6.0_37/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOME/bin ``` - 保存文件并应用更改:`source /etc/profile` - 验证JDK安装:`java -version` 1.3 测试JDK配置: - 编写一个简单...
commitlint-jira commitlint-jira检查您的提交消息是否符合Jira常规提交格式。 有关技巧和您可以阅读此入门。安装依赖项npm install --save-dev @commitlint/cli commitlint-plugin-jira-rules commitlint-config-...
适用于jira4.4 jira_crack.zip(JIRA4破解补丁) 使用说明:http://blog.csdn.net/ctbinzi/archive/2010/11/06/5991892.aspx
Jira Nextcloud 应用程序 :blue_square: Jira 集成提供了一个仪表板小部件,显示您的重要通知,一个统一的搜索提供程序,用于搜索与您分配的问题相关的最近活动的问题和通知。 :wrench: 配置 用户设置 帐户配置...
### JIRA工作流详解 #### 一、工作流概述 工作流是指问题在其生命周期中经历的一系列步骤和阶段的变化过程。这种变化往往反映了实际业务流程的处理方式。在JIRA中,通过定义一系列状态来模拟问题的整个生命周期,...
标题 "JIRA到Matrix机器人_TypeScript_下载.zip" 暗示了这是一个使用TypeScript编写的项目,目的是将数据从JIRA(一个流行的项目管理和问题跟踪工具)集成到Matrix(一个去中心化的通信网络)。这个压缩包可能包含了...
Java_Jira所需Jar包是开发与Atlassian Jira系统交互的应用程序时不可或缺的依赖库。Jira是一款流行的项目管理和问题追踪工具,广泛用于软件开发团队。为了在Java环境中与Jira进行集成,开发者通常需要引入特定的Jira...
(模板)JIRA需求号_JIRA需求名称_用例_平台_李银池_20200101.xmind
吉拉 用于外壳程序脚本的JIRA ...jira:issue_add_comment " AA-999 " " Hello World " 检查问题是否为子任务: if [[ $( issue_is_subtask " AA-999 " ) == " true " ]] ; then echo " is subtask " if 获取问
CLASS_PATH="$JAVA_HOME/lib:$JAVA_HOME/jre/lib" PATH=".:$PATH:$JAVA_HOME/bin" export JAVA_HOME CLASS_PATH PATH ``` 3. 使更改立即生效。 ```bash source /etc/profile ``` 4. **验证JDK安装**: ...
Atlassian JSON Atlassian json的备份存档。 Atlassian Downloader可。支持产品: 产品当前的档案EAP :check_mark_button: :check_mark_button: :check_mark_button: :check_mark_button: :check_mark_button: :...
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH export JIRA_HOME=/usr/local/jira/atlassian-jira/ export JIRA_WEBAPP=/usr/local/jira/ ``` 3. **验证JDK安装** 重新加载`/etc/profile...
1.停止JIRA服务 2.JIRA 基本中文插件: a.下载插件文件 jira-lang-zh_CN-4.4.jar b.将文件名称修改为 jira-lang-zh_CN-JIRA版本号.jar。 如果你使用的是JIRA4.4.1, 就将文件名修改为 jira-lang-zh_...
GreenHopper V5.3破解 已验证
《Jira安装指南》 1. 引言 本指南旨在提供详尽的Jira安装步骤,以便在项目开发过程中实现高效的任务管理、项目计划、需求跟踪和错误追踪。目标受众为所有系统管理员,无论您是初次接触还是有经验的Jira用户,此...
JIRA Brancher将在$HOME/.jirabrancher存储3个值: JIRA_HOST -JIRA服务器的主机名JIRA_USER您的JIRA帐户的用户名JIRA_BASICAUTH用于连接到JIRA服务器的HTTP基本身份验证令牌在随后的运行中,您只需要提供一个JIRA...