This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: eclipse opens my class file but not my java file, why?
 
It's not a secret anymore!