LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 09-02-2008, 11:49 PM   #1
LinuxNewbie999
Member
 
Registered: Oct 2006
Distribution: FreeBSD
Posts: 162

Rep: Reputation: 30
[openbsd]Building and running Java programs in terminal.


I had Netbeans installed in my openbsd system but i don't like the interface and i prefer to do the compiling in terminal. What package i need to install? I need to install GCJ??
 
Old 09-03-2008, 12:40 AM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 476
Blog Entries: 122

Rep: Reputation: 74
Define what you mean by "compile"...

If you want to compile to byte code (usable on other platforms...like making jars or class files), then you need to run javac. If you want to compile to native machine code for openbsd, then gcj would be the way to go. GCJ tends to run faster than byte-compiled programs, but it tends to not support as much of the java language as the javac compiler does. As a bonus, though, GCJ compiled programs can utilize both gcj compiled and byte compiled java, which is nice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Running Terminal Programs in the Background with Screen LXer Syndicated Linux News 0 08-24-2006 07:54 PM
running java based programs linuxhippy Slackware 8 01-23-2006 12:45 AM
Building an OpenBSD 3.6 firewall/router... Erik Thorsson *BSD 6 02-11-2005 04:27 PM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 01:52 PM
Problems on running java programs indro Linux - General 1 07-19-2001 12:34 PM


All times are GMT -5. The time now is 10:30 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration