Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-15-2007, 04:39 PM   PM User | #1
mrjameer
Regular Coder

 
Join Date: Aug 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
mrjameer is an unknown quantity at this point
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
mrjameer is offline   Reply With Quote
Old 04-15-2007, 06:34 PM   PM User | #2
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
__________________

www.eXfer.net
david_kw is offline   Reply With Quote
Old 04-15-2007, 06:40 PM   PM User | #3
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
__________________

www.eXfer.net
david_kw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:29 PM.


Advertisement
Log in to turn off these ads.