php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6760 javac of net/php/servlet.java fails
Submitted: 2000-09-14 09:46 UTC Modified: 2001-01-30 03:48 UTC
From: Wolfram dot Schmidt at iao dot fhg dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Wolfram dot Schmidt at iao dot fhg dot de
New email:
PHP Version: OS:

 

 [2000-09-14 09:46 UTC] Wolfram dot Schmidt at iao dot fhg dot de
Make output:
...
javac net/php/reflect.java
javac -classpath .:.: net/php/servlet.java
net/php/servlet.java:23: Class java.io.IOException not found in import.
import java.io.IOException;
       ^
...

The reason is that the wrong javac is used.
I configured with --with-java=/usr/java1.2 which is not in $PATH. If I prepend /usr/java1.2/bin to $PATH I get to the next error which has nothing to do with this issue.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-18 10:28 UTC] sniper@php.net
Does this happen with latest snapshot from http://snaps.php.net/ ??

--Jani
 [2000-12-20 15:28 UTC] akilov@php.net
This is a CLASSPATH setup problem.  Your classpath must contain the standard java runtime classes (classes.zip if JDK 1.1.x and rt.jar if JDK 1.2.x).  Also, if trying to build servlet, your classpath should include servlet.jar which is part of the JSDK or your Java webserver (e.g. Tomcat) distribution.
 [2000-12-20 15:30 UTC] akilov@php.net
One more thing.  You should also add . (for current directory) into your classpath since during the compile step the php java classes are copied/built in the local build directory.
 [2001-01-30 03:48 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 06:01:26 2024 UTC