Rajesh
Rajesh

Reputation: 91

Javax package does not exist

there is an error in all my javax header file "package javax. does not exist" here is an image.

enter image description here

Upvotes: 9

Views: 43714

Answers (6)

flik
flik

Reputation: 3633

It is easy, I was facing the same issue and fixed in this way:

  1. File -> New File -> Persistence -> New Persistence UNIT

Here you need to select your desire package from drowpdown list and click ok. It will add EclipsLink in library folder which has the package javax.

enter image description here

Upvotes: 1

Félix LD
Félix LD

Reputation: 372

Try to add the library Persistence (JPA 2.1) in your folder Libraries.
To do this: Left-click Libraries->Add Library...->select Persistence (JPA 2.1)

Upvotes: 3

bharath
bharath

Reputation: 14453

Netbeans 6.9.1 already has Java ME SDK 3.0. Just check the Emulator Platform in the properties of your application. If there is no emulator platform just download the sun java toolkit or Java ME SDK 3.0 and then integrate with Java platform on your netbeans IDE.

Upvotes: 1

Nirmal
Nirmal

Reputation: 4829

Download one of the jar file from the following link and store it in your local machine :

http://www.jarfinder.com/index.php/java/info/javax.obex.Operation

Now follow the given steps in the following link to add that jar file into your project.

http://gpraveenkumar.wordpress.com/2009/06/17/abc-to-import-a-jar-file-in-netbeans-6-5/

This should resolved your errors.

Upvotes: 1

Femi
Femi

Reputation: 64700

You probably don't have the project libraries properly setup: it looks like you have added the source jar file to your project, not the jar with actual class files.

Upvotes: 0

Jesper
Jesper

Reputation: 206846

The error message says: package javax.obex does not exist. This means you are missing a library (JAR file). Add the JAR file to your project. In Eclipse you can do that by right-clicking the project, selecting Properties, then Java Build Path, Libraries. Click "Add JARs" or "Add External JARs" to add the relevant JAR file to your project.

This JAR file most likely has something to do with bluetooth. You can download an interface JAR from here, but you most likely need an implementation JAR also.

Upvotes: 0

Related Questions