classpath
Date: Wed, 31 Dec 2003 14:46:04 +0200
Is there a way to set the classpath from within a mathod?
The program I'm developing needs a *.jar file (HSQLDB). I don't want to
put it in the lib/ext directory nor I want to specify extra classpath
directories launching my program.
Thanks in advance.
Relevant Pages
- Re: Giving an application a window icon in a sensible way
... needs to be added to the class path on the development system. ... If you have a %CLASSPATH% variable that includes all classes from multiple projects, it's a recipe for subtle bugs. ... Better still, if everything is packed into a JAR file, then all you need to do is have that one JAR file on the classpath: ... If the resources are packaged inside a JAR file, there are no external files to load. ... (comp.lang.java.programmer) - Re: Adding UNC paths to CLASSPATH
... >:The problem I've got is that I can't properly set the CLASSPATH required ... expecting that the jar file will already contain a manifest ... If this is all that's needed, then make sure your manifest contains one, ... Or specify them in a subdirectory and specify that in the ... (comp.lang.java.help) - Re: 2 newbie questions
... other ppl have to have those libraries in the system ... I heard that Java is an easily-portable language, ... ..jar file, and distribute with my own Java class? ... or you don't have your CLASSPATH or your PATH variable set ... (comp.lang.java.programmer) - Re: 2 newbie questions
... or you don't have your CLASSPATH or your PATH variable set ... You might have a jar file that contains classes in a com.acme.* package and another separate jar file that contains classes in a com.borland.* package. ... (comp.lang.java.programmer) - Re: jre/lib/ext and classpath
... The first is, if you launch your application from a jar file, the jar file itself is the source of all user classes and other user class path settings are ignored. ... The second is that you can specify a space separated classpath in the jar manifest file on a line beginning "Class-Path:" which will be used to locate classes and resources. ... No doubt Sun would deny they are secrets because they are documented ... XML parser in the lib/ext and have it be used by any application running ... (comp.lang.java.programmer) |
|