Running java programs from class files
- From: mark13.pl@xxxxxxxxx
- Date: 29 Aug 2006 09:23:26 -0700
Hello,
I have created two class: ClassOne & ClassTwo (with main) in MyClass
package. When I run it in eclipse everything goes okay. When I create
jar and choose ClassTwo as Main everything goes okay.
But now I am interested in running it just from class files. What is a
correct syntax for such example?!?
I tried:
"java -classpath . ClassTwo" and similar but never run it getting all
the time: NoClassDefFoundError.
Regards, mark
.
- Follow-Ups:
- Re: Running java programs from class files
- From: Matt Rose
- Re: Running java programs from class files
- From: Knute Johnson
- Re: Running java programs from class files
- Prev by Date: Re: java.util.Random.nextInt() thread safety
- Next by Date: Re: Running java programs from class files
- Previous by thread: array indexing... you cant use 'long' ???!
- Next by thread: Re: Running java programs from class files
- Index(es):
Relevant Pages
|