Results 1 to 3 of 3
  1. #1
    freesia09 is offline Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Default Compile Java API into transparent files

    Hi,

    Since I'm not actually new to Java programming but to its integration, I thought my post is better here.

    My situation is I have java API (.java classes that use mySQL database) which are a part of a package in a NetBeans project. I have a php developer on a remote computer who needs to write a web interface (in php) that calls methods from this API.

    My question is what type of files can I send him to allow him to call the API without giving him access to the actual code? I tried compiling the .java into .class but I think those can be easily decompiled back into .java making the code visible.

    Any suggestions?

    Thanks

  2. #2
    ics1010 is offline Member
    Join Date
    Aug 2012
    Posts
    10
    Rep Power
    0

    Default Re: Compile Java API into transparent files

    You designed the API. Without knowing what kind it is, nobody can really tell you how to expose it because we have no context to work in. Typically for things like this you design a SOAP or similar protocol in the api and the remote php dude just makes requests against the server based on the protocol you implement. Neither cares what the other's code is.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,508
    Blog Entries
    7
    Rep Power
    20

    Default Re: Compile Java API into transparent files

    Quote Originally Posted by freesia09 View Post
    Hi,

    Since I'm not actually new to Java programming but to its integration, I thought my post is better here.
    Moving this back to the New to Java section where it belongs.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Need help to compile java files to class
    By Candesco in forum New To Java
    Replies: 13
    Last Post: 12-24-2011, 07:24 PM
  2. Compile a set of java files for a sudoku program
    By kanishk.dudeja in forum New To Java
    Replies: 3
    Last Post: 06-16-2011, 04:52 PM
  3. Replies: 0
    Last Post: 11-26-2010, 09:34 PM
  4. How to Compile JavaScript source into Java class files
    By tosreejith in forum New To Java
    Replies: 0
    Last Post: 04-06-2009, 03:12 PM
  5. Replies: 6
    Last Post: 02-06-2009, 08:05 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
  •