Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

cannot find html file


Hello there,

I am trying to run an java example from java.sun. the java class calls some html files. but when i run the application i get html file not found error

i have saved all the files in C:\Java\tree

        book = new DefaultMutableTreeNode(new BookInfo
            ("The Java Tutorial: A Short Course on the Basics",
            "C:\\Java\\tree\\tutorial.htm"));
        category.add(book);

please help

cheers
zolf
Avatar of Mick Barry
Mick Barry
Flag of Australia image

so does that file exist in that directory?
save the tutorial.htm file into C:\Java\tree
Avatar of Zolf

ASKER


yes i have saved it in there 100% sure. and i am calling it like this

book = new DefaultMutableTreeNode(new BookInfo
            ("The Java Tutorial: A Short Course on the Basics",
            "C:\\Java\\tree\\tutorial.htm"));
Avatar of radarsh
radarsh

What does your BookInfo class do?
What are the arguments to the constructor?

________
radarsh
SOLUTION
Avatar of mrigank
mrigank

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial