Home » Developer & Programmer » JDeveloper, Java & XML » Problem with packages
Problem with packages [message #91821] Thu, 06 March 2003 13:20
Messages: 19
Registered: November 2001
Junior Member
Probably a dumb question but....
Is there anything special you have to do to create a package? If I've got source that looks like....

package myPackage.coolStuff;
import javax.swing.*;

Class Hello
public static void main (String Args[[]])
//do something

I compile and the class files are created in my current directory (I thought they were supposed to be generated in a dir according to the package stmt). Then I try and run "java Hello" and get: java.lang.NoClassDefFoundError: Test (wrong name: myPackage/coolStuff/Hello). Both PATH and CLASSPATH are set correctly.!? Please help!
Previous Topic: Re: jsp jdbc
Next Topic: uix newbie
Goto Forum:

Current Time: Wed Dec 07 01:27:21 CST 2022