Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 09-02-2008, 10:49 PM   #1
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-02-2008, 11:40 PM   #2
Registered: Mar 2007
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 160

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

If you want to compile to byte code (usable on other 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.


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 06:54 PM
running java based programs linuxhippy Slackware 8 01-22-2006 11:45 PM
Building an OpenBSD 3.6 firewall/router... Erik Thorsson *BSD 6 02-11-2005 03:27 PM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 12:52 PM
Problems on running java programs indro Linux - General 1 07-19-2001 11:34 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:59 AM.

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