如何在窗口注册表中设置类路径 [英] How to set the classpath in window Registry

查看:74
本文介绍了如何在窗口注册表中设置类路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai Guys。

我正在开发一个s / w。我想使用Java程序设置类路径,它设置类路径。请你帮我Plzzzzzz。


联系人:< Removed>

Hai Guys.
I am Developing a s/w. i want to set the classpath using Java Program which sets the class path.can u please help me Plzzzzzz.

Contact: <Removed>

推荐答案

欢迎来到TSDN。


不要使用你的电子邮件来提出编码请求。

u可以创建一个本机进程使用 Runtime.getRuntime()。exec()


请查看它的规格

如果有任何问题与你的代码有关那么专家就来纠正您的密码。

祝您好运。


亲切的问候。

dmjpro。
Welcome to TSDN.

don''t use ur email to make request for coding.
u can create a native process using Runtime.getRuntime().exec()

plz look at it''s specification
if anything worng with ur code then experts r here to correct ur code.
best of luck.

kind regards.
dmjpro.



Hai Guys。

我正在开发为/ w。我想使用Java程序设置类路径,它设置类路径。请你帮我Plzzzzzz。
Hai Guys.
I am Developing a s/w. i want to set the classpath using Java Program which sets the class path.can u please help me Plzzzzzz.



你永远不想那样做。如果您分发.jar文件,请在其

清单文件中设置类路径。当你的Java程序运行时太晚无法设置环境

classpath变量。而且你想要远离任何注册表。


亲切的问候,


Jos

You never want to do that. If you distribute a .jar file set the classpath in its
manifest file. When your Java program runs its too late to set an environment
classpath variable anyway. And you want to stay far far away from any registry.

kind regards,

Jos


你是正确但我想在注册中设置Permanantl。

如果我正在使用Runtime,它会为Java设置。所以它不会明确地设置在

Windows Classpath(没有AUTOEXEC批处理文件)
You are Correct But i want to set Permanantl in Register.
If i am using Runtime it sets for the Java.So it wont set parmanantly in
Windows Classpath(Without AUTOEXEC Batch File)


这篇关于如何在窗口注册表中设置类路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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