Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How can I setup the environment so I can start compiling java?

  Asked By: Muaz    Date: Dec 10    Category: Java    Views: 579
  

I'm using JDK 1.2 and win98. How can I setup
the environment so I can start compiling java??
Could anyone help me,pls?

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Taylor Evans     Answered On: Dec 10

I'd suggest going along to the Sun Java website and downloading a more
recent JDK, 1.2 is old. Get 1.3 or 1.4.

 
Answer #2    Answered By: Benjamin Simpson     Answered On: Dec 10

import org.w3c.dom.Text;;;;;;;;;;;;;;;;;;;;;;

 
Answer #3    Answered By: Adalwen Fischer     Answered On: Dec 10

Thanks I did not pickup that capitalize letter hint.

 
Answer #4    Answered By: Dylan Evans     Answered On: Dec 10

The error message is correct as there is not a standard java  class named Text
locatable with the package designator "java.Text.*"

There is a standard java class named Text whose package designator is
"org.w3c.dom.Text"

That class is used in conjunction with xml documents.

If you are referring to another Text class that you have written or is in some
package you need to use, then its another problem.

Java has a pacakge called java.text

which has many useful classes.

If its one of these classes that you need, then use the impport statement:

import java.text.*;

 
Answer #5    Answered By: Kerry Wright     Answered On: Dec 10

There is a nice article on packages on JavaWorld (February 21, 2003) at:
www.javaworld.com/.../jw-0221-declaration.html?

This may help  out with your package woes.

 




Tagged: