LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2003, 01:49 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Questions about Java


I'm not a programmer really. I know a little bit of PHP and some C nothing major though. But I have a question about Java...

Does Java always have to use the JRE? Is it possible to make "compiled" java or something along the lines of that with Java? and if its possible, why dont more big developed projects like Open Office do this?
 
Old 11-03-2003, 03:52 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
There's the gnu gcj compiler that can compile into native code eliminating the need for a Java virtual machine, I don't know much about it thoughl, it's limitations and what have you, all I've done with it is compile a simple "Hello World" to test it out. It's certaintly very interesting though.
 
Old 11-03-2003, 04:07 PM   #3
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Re: Questions about Java

Quote:
Originally posted by wh33t
I'm not a programmer really. I know a little bit of PHP and some C nothing major though. But I have a question about Java...

Does Java always have to use the JRE? Is it possible to make "compiled" java or something along the lines of that with Java? and if its possible, why dont more big developed projects like Open Office do this?
linux boosts the kaffe development environment ( ) which is aimed at doing precisely that. i have not used it myself but it's freely available for d/l

and to answer your 2nd question, StarOffice was origionally written in C++, a project that commensed early 1990's. Around 1995 the entire project was scrapped in favor of a complete Java solution, which ended up getting turned into byte code using a technique similiar to that applied by kaffe.

- perry

under mandrake: kaffe- 1.0.7-2mdk.rpm

Name: kaffe
Version: 1.0.7-2mdk
Size: 2952 KB

Summary: A free virtual machine for running Java(TM) code

Description: Kaffe is a free virtual machine designed to execute Java(TM) bytecode. Kaffe can be configured in two modes. In the first mode, it operates as a pure bytecode interpreter (not unlike Javasoft's machine). In the second mode, it performs "Just-In-Time" code conversion from the abstract code to the host machine's native code. The second mode will ultimately allow execution of Java code at the same speed as standard compiled code, while also maintaining the advantages and flexibility of code independence.

Install the kaffe package if you need a Java virtual machine.


Last edited by perry; 11-03-2003 at 04:12 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
More Java Questions Matir Programming 4 03-07-2005 04:42 PM
Questions in regards to learning C, C++ and Java... eBopBob Programming 8 12-21-2004 10:09 AM
Java: Some questions about JTree decadent Programming 1 04-01-2004 05:32 AM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 08:24 PM
2 Quick Java Questions Crashed_Again Programming 13 09-10-2003 04:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration