我想在com.sun.jndi.ldap.LdapCtx
中放置一个断点,看看它是如何工作的,但是,我的程序运行的是Java 11,并且这个类对Eclipse是不可见的.如何配置项目,以便可以使用"Open Type"对话框打开这个类?有必要将项目转换为模块化吗?
我在项目属性中try 了"Java Build Path"->;"模块依赖项"->;Java命名->;"已配置的详细信息"->;"Exposed Package...":
- 套餐:com.sun.jndi.ldap
- 目标模块:全部-未命名
我try 了"exports"和"opens",但它并不能让我真正查看里面的类.
默认工作区JRE:采用OpenJDK/jdk-11.0.3.7-HotSpot
.classpath:.classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="javasource" />
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/com.mendix.json.jar" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/com.mendix.logging-api.jar" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/com.mendix.m2ee-api.jar" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/com.mendix.public-api.jar" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/javax.servlet-api.servlet.jar" />
<classpathentry kind="lib"
path="C:/Program Files/Mendix/9.5.1.27523/runtime/bundles/javax.websocket-api.websocket.jar" />
<classpathentry kind="output" path="deployment/run/bin" />
</classpath>
.project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ActiveDirectorySearch_main</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value><project>/deployment/run/componentbuild.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
ActiveDirectorySearch_main.Launch
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/ActiveDirectorySearch_main"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="M2EE_ADMIN_PASS" value="1"/>
<mapEntry key="M2EE_ADMIN_PORT" value="8090"/>
<mapEntry key="M2EE_CONSOLE_PATH" value="C:/Program Files/Mendix/9.5.1.27523/modeler/MendixConsoleLog.exe"/>
<mapEntry key="MX_INSTALL_PATH" value="C:/Program Files/Mendix/9.5.1.27523"/>
<mapEntry key="MXCONSOLE_BASE_PATH" value="C:/Users/basin/Documents/Mendix/ActiveDirectorySearch-main/deployment"/>
<mapEntry key="MXCONSOLE_RUNTIME_PATH" value="C:/Program Files/Mendix/9.5.1.27523/runtime"/>
<mapEntry key="MXCONSOLE_RUNTIME_PORT" value="8080"/>
<mapEntry key="MXCONSOLE_RUNTIME_LISTEN_ADDRESSES" value="*"/>
<mapEntry key="MXCONSOLE_SERVER_URL" value="http://127.0.0.1:8090/"/>
</mapAttribute>
<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;ActiveDirectorySearch_main&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;default/&gt;&#13;&#10;" typeId="org.eclipse.debug.core.containerType.default"/> </sourceContainers> </sourceLookupDirector> "/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="ActiveDirectorySearch_main" path="1" type="4"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Program Files/Mendix/9.5.1.27523/runtime/launcher/runtimelauncher.jar" path="3" type="2"/> "/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.mendix.container.boot.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="ActiveDirectorySearch_main"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.net.preferIPv4Stack=true -DMX_LOG_LEVEL=INFO -Djava.library.path="C:/Program Files/Mendix/9.5.1.27523/runtime/lib/x64;C:/Users/basin/Documents/Mendix/ActiveDirectorySearch-main/deployment/model/lib/userlib" -Dfile.encoding=UTF-8 -Djava.io.tmpdir="C:/Users/basin/Documents/Mendix/ActiveDirectorySearch-main/deployment/data/tmp""/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value=""C:/Users/basin/Documents/Mendix/ActiveDirectorySearch-main/deployment""/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="C:/Users/basin/Documents/Mendix/ActiveDirectorySearch-main/deployment"/>
</launchConfiguration>