草庐IT

panic-not

全部标签

java - Maven 构建失败 : package does not exist

我有两个Maven模块,AppManager和myApp。这些在本地位于同一目录中,并且在公司的在线存储库中不可用,因为它们用于测试目的。在IntelliJ中,我可以毫无问题地使用AppManager的字段和方法,也没有错误消息。我在myApp的implpom文件中导出com.mycompany.appManager。但是,当我在IDE之外构建时,即mvncleaninstall,出现包com.mycompany.appManager不存在的错误,然后出现Unresolved相关错误appManager中定义的公共(public)字段的使用符号。我该如何解决这个问题?我试过导出和添加依

java - RuntimeException,ClassNotFoundException : Class WordCount$Map not found . Mapper 类问题

我正在尝试在沙盒HortonWorkHDP上运行WordCount。我在很多地方搜索了这个错误并应用了他们所说的,但我无法让它运行。一步一步:1-首先我编译java程序javac-cp.:$(hadoopclasspath)WordCount.java2-接下来将类打包为jar文件jarcvfWordCount.jar*.class3-让我们看看jar文件的内容:jartfWordCount.jarMETA-INF/META-INF/MANIFEST.MFWordCount.classWordCount$Map.classWordCount$Reduce.class4-接下来将输入文件

java - Hibernate : could not initialize proxy - no Session 中的 LazyInitializationException

我从我的服务中调用dao@Override@TransactionalpublicProductgetProductById(intid){returnproductDao.getProductById(id);}在dao中我得到的产品是@OverridepublicProductgetProductById(intid){Productp=sessionFactory.getCurrentSession().load(Product.class,id);System.out.print(p);returnp;}这运行良好,但如果我将我的dao类更改为@OverridepublicPr

java - PDFBOX : U+000A ('controlLF' ) is not available in this font Helvetica encoding: WinAnsiEncoding

尝试使用Java和org.apache.pdfbox库打印PDF页面时,出现此错误:PDFBOX:U+000A('controlLF')isnotavailableinthisfontHelveticaencoding:WinAnsiEncoding 最佳答案 [问题]您尝试显示的字符串包含换行符。[解决方案]用新字符串替换字符串并删除换行符:text=text.replace("\n","").replace("\r",""); 关于java-PDFBOX:U+000A('contro

java - 正则表达式代表组中的 "NOT"

我有这个正则表达式:(\w+\s\d+\s\d+(?::\d+){2})\s([\w\/\.\-]*)(.*)我想做的是,如果第三组是“MSWinEventLog”,则返回FALSE(不匹配),其余的则返回“匹配”。Apr2810:46:34AMCtheremainingphraseApr2810:46:34MSWinEventLogtheremainingphraseApr2810:46:34AvantailtheremainingphraseApr2810:46:34AvantailtheremainingphraseApr2810:46:34AMCtheremainingphra

java - "Error: JAVA_HOME is not defined correctly."在构建 Jikes rvm

当我在Ubuntu上构建JikesRVM时,我遇到了这个错误。有什么想法吗?bin/builditlocalhostproduction--->Config:production/bin/bash--login-c'/bin/bash--login-c"cd/home/jack/Programs/jikesrvm-3.1.2&&exportJAVA_HOME=/opt/jdk1.6.0&&antvery-clean-Dhost.name=ia32-linux&&antcheck-components-properties-Dhost.name=ia32-linux-Dtarget.na

Java EE 异常 : Name java:comp is not bound in this Context

我在Netbeans7.2.1中安装了JavaEE应用程序。尝试部署它(构建结束正常),我在Tomcat日志中收到错误:Causedby:javax.naming.NameNotFoundException:Namejava:compisnotboundinthisContextatorg.apache.naming.NamingContext.lookup(NamingContext.java:770)atorg.apache.naming.NamingContext.lookup(NamingContext.java:153)atjavax.naming.InitialContex

java - NetBeans 中的警告 : Skipping entry because it is not an absolute URI. GlassFish

我成功安装了GlassFish。但是,当我启动服务器时,会收到两条警告消息:警告:跳过条目,因为它不是绝对URI。那是什么?LaunchingGlassFishonFelixplatformAug09,201410:38:38PMcom.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisionercreateBundleProvisionerINFO:Createbundleprovisionerclass=classcom.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisio

java - Xamarin Binding Jar 给出错误 : does not implement inherited abstract member AsyncTask. DoInBackground(params Object[])

我想使用Xamarin.Android项目中的.jar文件。在我创建绑定(bind)项目并尝试构建后,我收到此错误:obj\Debug\generated\src\Com.Acrcloud.Rec.Sdk.Utils.ACRCloudGetIPAddressAsyncTask.cs(23,23):错误CS0534:“ACRCloudGetIPAddressAsyncTask”未实现继承的抽象成员“AsyncTask.DoInBackground(参数对象[])'(CS0534)使用反编译器,我检查了ACRCloudGetIPAddressAsyncTask的内容,发现了这个:packa

java - 在 IntelliJ IDEA 中设置 JDK 10 : the selected directory is not a valid home for JDK

有人试过在MacOS的IntelliJ上设置JDK10吗?尝试这样做时,我收到的消息是“所选目录不是JDK的有效主目录”。我已经安装了oracle为MacOS提供的JDK10我机器上的JDK安装路径是/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home 最佳答案 正确支持Java10需要IntelliJIDEA2018.x版本。IntelliJIDEA2017.x版本可能无法正确检测Java安装路径。 关于java-