• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

applets in a package

I have to put my html files inside a package for example if I had a package called "edu.unt.homework1.java" which is in the root directory "C:\java\homework1" when I double click on the html file it will work fine but when I try to run it from the command line it does not work.  In my html file I have the codebase = "C:\java\homework1\"
and my code = "edu.unt.homework1.java.Question1".  On the command line this is what I see
"C:\java\homework1>appletviewer edu\unt\homework1\java\question2.html".  It does not work when I run this command, any ideas of what else I need to do to run this command?
0
jwhitaker3
Asked:
jwhitaker3
1 Solution
 
CEHJCommented:
The java should be in

C:\java\homework1\edu\unt\homework1

The html in

C:\java\homework1

making the command

C:\java\homework1>appletviewer question2.html

0
 
warsqlCommented:
Also, it's not a good idea to put codebase="C:\whatever".  Use a relative path from your html like codebase="." with CEHJ's good suggestion.
0
 
CleanupPingCommented:
jwhitaker3:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
jimmackCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept CEHJ's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now