Back out of a directory for a URI in java -


i'm trying make app opens static webpage. pilot bigger project. @ moment i'm getting default browser open fine , test page loads up. however, work if html file in directory .class file. how can out of directory class file in , enter directory? similar cmd cd ....\whatever command.

thanks

to go in directory tree, use ../:

../test1/example.txt

or can do:

currentdir.getparentfile(); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -