JAVA_HOME不存在,但Java仍在工作?! [英] JAVA_HOME doesnt exist but java is still working ?!!

查看:101
本文介绍了JAVA_HOME不存在,但Java仍在工作?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,其中我需要在jre目录中添加文件(rxtxcomm的文件),以获取该目录,我正在考虑使用环境变量,但是当我在PC上查看它们时(手动),我无法找到JAVA_HOME ..虽然java程序,编译器,jmf,一切都正常..当我没有JAVA_HOME时它们怎么起作用?还有另一种无需添加文件即可使用rxtxcomm的方法吗? (我的意思是说在开发之后,当我想在除用于开发的那台机器之外的另一台机器上运行它时)

正在使用Windows XP SP3
谢谢.

i am writing a program where i need to add files in the jre directory ( files for the rxtxcomm) , to get the directory i was thinking of using the environment variables but when i looked them on my pc (manually ) i couldnt find the JAVA_HOME .. although java programs , compilers , jmf , every thing is working perfect .. how come they work when i dont have the JAVA_HOME ? also is there another way to use rxtxcomm without having to add the files ? ( i mean after development of course when i want to run it on another machine other than the one am using for development )

am using windows xp sp3
thank you .

推荐答案

JAVA_HOME用于明确地指示JRE的位置.如果它已经在您的PATH列表中,则无需进行设置.有一些东西确实需要它.例如,Tomcat.

当您说要在jre目录中添加文件"时,是指导入类吗?它们在构建清单中定义,您的IDE应该为它们管理.
JAVA_HOME is used to indicate explicitly where the JRE is located. If it is already on your PATH list the you should''t need to set it up. There are some things, Tomcat for example, that do require it.

When you say you want to ''add files in the jre directory'' are you refering to importing classes? They are defined in the build manifest which your IDE should mmanage for you.


这篇关于JAVA_HOME不存在,但Java仍在工作?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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