• Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse display HTML format --> JAR display TXT format  RSS feed

 
Ranch Hand
Posts: 34
1
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Extending on another query I have regarding loading html file once exported to executable-jar I have now managed to do that BUT I am getting different results when running it inside Eclipse and when exported to a executable JAR.



Just to be clear it works fine in eclipse but ones exported into a executable-jar the file (license-uk.html) is displayed as asci/txt only.

Any advise would be great.

Many Thanks
 
Ricardo Wagemaker
Ranch Hand
Posts: 34
1
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok problem solved and it turns out in Eclipse when exporting to executable-jar I had to select "Extract required libraries into generated JAR" and that fixed the problem

 
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good that you found a solution, but offhand I can't see why that particular option would fix the issue.
It's still running the same classes after all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!