Results 1 to 7 of 7

Thread: Use Java code in PHP

  1. #1
    Join Date
    Jan 2010
    Posts
    311

    Use Java code in PHP

    Hello,
    I have java code and I am currently working on the php project, now the problem is that I can not import the java code in php. Is there a way to do this? I want the functionality of the java code in the php project. How can I do this? Any help will be great. Thank you.

  2. #2
    Join Date
    Nov 2009
    Posts
    343

    Re: Use Java code in PHP

    It depends on what you give to "include", if it is an applet, then yes you can do it. Java code as it is not compatible with php you will need to import some of the libraries. Calling a Java application from PHP code, certainly.

  3. #3
    Join Date
    Dec 2009
    Posts
    202

    Re: Use Java code in PHP

    So, you want your Java application running on the client.

    The fact that you have the php or not does not change nothing, since php runs on the server. Once the client runs the application, is that i received the HTML page that was generated by PHP.

    So you have two options:
    1) The applet, which you should obviously not
    2) Java Web Start, which you'll easily find a preview with Google

  4. #4
    Join Date
    Nov 2009
    Posts
    347

    Re: Use Java code in PHP

    The user does not need to download the program, it must turn on the local server. It runs continuously and must be visible from just a web page as it is a graphics application. Any more information on this is appreciated. Thank you.

  5. #5
    Join Date
    May 2008
    Posts
    222

    Re: Use Java code in PHP

    How do you want your Java application, when executed on the server, to display Frames and Graphics Tables and post customer and react Inter-cable? An applet is downloaded entirely on the client and runs on the client. How do you want, just by turning in an applet JFrame, change where it happens?

  6. #6
    Join Date
    Mar 2010
    Posts
    338

    Re: Use Java code in PHP

    Should not be interactive, it just needs to show what is received and Oracle the application is just a formatting.

  7. #7
    Join Date
    Mar 2010
    Posts
    303

    Re: Use Java code in PHP

    I do not think that php bridge matches the need yann999. It is rather to use Java servlets, particularly in their form of webservice. Desires that the client has access to a real application "heavy" in Java that displays the table, Panels and more. It is also possible that I read too quickly the possibilities offered by php bridge, but it seems to me that, precisely, it is quickly seen.

Similar Threads

  1. help me to understand java code (calendar java code) ?
    By so0oma in forum Software Development
    Replies: 2
    Last Post: 09-01-2011, 11:01 PM
  2. help with java code
    By unikshegz in forum Software Development
    Replies: 2
    Last Post: 24-10-2010, 02:47 PM
  3. Need Explanation for java code
    By javainfo in forum Software Development
    Replies: 2
    Last Post: 10-12-2009, 12:56 AM
  4. Cleaning Up Java Code
    By Namchan in forum Software Development
    Replies: 3
    Last Post: 20-04-2009, 11:48 AM
  5. Code execution in JAVA
    By jasonR in forum Software Development
    Replies: 1
    Last Post: 27-01-2009, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •