classpath

Adding Default Package's Classes in NetBeans

可紊 提交于 2019-12-10 13:37:13
问题 I have a jar file named "stdlib.jar" . This has many classes in its "Default Package" . I have added this stdlib.jar to my NetBeans Libraries. and Also "Build"-ed it without using anything from stdlib.jar . So that stdlib.jar can be added to my "./dist/lib" folder. But still I can't use any classes within stdlib.jar What should I do to reuse any classes within stdlib.jar ? 回答1: Using "Default Package" package for libraries or even for a project is highly discouraged. If you use default

SVN:ignore how-to and on what?

情到浓时终转凉″ 提交于 2019-12-10 12:47:48
问题 It seems to me that adding the property svn:ignore on files like .classpath would be a good idea. I use both Windows (work, ugh) and Linux development environments and every time I sync with the repository it overwrites my .classpath from whichever machine I'm working on. I tried right-clicking the .classpath file in the Team Sync perspective, but the svn:ignore option is greyed out. Any ideas how I might: 1. get this item out of source control, 2. add it to an ignore list? Any other files a

Gradle - add directory to classpath

和自甴很熟 提交于 2019-12-10 12:35:28
问题 My application requires that a \config directory be available on the classpath when it looks for configurations files under the directory. I currently have dependencies configured like so, though this is probably not the correct way to make a directory available to my application: dependencies { ... //runtime, compile dependencies pulled from repositories runtime files('config') } I am using the application plugin to create a standalone zip for my project. If my \config directory has \config

JavaPlot and gnuplot

╄→гoц情女王★ 提交于 2019-12-10 11:26:56
问题 I'm desperately trying to get Java and gnuplot to play nice. I've started using JavaPlot and have added the jar to the classpath (using Eclipse). I've also downloaded gnuplot and have placed it in a safe place. First question, all examples given by JavaPlot are assuming you have put gnuplot in the right place, where this is I have no idea. Therefore their example of: import com.panayotis.gnuplot.JavaPlot; public class test { public static void main(String[] args) { JavaPlot p = new JavaPlot()

Custom Java PMD rule: Can't find the class CustomRule

て烟熏妆下的殇ゞ 提交于 2019-12-10 10:41:52
问题 I'm trying to write custom PMD rules in Java. I have created a custom ruleset that looks like this: <?xml version="1.0"?> <ruleset name="Custom Ruleset" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> <description> My custom rules </description> <rule name="CustomRule" message="Custom message" class="mwe.CustomRule"> <description>

weblogic.webservice.core.soap.MessageFactoryImpl cannot be cast to javax.xml.soap.MessageFactory

我的梦境 提交于 2019-12-10 10:15:36
问题 I am stuck with the following error when I deploy my web-services client application in weblogic. [This application has been working without any issues in tomcat.] Cannot resolve reference to bean 'saajSoapMessageFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'saajSoapMessageFactory' defined in class path resource [.../core/ws/ws-config.xml]: Invocation of init method failed; nested

Unable to execute jar file despite having PATH and CLASSPATH set

删除回忆录丶 提交于 2019-12-10 04:35:11
问题 My question is regarding including jar files in path. It has 2 parts. 1) I am trying to execute weka.jar jar file located in /home/andy/software/weka/weka.jar PATH variable points to this jar file (i.e. to /home/andy/software/weka/weka.jar) and so does CLASSPATH. However when I try to run the jar using java -jar weka.jar, I get an error "Unable to access jarfile weka.jar". Any ideas what is going on? I am on Ubuntu Linux. I looked around in SO and it seems like I am not doing anything that is

Tomcat 6 vs 7 - lib vs shared/lib - jars only?

假如想象 提交于 2019-12-10 04:30:24
问题 When upgrading from Tomcat 6 to Tomcat 7 - we kept a number of files we wanted on the classpath in the $CATALINA_HOME/lib directory on 6 - and it made sense to move these two $CATALINA_HOME/shared/lib on Tomcat 7. What we've found is that the jar files went across ok - but anything that wasn't a jar file - eg an xml file etc was not picked up by the class loaded in the shared/lib directory. When we moved the non-jar files back to the $CATALINA_HOME/lib directory - they loaded into the

Java 9 modules and classpath hell: conflicting class names

ぃ、小莉子 提交于 2019-12-10 03:42:01
问题 It is said that java 9 modules will solve classpath hell. However, I am thinking about the following situation: Module A uses modules B and C. Both modules will export a class with same name and package. How will the classloading issue be solved here? 回答1: This situation is forbidden in the Java 9 module system. If two modules in the same layer have the same package, Java 9 will fail at startup with an error: java.lang.LayerInstantiationException: Package <package_name> in both module

How do I use environment variables in an Eclipse .classpath file?

烂漫一生 提交于 2019-12-10 01:49:49
问题 In Windows I have an environment variable EXTERNAL_LIB_ROOT that points to C:\Program Files\MyExternalLibRoot. On another machine, it may point to C:\ExternalLibs. In an ant build.xml file I would use: <pathelement location="${env.EXTERNAL_LIB_ROOT}/path/to/jar.jar"/> How do I set up an Eclipse project .classpath file to use the EXTERNAL_LIB_ROOT environment variable? Is it possible to have Eclipse auto generate the build.xml file using the environment variable as above? 回答1: Not an