in a fixed location in your system, and set your CLASSPATH point to it.
An example of such a manifest could be:
Manifest-Version: 1.0 Created-By: myself Class-Path: d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar d:\usr\local\skinlf-1.2.4\lib\skinregion.jar; ...
This way, including this jar in your classpath will be equivalent to include all its dependencies :-)
Another think that could help would be to create a d:\jars directory, and place a copy of all your jars into it. This way, the CLASSPATH variable will be shorter (and BTW, your ant scripts too ;-)
Hope this helps, Rodrigo Ruiz
Edson Alves Pereira wrote:
That�s right, but even using a GUI IDE like JBuilder or Netbeans this problem can occours, because in a low level these tools make a command like to compile, to build a webbapp or to create a jar file.
---------- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 15:18 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea
Howdy,
And Yoav, you did say that in almost 10 years no one complains aboutinternet
it, but as i know there are many people facing this issue all over
also. My neibour here has a windows 2000, he will make some tests withits
command line.
I misunderstood your problem when I said no one else has it. What you describe is a common issue. It used to be more common before people used Ant and IDEs, when they did more stuff on the command line. I just haven't compiled anything in a DOS window for ages, so I forgot ;)
Yoav Shapira
the---------- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:41 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea
Howdy, I see -- thanks for the example.
You do realize Ant adds a lot of these jars for you automatically to
ofclasspath, right? You don't need to add anything in ANT_HOME/lib, as
that's automatically included. Furthermore, if you're using JDK 1.4 or
later, you can remove a bunch of other jars from the path as they're
included in the JDK, e.g. JAXP, Crimson, JDBC 2.0 extensions. Finally,
you have a number of duplicates, e.g. the XML APIs, repeated a number
qtimes in the path.ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant-
Yoav Shapira Millennium ChemInformatics
-----Original Message----- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:35 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea
This mainly it happen with ant, here a snapshot of it:
D:\home\edson>set
LOCALCLASSPATH=d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmlta
sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-
apis.jar;d:\usr\local\j
akar
1.4.1\ecs1.5.4
\lib
\optional.jar;d:\usr\local\jakarta\apache-ant-
1.5.4\lib\ant.jar;d:\arquiv~1\
j2sd
k1.4.1_01\commapi\comm.jar;d:\usr\local\skinlf-
1.2.4\lib\skinregion.jar;d:\u
sr\l
ocal\skinlf-1.2.4\lib\skinlf.jar;d:\usr\local\ecs-1.4.1\lib\xerces-
1.2.2.jar
;d:\
usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;d:\usr\local\ecs-
-
1.jar;d:\usr\local\java_cup\java_cup.jar;d:\usr\local\hsqldb_v.1.61\lib\hs
4.1.
aldta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant-
b
.jar
;d:\usr\local\junit3.7\junit.jar;d:\usr\local\jakarta\apache-ant-
1.5.4\lib\x
mlta
sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-
apis.jar;d:\usr\local\j
akar
1.5.4_lib\classes;d:\desenv\osctrl\classes;d:\desenv\pannet\src\servlets\ifin
\lib
\optional.jar;d:\usr\local\jakarta\apache-ant-
1.5.4\lib\ant.jar;d:\desenv\os
ctrl
\nc
esses;d:\desenv\pannet\src\servlets\intranet\classes;d:\desenv\pannet\src
\cla
vse
rs\panfinance\classes;d:\desenv\pannet\src\servlets\base\classes;d:\desen
vlet
the\plib\mail.jar;d:\desenv\pannet\java-
a
nnet
\java-lib\jasper-runtime.jar;d:\desenv\pannet\java-lib\jasper-
compiler.jar;d
:\de
senv\pannet\java-lib\jdbc2_0-stdext.jar;d:\desenv\pannet\java-
lib\tinySQL.ja
r;d:
\desenv\pannet\java-lib\servlet.jar;d:\desenv\pannet\java-
lib\ojdbc14.jar;d:
\des
env\pannet\java-lib\shell_term.jar;d:\desenv\pannet\java-
lib\crimson.jar;d:\
dese
nv\pannet\java-lib\jconcept.zip;d:\desenv\pannet\java-
lib\com.zip;d:\desenv\
pann
et\java-lib\acme.zip;d:\desenv\pannet\java-
lib\xBaseJ.jar;d:\desenv\pannet\j
ava-
lib\oreilly.jar;d:\desenv\pannet\java-
lib \jst yle.jar;d:\desenv\pannet\java-lib\jndi.jar;d:\desenv\pannet\java- lib\jcServl et.j ar;d:\desenv\pannet\java- lib\activation.jar;d:\jbuilder4\lib\jaxp.jar;d:\arq uiv~ 1\j2sdk1.4.1_01\lib\tools.jar;d:\arquiv~1\j2sdk1.4.1_01\lib\dt.jar;.;;
I couldn�t take correctly ant�s command line, but i think that it gives some idea.
---------- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 14:07 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea
Howdy,
It's fascinating other people in the almost decade-long history of
MSDOSCanlanguage haven't had this problem. Don't you find that curious? ;)
you post one such classpath example that's giving you problems?
Yoav Shapira Millennium ChemInformatics
-----Original Message----- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:03 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea
Exactly, that�s it! Even using environment variable in a
shellbeen
thanyou can reach the line limit.
---------- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 13:57 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea
Howdy,
So you really have a classpath environment variable that's bigger
using128KB? (If that's really the limit, as you say in your originalmessage).
Yoav Shapira Millennium ChemInformatics
-----Original Message----- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 12:51 PM To: 'Tomcat Users List' Subject: RE: new JVM feature, just an idea
The point here is that my classpath is very big and even
FYI,environment variables winnt complain about it.
---------- De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: sexta-feira, 12 de dezembro de 2003 10:47 Para: Tomcat Users List Assunto: RE: new JVM feature, just an idea
Howdy,
You can use the environment variables on windows as well. And
though
I'm not a big M$ fan, Windows XP and 2003 are not bad, I've
.bash_profile[mailto:[EMAIL PROTECTED]working
with them a bit without stability problems.
Yoav Shapira Millennium ChemInformatics
-----Original Message-----
From: Edson Alves Pereira
goodwhilecommand-line (Sent: Friday, December 12, 2003 9:16 AM To: 'Tomcat-User List' Subject: new JVM feature, just an idea
Hello folks, as you know windows has a limit for
something like 128kb ), i�m not a windows fan, but here for a
i
andstill
using this OS.
Then as we cannot change this behaviour ( in win95, win98
winnt,
others i don�t known and i hope never use them ), would be a
idea
make
JVM read classpath form a file named .javarc like
thereand
there
create a entrypoint like:
########################################################### #/home/edson/.javarc
classpath=d:\arquiv~1\j2sdk1.4.1_01\commapi\comm.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinregion.jar;\ d:\usr\local\skinlf-1.2.4\lib\skinlf.jar;\ d:\usr\local\ecs-1.4.1\lib\xerces-1.2.2.jar;\ d:\usr\local\ecs-1.4.1\lib\jakarta-regexp-1.2.jar;\ d:\usr\local\ecs-1.4.1\ecs-1.4.1.jar;\ d:\usr\local\java_cup\java_cup.jar;\ d:\usr\local\hsqldb_v.1.61\lib\hsqldb.jar;\ d:\usr\local\junit3.7\junit.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmltask.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar;\ d:\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar; ###########################################################
Here i give up to find a solution for my winnt, because
confidential,itmachineisn�t
solution. Then i�ll create a new ClassLoader for my winnt
to
find
my
classpath in this file also. What do you think about it? Does
businesscould
be
a
good implementation for JVM for windows or all JVMs?
Regards,
Edson
This e-mail, including any attachments, is a confidential
communication, and may contain information that is
forproprietary and/or privileged. This e-mail is intended only
---------------------------------------------------------------------thethe(an)
copied,individual(s) to whom it is addressed, and may not be saved,
printed, disclosed or used by anyone else. If you are not
yourintended recipient, please immediately delete this e-mail from
computer system and notify the sender. Thank you.
business[EMAIL PROTECTED]To unsubscribe, e-mail:
[EMAIL PROTECTED]For additional commands, e-mail: tomcat-user-
This e-mail, including any attachments, is a confidential
the(an)thecommunication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for
copied,individual(s) to whom it is addressed, and may not be saved,
printed, disclosed or used by anyone else. If you are not
yourintended recipient, please immediately delete this e-mail from
[EMAIL PROTECTED]---------------------------------------------------------------------computer system and notify the sender. Thank you.
To unsubscribe, e-mail:
---------------------------------------------------------------------[EMAIL PROTECTED]For additional commands, e-mail: tomcat-user-
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
