File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Write Classpath as a seperate file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Write Classpath as a seperate file" Watch "Write Classpath as a seperate file" New topic
Author

Write Classpath as a seperate file

Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
I am placing my jar files on WEB-INF/lib/ directory. But it ask for classpath. It asks whether the jar files is in path or not. So, i need to write Classpath file. How to write it as a seperate file. So it can be submitted on remote host. And it automatically detected. My host server is resin . Can anyone have idea?
pawank gupta
Ranch Hand

Joined: Jun 07, 2006
Posts: 34
this problem r u getting at compilation time of some java file r when running ur web application

bcause i dont think on running time of web app it gives u error

and if it give u compilation time then u have to set classpath r make a bat file
Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
But my host server is resin. then what classpath file naming i used. then in that how i used to set class path.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

pawank gupta,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here. In particular please see: UseRealWords

Abbreviations such as "u" or "ur" in place of "you" and "you are"
or "you're" confound language translation software making it hard
for our non-English speaking members to read your posts.

Thank you for helping out in this regard.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
any one have an idea abt question i posted. Please find solution for that.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Your question is hard to read.
Using proper capitalization, punctuation, and spacing between sentences may
increase your odds at getting someone who can help to actually read your question.

Can you explain what "it" is in this sentence?
But it ask for classpath.

When and where are you being prompted for a classpath?
[ July 11, 2006: Message edited by: Ben Souther ]
Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
Sorry for inconvienence. When i accessing a jsp page

"No Data found. Make sure that either Data.jar or Sent.jar is in the classpath"

But i put these jar files in "WEB-INF/lib/" Directory

I need to write classpath file so that these jar files can accessing automatically.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I know of no spec compliant way to write a classpath file.
If you believe that Resin has a way to do this, let me know and I'll move the thread to the Resin forum.

If the jar files are in WEB-INF/lib, they should be found.
Have you checked the file permissions on those files?
Have they been corrupted? (if you copy them to a temp dir, can you open them with jar or winzip and see the contents? Did you compare the file size with the originals?).
Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
Thank you
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ram kANANA:
Thank you


You're welcome.

PS: It's not a part of our naming policy but I'm sure everyone would be grateful if you would fix the casing in your screen name.
In internet forums, typing in all caps is the equivalent to yelling and is considered rude.
You can change it here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write Classpath as a seperate file