java - How to add and open html file in non webapp maven project -
i created maven project bundle in apache servicemix now.
now want add together html file project , print somethink on it.
how it? seek when want open index.html got error:
uri u = new uri("/mycommands/src/main/webapp/index.html");
couldn't find file - in karaf console.
i tried uri u = new uri("index.html");
to, didnt work.
please help me :(
error log
ok guess need specify path correctly , judging project construction need:
uri u = new uri("src/main/webapp/index.html");
the path /mycommands/src/main/webapp/index.html
gives error signifies absolute path in machine. correspond actual folder structure?
if wanted relative path (beginning source root folder should not utilize first forwards slash /
, mycommands/src/main/webapp/index.html
in case think mycommands/
unnecessary.
edit:
copying class desktop
documentation browse()
method :
ioexception - if user default browser not found, or fails launched, or default handler application failed launched
judging above maybe should check if browser has problem launching. can open anyother uri instead of 1 specified example?
java html bundle
No comments:
Post a Comment