Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Willie Howell   on Feb 01 In Java Category.

  
Question Answered By: Ruairidh Anderson   on Feb 01

When trying to run  a java  program, you ommit the ".class" at the end of
the class name e.g.

java myfile

assuming that the class myfile.class is in your current directory and
myfile.class does not specifiy a package e.g. package com.tld.abc;

If you have specified myfile to be in package com.tld.abc then the command
would be

java com.tld.abc.myfile

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread