Ae galera, meu programa precisa abrir um arquivo html que está dentro do jar. tentei instanciar um objeto File passando…
getClass ().getRessource (fileName).toString ();
getClass ().getRessource (fileName).getFile ();
getClass ().getRessource (fileName).getPath ();
mas nenhum funcionou pq não retornam o path adequado. tb tentei…
getClass ().getRessource (fileName).toURI ();
mas dá erro de compilação…
cannot resolve symbol
symbol : method toURI ()
location: class java.net.URL
Q eu não entendi já que o método existe (vi na API).
Tô enrolado, se souberem como resolver isso, me ajudem, POR FAVOR!!!
