Link to home
Start Free TrialLog in
Avatar of ARACK04
ARACK04

asked on

java command

Why doesn't this work on the command line:

java direct\myClass

Inside the direct folder there is a valid myClass.class.  Obviously I could

cd direct
java myClass

but for reasons that are not worth explaining, I would like to do it this way.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Should be

java direct.myClass

if in package 'direct'

Avatar of ARACK04
ARACK04

ASKER

There is no package defined.  Do I have to define a package to do this?  I would think that it would just follow the path to get to myClass
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

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
:-)