How to set the jdk path in jcreator

user1429905 picture user1429905 · Jun 18, 2012 · Viewed 21.3k times · Source

I have installed jdk 1.7 in C:\jdk1.7.0 directory and JCreator in C:\Program Files directory. I set the path of correct jdk path in JCreator. But when I try to execute a java program in this I have shown the following messages:

          --------------------Configuration: <Default>--------------------
Error : Invalid path, "C:\Program Files\Java\jdk1.7.0_04\bin\javac.exe" -g -classpath C:\Users\USER\Documents -d C:\Users\USER\Documents C:\Users\USER\Documents\A.java 

What is the reason behind this ? Please tell me in a detail and also way to solve this problem .

Answer

Jos&#233; Rodrigo picture José Rodrigo · Sep 29, 2012

I solved this issues by deleting the previous Java profile in Configure->Options->JDK Profiles.

Delete everything in it and create a new fresh profile.