title: How to edit .java files imported in Eclipse from a .jar file
body: <p>I have a question, perhaps it was already answered, but i didn't manage to find it and I appologize if the solution already exists (let me know if it is before deleting my thread).</p>
  
  <p>Problem is: 
  I have created a program on another PC and exported it from eclipse as a .jar file. It works on my main PC when I double click on it but when I import it in Eclipse I can't find the .java file. So i can't edit it.</p>
  
  <p>What I have done so far:</p>
  
  <ol>
  <li>In eclipse I have created a new empty project  </li>
  <li>I have right clicked,import, archive file, selected the .class files that eclipse sees, but when I am in the Project Explorer in Eclipse I can't find the .java file where the main is. I mean I can click run as a program and it works, but there is no .java file, only .class files. What am I doing wrong?</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/p8nzM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p8nzM.png" alt="enter image description here"></a></p>
  
  <p>That cranes.class should be cranes.java. At least on my other PC it is.
  Program works fine, but I can't edit it on my main PC. What am I doing wrong?</p>
  
  <p>Thanks and best regards</p>