Perhaps there should be a check at startup to check for $JAVA_HOME/lib/tools.jar and output a readable and useful message informing the user that they need to use the JDK, not the JRE. Small things like this will cutdown on repeat questions in this group. This problem has come up a number of times.
Perhaps a weekly FAQ posting. Pete Sascha Weinreuter wrote: > You cannot run IDEA with only the JRE installed. IDEA needs the full > JDK with tools.jar for the javac compiler, etc. > Point your JAVA_HOME to somewhere the JDK is installed > (something like c:\j2sdk1.4.0_01) and it will run. > > Hope this helps. > > -- > Sascha > > ----- Original Message ----- > From: "learn100" <[EMAIL PROTECTED]> > Newsgroups: jetbrains.intellij.eap.bugs > Sent: Sunday, July 14, 2002 8:58 PM > Subject: #635: Problems using Intellij - Help needed from Intellij users > > > >>Hi, >>1. My Java home has been set in the ontellij.bat using the following >> > command > >> SET JAVA_HOME=c:\java\j2re1.4.0_01 >>2. Intellij has been installed in c:\java\intellij635 >> >>When I launch Intellij, it throws an error message. If I try to create a >> > new > >>project it throws another error message. Basically I am not able to use >>Intellij. Can some body pls let me know as what I am doing wrong, and how >> > to > >>fix it. >> >>Thanks in advance. >>AP >>-------------------------------------------------------------------------- >> > -- > >>---------------------------------------------------------------------- >>Log file has the following info. >>-------------------------------------------------------------------------- >> > -- > >>---------------------------------------------------------------------- >>2002-07-14 13:33:00,342 [ 0] INFO - >> >> >> >> >> >> >> >> >> >> > com.intellij.idea.Main - --------------------------------------------------- > >>--- IDEA STARTED ------------------------------------------------------ >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>Error during dispatching of >> >> > java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.idea > >>.g@d51a54,notifier=null,catchExceptions=false,when=1026671651498] on >>sun.awt.windows.WToolkit@b3ae5c >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>IntelliJ IDEA (Ariadna) 3.0 Build #635 >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>JDK: 1.4.0_01 >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>VM: Java HotSpot(TM) Client VM >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>Vendor: Sun Microsystems Inc. >>2002-07-14 13:34:11,857 [ 71515] ERROR - >> > com.intellij.ide.q - > >>OS: Windows XP >>2002-07-14 13:34:11,873 [ 71531] ERROR - >> > com.intellij.ide.q - > >>java.lang.NoClassDefFoundError: >> > com/sun/jdi/IncompatibleThreadStateException > >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Unknown Source) >> at com.intellij.openapi.components.a.a.a(a.java:167) >> at com.intellij.openapi.components.a.a.a(a.java:141) >> at com.intellij.idea.f.a(f.java:8) >> at com.intellij.openapi.project.b.m.a(m.java:125) >> at com.intellij.openapi.project.b.m.getDefaultProject(m.java:22) >> at com.intellij.ide.n.dx.v(dx.java:10) >> at com.intellij.ide.n.dx.p(dx.java:288) >> at com.intellij.ide.n.dx.<init>(dx.java:25) >> at com.intellij.ide.o.ba.a(ba.java:29) >> at com.intellij.idea.h.run(h.java:1) >> at com.intellij.idea.g.run(g.java:1) >> at java.awt.event.InvocationEvent.dispatch(Unknown Source) >> at java.awt.EventQueue.dispatchEvent(Unknown Source) >> at com.intellij.ide.q.a(q.java:9) >> at com.intellij.ide.q.dispatchEvent(q.java:18) >> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) >> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) >> at java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at java.awt.EventDispatchThread.pumpEvents(Unknown Source) >> at java.awt.EventDispatchThread.run(Unknown Source) >> > > > _______________________________________________ Eap-bugs mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-bugs
