Running simple website through Jar file
I am trying to run simple static website through Jar file but not having
too much luck. The reason I want to run the website through Jar because I
don't want end users to access my pages directly. Fox example, they should
not have access to index.html page directly without actually starting my
program which is built using java swing.
Things I tried: - Jar application works if I am running on the same
machine where I created Jar using Eclipse because index.html page is
fetching the page from local directory. which i know is wrong. - If I try
using different laptop or desktop then my swing application does not open
any kind of index.html through my browser.
So any suggestions....???
Also, I was using Desktop.open(), Desktop.browse,
getClass().getResources().getURL()..... stuff that I seen on other pages.
Thanks in advance....
No comments:
Post a Comment