gpt4 book ai didi

java - Java中的类路径是什么?只与Java有关吗? C# 中有类路径吗?

转载 作者:行者123 更新时间:2023-12-01 18:45:14 24 4
gpt4 key购买 nike

我们在java中有类路径吗?它是什么?

C# 中也有类路径吗?如果不是,C# 中什么相当于类路径?

最佳答案

来自PATH and CLASSPATH

路径

The PATH environment variable is a series of directories separated by semicolons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should have only one bin directory for the JDK in the path at a time (those following the first are ignored), so if one is already present, you can update that particular entry.

The following is an example of a PATH environment variable:

C:\Java\jdk1.7.0\bin;C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem

类路径

The CLASSPATH variable is one way to tell applications, including the JDK tools, where to look for user classes. (Classes that are part of the JRE, JDK platform, and extensions should be defined through other means, such as the bootstrap class path or the extensions directory.)

所以CLASSPATH仅特定于java

关于java - Java中的类路径是什么?只与Java有关吗? C# 中有类路径吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59853306/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com