Weblogic 10.3.1.0 is using com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar... I want to use commons-net-2.0.jar from my code.
How can I force it to use the newer JAR in my code only?
...
I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH.
As I learned from this question. I used the following command to check the CLASSPATH for current environment, and I found none of my $CLASSPATH is used.
How can I attach my class path for my clojure with emacs/slime-connect?
I installed my...
In this post, I was told that -jar ignores all the -cp and $CLASSPATH. Why is this? Is there any reason for this?
I was also told -cp option also ignores the $CLASSPATH. Why is this? Is there any good reason for this?
...
I have a factory method in my JSP which looks for a config file in a predefined location example \abcd\configfolder\conf.xml and i have no control over this path...i currently have the file at location C:\Myfolder\project\abcd\configfolder\conf.xml and the tomcat does not find it.. so i think i need to include C:\Myfolder\project in my t...
when i run the following jsp in my tomcat...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body> Before:cp=<%=System.getProperty("java.class.path")%>
</body>
</html>
i get this output...
Before:cp=C:\apache-tomcat-6.0....
Hi
I am using maven-compile plugin to compile classes. Now i would like to add one jar file into current classpath. that file stays in another location (let says c:/jars/abc.jar . i prefer to leave this file here). How can i do that.
If i use classpath in the argument:
<configuration>
<compilerArguments>
<classpath>c:/jars/abc.ja...
How do I call a method of a class dynamically + conditionally?
(Class is eventually not in classpath)
Let's say, I need the class NimbusLookAndFeel, but on some systems it's not available (i.e. OpenJDK-6).
So I must be able to:
Get to know it that class is available (at runtime),
If it's not the case, skip the whole thing.
How do I m...
I've got a relatively large Java application that would benefit from a bit of Python love. To that end I've been working on getting it up and running in Jython. My current roadblock is getting the classpath right.
I've taken two approaches to setting the classpath:
Using a shell script, I've built up a list of jars and executed java -...
Hi all, I'm getting:
java.lang.ClassNotFoundException: com.hazelcast.core.Hazelcast
This bit is strange though, because i've added hazelcast-1.8.5.jar to the classpath when i'm running java:
java -cp hazelcast-1.8.5.jar -jar myapp.jar
So i cannot understand why i'm getting the ClassNotFoundException, when the hazelcast jar is well ...
I'm looking a utility method so that given a class will return the full classpath required to run this class externally. This means the jar the class is in as well as all jars (or folders) of classes that it uses.
UPDATE: there are tools that analyze .class files to find dependencies. This is not what I'm looking for. I'm looking for s...
Hi,
My knowledge of Java is rather rusty, but I've been forced to use it and am having some terrible classpath troubles...
I'm trying to import a jwebserver class. It should be straightforward, but I don't know how!
Here is my server.java file:
import java.io.*;
import org.jWebSocket.*;
public class server
{
public static vo...
(Relative beginner here, please be gentle...)
I've got a Scala program that I can build with sbt. I can (from within sbt) run compile and test-compile with no errors. I've defined a package by putting package com.mycompany.mypackagename at the top of several .scala files. When I do console to get a Scala REPL, this happens:
scala> impo...
hello,
i would like to launch an applet in an build.xml like this:
<java classname="sun.applet.AppletViewer" classpath="${libraries}">
</java>
(at least that is how it works in netbeans)
but i get the error message:
[java] JVM args ignored when same JVM is used.
[java] Could not find sun.applet.AppletViewer. Make sure you have it...
How does the Class-path in the MANIFEST.MF file determine the relative location?
1)
Say I have a JAR with a jar inside lib/somejar.jar and ofc the manifest file is inside META-INF/MANIFEST.MF. How would I set the classpath....? Would it be Class-path: lib/somejar.jar or ../lib/somejar.jar ?
2)
Let's say the somejar.jar also has other j...
I have written an ANT script and finally am building the jar
here is the building of jar section
<jar jarfile="${destination}/@{name}.jar">
<fileset dir="${output}">
<include name="abc/xyz/@{name}/**"/>
</fileset>
<zipfileset dir="lib" prefix="lib/"/>
<manifest>
...
I'm using Eclipse and I have the Groovy Plugin installed.
From within a standard Java project I want to include a file with a .groovy extension on the runtime classpath. I have a source folder (src/main/resources) which includes all files and has no exclusion filters. Inside that directory I have 2 files: foo.groovy and foo.txt. When...
I am trying to add a JAR file to a simple java applet which can be opened has an HTML.
This is my coding:
<applet code="AgniCorpContactsApp.class"
codebase="/agnicorpcontacts" width="100" height="100"
archive="AgniCorpContactsApp.jar">
</applet>
The location of the JAR file and all of the class files is: C:\Documents and Settings...
I am trying to add a JAR file to a simple java applet which can be opened has an HTML.
This is my coding:
applet code="agnicorpcontacts/AgniCorpContactsApp"
width="100" height="100"
archive="AgniCorpContactsApp.jar">
The location of the JAR file and all of the class files is: C:\Documents and Settings\Owner\My Documents\NetBeansProj...
Hello,
I'm having problem with using external jars in my file. I always get
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration
at this line: Configuration config = HBaseConfiguration.create();
And this file is on the classpath, I'm setting options when running jar:
java -jar hbase.jar -c...
Dear all
What difference between adding library by "add external jar" and putting those jars to web-inf\lib?
What should I do for adding my external jars to my web dynamic project in eclipse
Add by class-path or putting into web-inf\lib folder?
Regards
...