在清理和构建时如何解决错误

时间:2018-09-18 06:40:18

标签: java

当我单击clean并进行构建以制作jar文件时,我面临一长串错误 我也试图取代它

import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.table;

与此

import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;

您能先谢谢我吗

E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\CounterSale.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\CounterSale2.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\Delivery.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\Delivery2.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\Sales.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\deals.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\staff.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\user.java:8: error: package com.sun.xml.internal.fastinfoset.alphabet does not exist
import static com.sun.xml.internal.fastinfoset.alphabet.BuiltInRestrictedAlphabets.*;
Note: E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\src\restaurantmanagement\Login.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\nbproject\build-impl.xml:923: The following error occurred while executing this line:
E:\Lectures Nd Assimants\2nd semester\Project\RestaurantManagement\nbproject\build-impl.xml:263: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

1 个答案:

答案 0 :(得分:-3)

  • 下载fastinfoset-1.2.7.jar
  • 将jar添加到您的项目中。
  • 更改您的导入语句,

    import com.sun.xml.fastinfoset.alphabet.BuiltInRestrictedAlphabets;
    
  • 清理并构建