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

How to run a java class file inside a Package in cmd line

problem when running a java class from cmd line. please help!
java.lang.NoClassDefFoundError: Test <Wrong name tutorials/sample/Test>

my project:
h:/Projects
   Test/src/
          tutorials/sample/Test.java
(package -- tutorials.sample)
(class - Test.java)
0
kites
Asked:
kites
  • 2
1 Solution
 
a_bCommented:
Run the command from h:/Projects/Test/src/ as java tutorials.sample.Test (I am assuming that the compiled class files are in h:/Projects/Test/src/tutorials/sample/)
0
 
kitesAuthor Commented:
THANKSSSSSSSSSSS!
0
 
kitesAuthor Commented:
Clearly explained and understood.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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