classpath

Usage of Thread.currentThread().getContextClassLoader().getResourceAsStream(“system.properties”) [closed]

拈花ヽ惹草 提交于 2019-12-13 23:21:22
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . In my web application, I have kept system.properties file in the web-inf/classes folder. To Access that file's inputstream, I am using the code snippet below: InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(SYSTEM_PROPERTIES_FILE) Is there any other way to access

NoClassDefFoundError: javax/persistence/Converter when importing jpa application context in webservice module

孤街醉人 提交于 2019-12-13 22:13:00
问题 I'm getting the following error when calling the jpa module from my webservice module in my multi-module maven project. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring/applicationContext-mysql.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Converter I've added a resource import in my spring-ws-servlet.xml file in the webservice

Java-based H2 Database cannot locate items in CLASSPATH

南楼画角 提交于 2019-12-13 21:11:57
问题 I have a scala file has been compiled with the following command: scalac -cp ".:*" AcmeTrigger.scala In the directory with the .scala file I have some .jar files that contain the APIs for email and texting services that I'm using. No issues here. The scala file essentially sends text messages and emails when someone modifies a table in a database. I start the database with the following command: java -cp ".:*" -jar h2-1.4.182.jar Essentially telling it to use the the .class and .jar files in

java.lang.NoClassDefFoundError while using SWT Add-on (AutocompleteComboInput)

谁说我不能喝 提交于 2019-12-13 21:01:21
问题 I am trying to implement an autocomplete Combo in SWT using AutocompleteComboInput. I have added net.sf.swtaddons_0.1.1_bin_src.jar to the library via "Add External JAR". import net.sf.swtaddons.autocomplete.combo.AutocompleteComboInput; ... subjectCodeCombo = new Combo(tab3Composite, SWT.DROP_DOWN); // other code modifying Combo appearance here... // returns a String[] of items retrieved from database String[] subjectCodeArray = dbQuery.subjectsToArray(); subjectCodeCombo.setItems

How can I tell my application that it shouldn't use an external Service Provider from a jar?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 17:17:38
问题 For some reason we need the xdb.jar from the Oracle XDK. This jar depends on the xmlparserv2.jar. The actual problem is that the xmlparserv2.jar comes with some provider-configuration files (META-INF/services). The jar has Services Providers for javax.xml.transform.TransformerFactory , javax.xml.parsers.SAXParserFactory and javax.xml.parsers.DocumentBuilderFactory . The implementations (from oracle.*) don't work together with some other parts of our software (they need the standard factories)

how to get value of eclipse .classpath classpathentry

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 12:41:18
问题 I am writing some eclipse plugin that will do some work for BlackBerry developers. This is the .classpath file entry of my BB project: <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/net.rim.ejde.BlackBerryVMInstallType/BlackBerry JRE 5.0.0"/> Using this information is it possible (programmatically) to find out the exact location of the rim plugin on the disk ? In my case I am looking for the following pass: D:\WORK\eclipse-java-galileo-SR2-win32\eclipse\plugins\net

setting multiple jar files as classpath in cygwin

[亡魂溺海] 提交于 2019-12-13 12:32:24
问题 I have the program x.java in c:\cygwin\programs\x.java and it uses y.jar and z.jar that are also in the folder c:\cygwin\programs . In windows: c:cygwin\programs>javac -classpath c:\cygwin\programs\y.jar;c:\cygwin\programs\z.jar x.java No errors. In cygwin (1) $javac -classpath c\:/cygwin/programs/y.jar;c\:/cygwin/programs/z.jar x.java Errors: $'PK\003\004': Command not found. (2) $javac -classpath c:\cygwin\programs\y.jar;c:\cygwin\programs\z.jar x.java Errors: -bash command Command not

matlab java class path issue

痴心易碎 提交于 2019-12-13 12:31:54
问题 When I put classpaths into the static class path (ie put them in the classpath.txt file) program works. When I add it dynamically, I get an error that it can't find a properties file in the class path. Here is what I have javaaddpath('C:\exchsys\jars\exsystools.jar') javaaddpath('C:\exchsys\externaljars\log4j.jar') javaaddpath('C:\exchsys\externaljars\') javaaddpath('C:\apache-activemq-5.1.0\lib\commons-logging-1.1.jar') javaaddpath('C:\apache-activemq-5.1.0\activemq-all-5.1.0.jar') plus my

Java Configuring Build Paths or WEB-INF/lib folder [duplicate]

孤街浪徒 提交于 2019-12-13 11:36:49
问题 This question already has answers here : How to add JAR libraries to WAR project without facing java.lang.ClassNotFoundException? Classpath vs Build Path vs /WEB-INF/lib (6 answers) Closed 4 years ago . I've seen a lot of tutorials and applications that put their jars inside a build path while others put it inside their web-inf/lib folder, Are there any significant difference? What are the pros and cons of both? What is an indicator for me to put a certain jar inside the libs folder and put

How come command line isn't recognizing this java command?

流过昼夜 提交于 2019-12-13 10:12:17
问题 I enter java -classpath C:\blahblahblah\software_engineering\cs2.jar as part of a suggestion here: Why does my IDE find the JAR but my command line doesn't? . I'm pretty sure this is a valid command, but I instead receive this tired list: Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -server to select the "server" VM -hotspot is a synonym for the "server" VM [deprecated] The default VM is