Question:
JCreator wont set the JDK home path....?
Michael
2010-05-27 22:21:59 UTC
I'm having a hard time with JCreator which I'm trying to set up for a class

every time i try to build a file it asks me to set the home path so i set it to the JDK in my program files but it still Isn't happy with that it keeps giving me this error message.

Error : Invalid path, "C:\Program Files (x86)\Java\jre6\bin\javac.exe" -g -classpath "C:\Users\Administrator\Documents\JCreator Files" -d "C:\Users\Administrator\Documents\JCreator Files" "C:\Users\Administrator\Documents\JCreator Files\Java0201.java"

I've gone to configure > options > JDK profiles but it dosent seem to help somebody please help me!
Three answers:
Light Cloud
2010-05-27 22:52:21 UTC
It's been a long time since I've used JCreator, so my memory is a bit fuzzy.



Although I'm not sure if it will work, one thing you could try is to reinstall JCreator. iirc, if you install JCreator AFTER having already installed the Java JDK, JCreator should be able to automatically locate the Java JDK.



EDIT: Also, it seems like you set your path to C:\Program Files (x86)\Java\jre6\bin\, but the JRE typically doesn't have javac.exe. The JRE contains only the runtime environment (which is java.exe). The JDK seems like a more appropriate path.
anonymous
2016-11-03 01:29:26 UTC
Jdk Home Directory
_anonymous_
2010-05-28 01:00:52 UTC
the path should point to the "bin" directory (but i mainly use NetBeans, so i don't know if this applies)



it should look like: C:\Program Files\JDK\bin


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...