In Java, the classpath tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs. The classpath is a parameter and can be set either on the command-line, or through an environment variable.
0
votes
0answers
6 views
Why doesn't - java helloworldapp works but -> java -cp . helloworldapp works?
New at java. Was using command prompt to run my helloworldapp. I was already in the directory wherein my helloworldapp.class file is. I typed in "java helloworldapp" (of course without brackets) and ...
1
vote
1answer
32 views
Java Classpath in context
I'm writing a program, which needs to known all classes/jars in its context. For example if it runs in a Maven environment, it must know the path to all of the dependent jars in .m2/. If it runs in ...
0
votes
0answers
7 views
How can I execute a SBT managed JLine class
I'm developing a JLine based application, which I'd obviously like to test as I develop.
JLine is a handy library which provides interactive console functionality to JVM applications.
JLine doesn't ...
0
votes
2answers
24 views
Ant: add a single compiled class file to javac classpath?
In Ant, if I have a lone compiled CLASS file located somewhere inside my project (say at gen/stragglers/SomePOJO.class, is there a way to specifically add that class file to my <javac> compile ...
0
votes
0answers
14 views
Slow spring component scan
i found some posts dealing with this topic, but our situation is a bit different, so I post it here, hoping someone can help us with it.
The situation is:
We develop a rich client that is started via ...
0
votes
1answer
21 views
Why does ant think package doesn't exist?
I have the following directory structure:
MyApp/
src/main/java/
com/
myapp/
api/
IFizz
FizzLoader
impl/
...
0
votes
0answers
5 views
How to add an XML file to classpath in eclipse in Mac OSx
I am new to Spring Framwork.I am trying to write a simple Helloworld Program in Ecplise.I am Stuck with adding my configuration xml to the classPath.I have searched all through out the web.
Please ...
0
votes
0answers
8 views
Configure classpath for WLST script - cannot import wlstutility lib
I'm trying to create a weblogic domaine in my server using a wlst script. But i obtained a weird error about importing a "basic" library.
Problem invoking WLST - Traceback (innermost last):
File ...
0
votes
0answers
19 views
How can I ensure that a properties file within Java jar required in my JRuby project is correctly loaded?
I have a very simple JRuby project that is bolting a Sinatra-based REST API on top of a Java library for interacting with a proprietary, binary-on-the-wire service.
Within my Sinatra app, I include ...
0
votes
0answers
24 views
How to include jar/xml/properties file in the class path
I have three different kinds of files
a) amqp-client-x.x.x.jar
b) amqp-routing-keys.xml
c) airavata-server.properties
I want to include all of them in my class path.
I have searched in ...
0
votes
1answer
16 views
Eclipse RCP: add external directories to classpath
I have an eclipse RCP application, where I need to add some external jar files.
The problem is that I can't add the jars simply to a plugin and add this plugin to my RCP application.
For several ...
0
votes
0answers
11 views
libraries in Tomcat/lib not resolved when deploying using Eclipse
I have the following issue.
I have a dao library using the atomikos JTA transaction manager.
Also I have a web project that includes that dao library.
And although the tomcat lib folder includes all ...
0
votes
1answer
34 views
Autowiring classes from external jar with Spring
I'm trying to build a standalone application (not running inside an application server) with Spring and I'm facing the following problem :
My standalone application (spring enabled) is depending on ...
0
votes
2answers
20 views
What files are used for classpath?
I have some classes in Eclipse which cannot be resolved to a type. I know that classes can be in .class, .jar, .par, .zip files. Are there any other file types that I have to look for? Or is there ...
1
vote
0answers
21 views
Java external library in terminal error
In terminal, I get the follow error after I compile my program:
WriteExcel.java:7: error: package jxl does not exist
I compiled the program by typing:
javac -cp /Desktop/folder/src/jxl.jar ...