Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    compile the .java file to .class file

    hi,


    can any body tell me how i can convert the .java file in to .class on the fly(without using javac command).are there any compilers simply do this work

    thanks
    mrjameer

  • #2
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've never done it and never seen it done, but it should be possible. I believe the javac application itself is written in java so it would just be a matter of finding the api and bundling those classes with your application. I found this one link to a similar question.

    http://www.jguru.com/faq/view.jsp?EID=559478

    david_kw

  • #3
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is another link to a likely even more useful thread I found on javaranch where they essentially discuss your question. They even have some sample code (not for the faint of heart).

    http://saloon.javaranch.com/cgi-bin/...08704&go=older

    Good luck. :)

    david_kw


  •  

    Posting Permissions

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