Hi,
On WebLogic 10.0 I use the "Shared J2EE Libraries" ( http://download.oracle.com/docs/cd/E11035_01/wls100/programming/libraries.html ) feature of WLS to group some jars which would need to be accessible in multiple ear's. These jars resided on the system classpath, and I try to move them into the shared lib from there.
My problem is...
I'm using Maven in the context of another build-tool (leiningen for Clojure, but this should not matter), and I would like to know how I would call a plugin like dependency:build-classpath programmatically (i.e. via the Maven-API, not via the mvn-command).
...
I have a class in another package. I'm trying to access that class by writing classpath header in command prompt with directory structure.
My question is why I'm not getting compile time error, because I've not specified any jar file which is necessary to compile that java source file, as command prompt classpath header will override en...
Will the use of -classpath option with java, add to or replace the contents of the CLASSPATH env variable?
...
java -version still returns old java version. I have red hat linux
I installed jdk 1.5 int eh follwing path and updated the bask profile and did a source but still the java version shows 1.4
JAVA_HOME=/usr/local/jdk/jdk1.5.0_10/bin/java
PATH has /usr/local/jdk/jdk1.5.0_10/bin
but i still see java -version even from the bin directory ...
# which java
/usr/bin/which: no java in (/usr/local/jdk/jdk1.5.0_10/bin/java:/usr/local/jdk/jdk1.5.0_10/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
I installed java in /usr/local/jdk/jdk1.5.0_10 but cannot run java -version
I get this
$ java -version
-bash: /u...
Hi,
I am not a java developer. I just want to run a java application (which can be downloaded from:
http://code.google.com/p/k-shortest-paths/downloads/list
, under this name: KShortestPaths_Java_v2.1.zip)
While trying to compile test\edu\asu\emit\qyan\test\YenTopKShortestPathsAlgTest.java
I get "package ... does not exist" and...
I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call.
I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project.
The code compiles (the plug-in does some stuff with the Java Project / library code).
When I run the ...
I have the following error - and I am getting a 404 problem. I think they are related. Is this a class path error?
Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;....
...
I'm confused in understanding, how java interpretor and java compiler searches for all the necessary jar files it requires from environment variables. As I have only set the set path variable for JDK directory, but I've not set any variable to search for any class libraries, which jvm requires. How can it search those important jar files...
I am trying to import:
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;
import org.apache.commons.httpclient.params.HttpMethodParams;
But I am being told these do not exist?
I downloaded:
httpclient-4.0.1.jar and httpmime-4.0.1.jar
... and placed these in the same folder as my .java files that ...
Hey,
I encoutered following error:
ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassNotFoundException: org.jdom.input.SAXBuilder
Its enterprise project. Im using eclipse. I have jdom-1.0.jar on project 'Properties -> Java Build Path -> Libraries' and in next tab 'Order and Export' its ...
I have
c:\sources with
A.java
B.java
com\pluto\B.class
Test.java
and
c:\packages with
com\pluto\oth\C.class
in Test.java there are references to B and C (correctly imported) but when I try to compile with (I'm in c:\sources)
javac -classpath \.;c:\packages Test.java
the compiler tell me that it doesn't find B
but if I move B...
How would one go about programatically loading all the resource files in a given directory in a JAR file for an applet? The resources will probably change several times over the lifetime of the program so I don't want to hardcode names in.
Normally I would just traverse the directory structure using File.list(), but I get permission iss...
Hello,
I'm looking to do something which I thought was not going to be difficult.
I have an application that I'd like to package up as a jar because I've got ~30 dependencies and I would like to be able to deploy a single file.
I have some configuration files - a properties file and a spring configuration file, and my log4 props file...
Hi
I am running a java program in command prompt. I have set the "C:\j2sdk1.4.2_09\bin" in PATH System variable.Then I am able to compile and run the program.But as I need to set the mysql-connector I have set this in "C:\mysql-connector-java-5.1.10\mysql-connector-java-5.1.5-bin.jar"
CLASSPATH variable but now I am able to compile the p...
I have been given an application which uses a build.xml file for building purposes. I have very little knowledge of Apache Ant and the classpaths seems to be the following:
<!-- Classpath -->
<path id="development-classpath">
<fileset dir="${libs.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="."/...
I have a jruby rails app that has some jar dependencies in rails lib/java. I prefer this to just putting them straight in lib as it separates my java libs from ruby libs. Works locally using jruby. Problem is, on deploy, tomcat is looking for a bunch of these jars (such as jruby) in WEB-INF/lib, not WEB-INF/lib/java.
I think i need t...
My Java classes organization has gotten a little messy so I'm going over something I've skipped in my Java learning: the classpath. I can't quiet get beloved classes to compile in the packages I have created for them. Here's my folder hierarchy:
.
com/
david/
Greet.java
greeter/
SayHello.java
...
When I was doing JSP/Servlet programming, whenever I dropped 3rd party libraries into the WEB-INF/lib folder, they were automatically included in the project classpath. In GWT, this is not the case. Anyone know why? I loved how easy this was in JSP and I'd like these jars to be included automatically the same way.
...