aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse opens my class file but not my java file, why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse opens my class file but not my java file, why?" Watch "eclipse opens my class file but not my java file, why?" New topic
Author

eclipse opens my class file but not my java file, why?

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
I use the f4 key to show the class hierarchy. Before, I just double clicked the class in the hierarchy I was interested in and it opened the file (.java). Now, it opens the file but as a .class extension. I can still see the file correctly, but it doesn't let me update it. I have to go to the package explorer manually and open the file (with extension .java). Doing it this way it opens the java file correctly.
This all happened after I changed my libraries in the classpath (the order as well). How can I solve this issue?


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
fixed.. I mistakenly added one jar file to my path. That was causing the problem.
 
jQuery in Action, 2nd edition
 
subject: eclipse opens my class file but not my java file, why?