Help - Search - Members - Calendar
Full Version: Java Paths
The Planet Forums > Control Panels > cPanel/WHM
mark1hos
Can anyone help, a client has asked for the following:

WAP mime types for delivery

and can you also give me details of where I should put Java servlets, what the URL would for them, what the classpath is currently set to, where I can put .jar files, what version of Java (J2SE and J2EE) are currently running, and how to stop and start the JVM should I need to do so.

Thank you in advance for anyone who can help on this matter
oanielsen
For Java servlets you will need to be running Tomcat or Resin on your server. Installs on both will give you the path info you want. Search is your friend! icon_smile.gif Not sure on the WAP Mime Types
mark1hos
We have tomcat installed.

However, where do I go to find out the information?
Dave#
QUOTE
Originally posted by mark1hos
We have tomcat installed.

However, where do I go to find out the information?


export $classpath:/new/classpath

in your startup script will probably be easiest although you really should have the classes under /WEB-INF/classes in the app
mark1hos
Hi Dave#

I know it sounds dumb, but I do not actually know what you have posted means :-(

Sorry. Please could you possibly elaborate?
Dave#
QUOTE
Originally posted by mark1hos
Hi Dave#

I know it sounds dumb, but I do not actually know what you have posted means :-(

Sorry.  Please could you possibly elaborate?


do you have a tomcat startup script in /etc/init.d/ or a link to startup.sh somewhere?

Whatever your using to start tomcat add

export $classpath:/new/classpath

somewhere near the top.

The second point I was making was that you should never have to do this unless you NOT putting your class files under WEB-INF/classes where classes SHOULD be placed under the JAVA spec. Tomcat should find all the classes under WEB_INF/classes without hacking the startup scripts.
mark1hos
So basically I just tell the client to place them in web-inf/classes?
Dave#
QUOTE
Originally posted by mark1hos
So basically I just tell the client to place them in web-inf/classes?


yup
mark1hos
so for this questions

"can you also give me details of where I should put Java servlets, what the URL would for them, what the classpath is currently set to, where I can put .jar files, what version of Java (J2SE and J2EE) are currently running, and how to stop and start the JVM should I need to do so"

I just say web-inf/classes ?

Cheers once again
Dave#
QUOTE
Originally posted by mark1hos
so for this questions  

"can you also give me details of where I should put Java servlets, what the URL would for them, what the classpath is currently set to, where I can put .jar files, what version of Java (J2SE and J2EE) are currently running, and how to stop and start the JVM should I need to do so"

I just say web-inf/classes ?

Cheers once again


http://jakarta.apache.org/tomcat/tomcat-4....vhosthowto.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.