Javax package undefined

I work for a College and the students are trying to build their java programs and are getting the following error:

Javax package undefined

Can someone please help!

Thanks in advance,
Niki
wonikaAsked:
Who is Participating?
 
TimYatesConnect With a Mentor Commented:
I don't think it will solve the problem of javax package not being found... I think j++ comes with its own version of java, it is just you are trying to use classes that it doesn't support, as it stopped being up to date about 4 years ago...

If you have to stick to J++, you have to teach only java 1.1, which means no javax

I *think*
0
 
TimYatesCommented:
do you have java1.4?

sounds like either java 1.1, or the classpath has been messed with...

Tim
0
 
wonikaAuthor Commented:
Yes we have Java 1.4.  Also some more info, they are using Java ++ 6.0 on Windows 2000.  If that helps anyone.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
girionisCommented:
It is javax (with small j not with capital).
0
 
TimYatesCommented:
You mean J++?

That stopped production years ago, and only supports java 1.1 (AFAIK)

I would recommend switching to use

JBuilder Community (http://www.borland.com/jbuilder)
Eclipse (http://www.eclipse.org)
or
Netbeans (http://www.netbeans.org)

all of them are free...

You can check java is installed right by writing a simple class like:

import javax.swing.* ;
public class Test
{
    public static void main( String[] args )
    {
        JOptionPane.showMessageDialog( null,"Woo!  Java works!" );
    }
}

Save it as "Test.java", then type:

javac Test.java
java Test

in a command window...  It should show you a message box :-)

Tim
0
 
TimYatesCommented:
Or girionis could be right, and it could be a type spelling javax with a "J" ;-)
0
 
wonikaAuthor Commented:
No, the typo was mine.  They are teaching J++ and the instructor does not want to change to the other programs because she is not proficient in them.  So, do we need to uninstall Jave 1.4 and put Java 1.1 on?  or is that not obtainable or will not fix the problem?
0
 
TimYatesCommented:
Try using it to compile a java 1.1 compatible class...

And have a look in the J++ settings to check it is using it's own internal compiler.  Basically, J++ allows you to write non-java code, Sun took them to court, they stopped supporting java

Things are only just changing, but now MS have .NET, so have no intention of re-entering the Java IDE arena (AFAIK)

Tim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.