Classpath
I am calling:
java -server -ea -Xdebug -Dgw.port=8080 -Xms512m -Xmx4048m -XX:MaxPermSize=384m -Dgw.devroot.dir=. -Dgw.server.mode=dev -Dgwdebug=true -Dsmoketest.properties=false,false,false -Didea.launcher.port=7532 -Didea.launcher.bin.path=C:/MyDir/idea/bin -Dfile.encoding=UTF-8 -classpath .;C:/MyDir/repository/org/apache/ant/ant/1.8.4/ant-1.8.4.jar;C:/MyDir/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar;C:/MyDir/repository/com/mytime/pl/pl/1.0-SNAPSHOT/pl-1.0-SNAPSHOT.jar;C:/CC804/repository/org/mortbay/jetty/start/6.1.23/start-6.1.23.jar;C:/Mydir/modules/configuration/out/classes;C:/CC804/idea/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain
I am receiving the following error:
Error: Could not find or load main class com.intellij.rt.execution.application.AppMain
Upon further investigation, accessing the current thread's classloader and retrieving the loader URL I find the classpath has changed:
>>>>>>class URLS for this class : [file:/C:/MyDir/, file:/C:/MyDir/repository/org/apache/a
nt/ant/1.8.4/ant-1.8.4.jar, file:/C:/MyDir/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar, file:/
C:/myDir/repository/com/mytime/pl/pl/1.0-SNAPSHOT/pl-1.0-SNAPSHOT.jar, file:/C:/MyDir/repository/org/mortbay/jetty/start/6.1.
23/start-6.1.23.jar, file:/C:/MyDir/modules/configuration/out/classes/, file:/C:/CC804B/.idea/lib/idea_rt.jar]
It seems to associated with the .idea directory. When it is removed, all is well. I am suspecting further, it is associated with the .idea/settings/system/caches folder
Any ideas?
Please sign in to leave a comment.
Could you please share a sample project and the exact steps to reproduce it?