how to find my project's classpath?

hey guys. can smb in a simple manner explain how to see what is my classpath in intellij idea project? bc googling is worthless and theres no proper answer anywhere. can smb help me out? thx alot
8 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @bambyzas! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Peter Rader
Peter Rader6mo ago
A classpath is the location of libraries and single classes within an classloader. There are many classloader and this means there are many classpaths. There are some special classpaths like the System-Classpath and the Application-Classpath, etc.. You can also create a couple of Classloaders having their own classpath in the application at run-time. So what classpath do you mean?
dan1st
dan1st6mo ago
Classpath typically refers to the classpath at startup which is specified by --class-path Classes loaded at runtime via custom ClassLoaders are often not considered as part of the classpath
bambyzas
bambyzasOP6mo ago
hm, strange i dont see anything suspicious, but for some reason i keep getting shouted at bc one of my classes XmlParserUtil is not being recognized and i receive ClassNotFoundException
dan1st
dan1st6mo ago
Can you share the complete stack trace as well as your build configuration?
bambyzas
bambyzasOP6mo ago
dependencies {
xsd2java "com.sun.xml.bind:jaxb-xjc:2.2.6"
xsd2java "com.sun.xml.bind:jaxb-impl:2.2.6"
xsd2java "jakarta.xml.bind:jakarta.xml.bind-api:2.3.2"
xsd2java "org.glassfish.jaxb:jaxb-runtime:2.3.2"

implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springframework.security:spring-security-test'
implementation 'org.springframework.boot:spring-boot-devtools'

implementation 'io.springfox:springfox-swagger2:3.0.0' //:
implementation 'io.springfox:springfox-swagger-ui:3.0.0' //:2.9.2

implementation 'commons-codec:commons-codec:1.14' //:2.9.2
implementation 'org.apache.httpcomponents:httpclient:4.5.14'

compileOnly 'org.projectlombok:lombok:1.18.32'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testCompile group: 'junit', name: 'junit', version: '4.12'

}
dependencies {
xsd2java "com.sun.xml.bind:jaxb-xjc:2.2.6"
xsd2java "com.sun.xml.bind:jaxb-impl:2.2.6"
xsd2java "jakarta.xml.bind:jakarta.xml.bind-api:2.3.2"
xsd2java "org.glassfish.jaxb:jaxb-runtime:2.3.2"

implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'

implementation 'org.springframework.security:spring-security-test'
implementation 'org.springframework.boot:spring-boot-devtools'

implementation 'io.springfox:springfox-swagger2:3.0.0' //:
implementation 'io.springfox:springfox-swagger-ui:3.0.0' //:2.9.2

implementation 'commons-codec:commons-codec:1.14' //:2.9.2
implementation 'org.apache.httpcomponents:httpclient:4.5.14'

compileOnly 'org.projectlombok:lombok:1.18.32'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testCompile group: 'junit', name: 'junit', version: '4.12'

}
i use gradle. idk what to add more. maybe i missed smth
No description
No description
No description
dan1st
dan1st6mo ago
Are you running the application from IntelliJ?
JavaBot
JavaBot6mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server