Websphere Liberty 8.5:设置Java类路径 [英] Websphere Liberty 8.5: Setting Java classpath

查看:380
本文介绍了Websphere Liberty 8.5:设置Java类路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Websphere Liberty 8.5。我的应用程序从文件系统中读取一些通过Java CLASSPATH获取的文件,我似乎无法找到将文件系统中的目录附加到CLASSPATH Liberty读取的方法。我已经尝试过手动更改JAVA_CMD和JAVA_DEBUG,但都没有。

I am running Websphere Liberty 8.5. My application reads some files from the file system that are obtained via the Java CLASSPATH and I can't seem to find a way to append a directory from the file system to the CLASSPATH Liberty reads from. I've tried manually changing JAVA_CMD and JAVA_DEBUG but none of them take.

有谁知道这是怎么回事?

Does anyone know how this is possible?

推荐答案

无法修改JVM应用程序类路径(通常通过-classpath JVM参数或CLASSPATH环境变量指定)。我建议使用< library> 为您的应用程序提供资源可见性。如果您需要目录,则应使用< library>< folder dir =.../>< / library>

It is not possible to modify the JVM application classpath (normally specified via the -classpath JVM argument or the CLASSPATH environment variable). I would recommend using a <library> to give your applications visibility to the resources. If you need a directory, you should use <library><folder dir="..."/></library>.

(另外,修改wlp / bin脚本或设置那些内部脚本变量不是受支持的外部。)

(As an aside, modifying the wlp/bin scripts or setting those "internal" script variables is not a supported external.)

这篇关于Websphere Liberty 8.5:设置Java类路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆