Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Javax package undefined

Posted on 2004-08-10
8
296 Views
Last Modified: 2013-11-23
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
0
Comment
Question by:wonika
  • 5
  • 2
8 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 11765423
do you have java1.4?

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

Tim
0
 

Author Comment

by:wonika
ID: 11765713
Yes we have Java 1.4.  Also some more info, they are using Java ++ 6.0 on Windows 2000.  If that helps anyone.
0
 
LVL 35

Expert Comment

by:girionis
ID: 11765823
It is javax (with small j not with capital).
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 35

Expert Comment

by:TimYates
ID: 11765862
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
 
LVL 35

Expert Comment

by:TimYates
ID: 11765871
Or girionis could be right, and it could be a type spelling javax with a "J" ;-)
0
 

Author Comment

by:wonika
ID: 11765924
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
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 11765958
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
 
LVL 35

Expert Comment

by:TimYates
ID: 11765976
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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 213
SequenceInputStream example 3 19
Glassfish admin console not working 1 33
Crystal Reports Licensing Questions 4 35
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question