简体   繁体   English

Javax包不存在

[英]Javax package does not exist

there is an error in all my javax header file "package javax. does not exist" here is an image. 我的所有javax头文件中都有一个错误“package javax。不存在”这里是一个图像。

在此输入图像描述

Download one of the jar file from the following link and store it in your local machine : 从以下链接下载其中一个jar文件并将其存储在本地计算机中:

http://www.jarfinder.com/index.php/java/info/javax.obex.Operation 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. 现在按照以下链接中的给定步骤将该jar文件添加到项目中。

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

This should resolved your errors. 这应该可以解决您的错误。

Try to add the library Persistence (JPA 2.1) in your folder Libraries . 尝试添加库Persistence (JPA 2.1)在您的文件夹Libraries
To do this: Left-click Libraries->Add Library...->select Persistence (JPA 2.1) 为此:左键单击Libraries-> Add Library ...-> select Persistence(JPA 2.1)

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. 在这里,您需要从drowpdown列表中选择您想要的包,然后单击确定。 It will add EclipsLink in library folder which has the package javax. 它将在包含javax包的库文件夹中添加EclipsLink。

在此输入图像描述

Netbeans 6.9.1 already has Java ME SDK 3.0. Netbeans 6.9.1已经有了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. 如果没有模拟器平台,只需下载sun java工具包Java ME SDK 3.0 ,然后在netbeans IDE上与Java平台集成。

The error message says: package javax.obex does not exist. 错误消息说:package javax.obex不存在。 This means you are missing a library (JAR file). 这意味着您缺少一个库(JAR文件)。 Add the JAR file to your project. 将JAR文件添加到项目中。 In Eclipse you can do that by right-clicking the project, selecting Properties, then Java Build Path, Libraries. 在Eclipse中,您可以通过右键单击项目,选择Properties,然后选择Java Build Path,Libraries来实现。 Click "Add JARs" or "Add External JARs" to add the relevant JAR file to your project. 单击“添加JAR”或“添加外部JAR”以将相关的JAR文件添加到项目中。

This JAR file most likely has something to do with bluetooth. 这个JAR文件很可能与蓝牙有关。 You can download an interface JAR from here , but you most likely need an implementation JAR also. 您可以从此处下载接口JAR,但您很可能还需要一个实现JAR。

您可能没有正确设置项目库:看起来您已将源jar文件添加到项目中,而不是具有实际类文件的jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM