i hv edited my php.ini file as below 4 me to invoke java methods thru php n used t sample coding..
bt also i get t same error as in title!!!
i hv also restarted my apache server..
im using php4, jdk1.5.0, apache2.0.48

[Java]
;extension=php_java.dll
;java.class.path =" .\php_java.jar;c:\myclasses"
;java.home = C:\Program Files\Java\jdk1.5.0
;java.library = D:\Program Files\java\jre\bin\hotspot\jvm.dll
;java.library.path = c:\php4\extensions\

i also don knw if my edited php.ini is right!
c:\myclasses--wats tis actually?? do i need 2 create any new folder in c:
kindly do reply me soon so tat i can proceed wit my project..
thanks..

    For one thing, you need to remove the semi-colons at the start of each of those lines, since otherwise they are considered to be comments.

    PS: You should consider submitting your posts here using regular written English instead of chatroom/text message shorthand. It will encourage members to take your posts seriously, make them easier to read and understand (especially for the many members for whom English is not their first language) and to help allow site/web searches to identify what your post is about.

      The only other thing that strikes me is your referencing to a C drive and a D drive. It's unusual to have a Program Files folder etc. in both.

      Are you sure your path to the java is right?

        i made the changes as instructed..
        but also i get some other error as "Fatal error: java.lang.NoClassDefFoundError: net/php/reflect in.."
        i dont know why i get this!
        kindly do suggest me regarding what needs to be done..

        [Java]
        extension=php_java.dll
        java.class.path =" .\php_java.jar;c:\myclasses"
        java.home = C:\Program Files\Java\jdk1.5.0
        java.library = D:\Program Files\java\jre\bin\hotspot\jvm.dll
        java.library.path = c:\php4\extensions\

        regarding the path of "jvm.dll", im not sure if this is correct because i have this dll file in many locations! so i dont exactly know which path i should use..
        and one more is "c:\myclasses".. what is this?

        thanks..

          6 days later

          friends..
          im helpless..
          can anyone get me out of java and php connection..
          expecting replies that will help me proceed..

            googling 'NoClassDefFoundError' seems to suggest you are trying to load (use) a class that doesn't exist.

              Write a Reply...