tag:blogger.com,1999:blog-8787458120527758499.post1306924012601542657..comments2023-11-19T21:22:01.770+01:00Comments on Herikstad Solutions: Eclipse opens .class instead of .javaUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8787458120527758499.post-48769321274814063052017-07-27T07:06:52.360+02:002017-07-27T07:06:52.360+02:00Java file was opening properly previously and I ha...Java file was opening properly previously and I have not made any changes then why it is opening class file. what is actual reason behind this?Anonymoushttps://www.blogger.com/profile/03361465497815340438noreply@blogger.comtag:blogger.com,1999:blog-8787458120527758499.post-89129455986072344412012-08-21T15:38:49.270+02:002012-08-21T15:38:49.270+02:00@Shrif your're right, that should do it. I'...@Shrif your're right, that should do it. I've noticed however that sometimes Eclipse needs a good restart to pick up on the changes you do.<br /><br />Your way keeps one from having to mess around in the file system and find the correct lines in the classpath file.<br /><br />Notice that in the Order and Export dialog in Eclipse, the source items will have folder icons just like in the project tree itself in Eclipse. Makes it easier to find the source items.Asmundhttps://www.blogger.com/profile/11516230343534925387noreply@blogger.comtag:blogger.com,1999:blog-8787458120527758499.post-89605831910786092192012-08-20T20:28:40.706+02:002012-08-20T20:28:40.706+02:00you can make it using eclipse it self without rest...you can make it using eclipse it self without restarting<br />right click on your project -> java build path -> order and export ->(select the type src) -> top ->okShady Shrif an Egyptian Software engineerhttps://www.blogger.com/profile/14329483579795605733noreply@blogger.comtag:blogger.com,1999:blog-8787458120527758499.post-91423632714411685422012-03-14T17:06:01.648+01:002012-03-14T17:06:01.648+01:00@SaNNyO: Difficult to say why it might not work, h...@SaNNyO: Difficult to say why it might not work, here are some ideas:<br><br />1. Are you sure you are editing the correct file? Make sure it's the one in the project you are looking at. :)<br />You can apparently also do these changes by right-clicking your project in Eclipse, select Properties, select Java Build Path, select the Order and Export tab, and then move the folders to the top using the 'Up' button.<br><br />2. A restart of Eclipse should catch any changes you do, but you might want to try to refresh the project too. Right-click the project and select 'Refresh'.<br><br />3. Maybe you don't have the source for the class/method you are trying to open. This could happen if it is an added library (JAR) or part of Java Core. Check out <a href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-source-attachment.htm" rel="nofollow">http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-source-attachment.htm</a> to see if you can add the source to your JARs.<br /><br><br />Also see <a href="http://stackoverflow.com/questions/4035400/classpath-build-order-changes" rel="nofollow">http://stackoverflow.com/questions/4035400/classpath-build-order-changes</a>Asmundhttps://www.blogger.com/profile/11516230343534925387noreply@blogger.comtag:blogger.com,1999:blog-8787458120527758499.post-24175427398282294932012-03-14T15:57:22.412+01:002012-03-14T15:57:22.412+01:00It's not working, all my scr kind entries is o...It's not working, all my scr kind entries is on the top. :(SaNNyOhttps://www.blogger.com/profile/02721040863115027114noreply@blogger.com