Get error when compiling.
已回答
Hello. It is my first post here so I hope it is in right place.
I get this error when I run my app.java class inside IntelliJ 2022.3. The error or message wasn't there before.
/Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=50425:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath /Users/farhad/IdeaProjects/JDBC_Assignment/target/classes:/Users/farhad/.m2/repository/com/mysql/mysql-connector-j/8.0.31/mysql-connector-j-8.0.31.jar se.lexicon.App

What have I done wrong ?
Thanks in advance !
请先登录再写评论。
Your app has compiled and ran without errors (exit code 0). There is no issue with compilation or running on the IDE side. There may be a problem with your code/logic if it doesn't work as you would expect. https://stackoverflow.com/ may be a better place to get help with the coding issues.
Thanks for the answer. It was not a compiling issue, as you wrote. But I had some issue with JDK which is solved now by reinstalling java.