How to set the jdk path in jcreator

五迷三道 提交于 2019-12-20 04:05:33

问题


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 .


回答1:


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.




回答2:


The error shows up when the following executable does not exist.

C:\Program Files\Java\jdk1.7.0_04\bin\javac.exe

Make sure that you have the jdk executable installed.




回答3:


Error : Invalid path, "C:\Program Files\bin\javac.exe" -g -classpath   
"C:\Users\HP PAVILION\Desktop\java" -d "C:\Users\HP PAVILION\Desktop\java"   
"C:\Users\HP PAVILION\Desktop\java\das.java"

Process completed.

Error: Could not find or load main class das

Process completed.



来源:https://stackoverflow.com/questions/11080815/how-to-set-the-jdk-path-in-jcreator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!