----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!
We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.
Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------
> if you really did, what you wrote, that won't work:
Why not?
> >I have apache/JServ (1.3.9/ (1.0 win/1.1b2lin) running on a windows machine
> >and a linux machine
> >In windows i have the repository pointing to a dir: (the default
> >jserv\servlets)
> >in this dir i put al the Servlet classes (not in a Jar file but plain
> >classes)
> >This works great.
> >
> >But if i want to do the same under linux. I can't get it to work.
> >I changed the default dir to: \data\servlets\
>
> You mean /data/servlets?
Yes, Sorry windows habbit.
>
> >copied the try outs: Hello and IsItWorking in that dir
> >Thoose classes do work. But if i input a class that has a package
> >and therefor is in a dir. It doesn't work!
>
> So you put IsItWorking.class in /data/servlets/test?
> Correct.
> Make sure that you get the package name in test/IsItWorking.java
> right and that the class is public.
Yes it is public, i added package test;
I added something more to test it:
public static void main(String[] args)
{
System.out.println(TITLE);
}
So i could test if java at the prompt/console also didn't find that class.
But it runs fine!!!
So the IsItWorking class has a added
package test; line.
it is public
and has a added main.
is in the dir /data/servlets/test
The IsItWorking class without modifications is in /data/servlets and that one works.
now i go in /data/servlets
type:
java test.IsItWorking
and it is working!
So the VM find the class when excecuted in the console but JServ doesn't !
> Do you get any error messages?
yes in the errordataservlet_log or something: (JServs error log)
ClassNotFound: test.IsItWorking
greetings
johan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]