Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Exporting Old Version(Im trying to export a project to a JAR File but it export an old version of my code)
Exporting Old Version [message #1840032] Mon, 05 April 2021 16:24 Go to next message
Israel Duy is currently offline Israel DuyFriend
Messages: 3
Registered: April 2021
Junior Member
When I export the projecto to a JAR it works but it export an old version of my code for example:
Old Version:
System.out.println("Hellow World");
New Version:
System.out.println("Hellow World");
System.out.println("Version 2");
and then when I export the project it works and I run the JAR it throws me just
"Hellow World" not "Hellow World Version 2".
Someone can help me to know why it happens or how to solve it?
Re: Exporting Old Version [message #1840043 is a reply to message #1840032] Tue, 06 April 2021 06:15 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I can think of perhaps ten different reasons why almost all down to user trouble; you are not doing what you think you are doing. The easiest way to debug it is to delete the JAR file and confirm that you have killed the old program before recreating and seeing whether you have a new one. If not delete a *.java file to discover how many *.java files you have.

Regards

Ed Willink
Re: Ed Willink [message #1840090 is a reply to message #1840043] Tue, 06 April 2021 14:52 Go to previous message
Israel Duy is currently offline Israel DuyFriend
Messages: 3
Registered: April 2021
Junior Member
thanks for your answer, now I feel a little bit dumb because I saw that I was trying to export the wrong code not the one wich I wanted :c
Previous Topic:[Help] (SWT:5152): Gtk-WARNING ?
Next Topic:Grad Project not showing up in Debug Configurations.../Create
Goto Forum:
  


Current Time: Thu Apr 25 09:28:04 GMT 2024

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top