Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Programming in Java

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
petrjanda
Veteran
Veteran
User avatar
Posts: 1557
Joined: Fri Sep 05, 2003 10:04 pm
Location: Brno, Czech Republic
Contact:
Contact petrjanda
Website

Programming in Java

  • Quote

Post by petrjanda » Thu Feb 05, 2004 1:51 pm

Does anyone of you program java under linux?
Im doing a java programming course at school, and I will need a JDK on my linux box, so I want to ask what packages do I have to install?
Top
plasmagunman
l33t
l33t
User avatar
Posts: 604
Joined: Fri Jun 07, 2002 10:25 pm
Location: berlin

  • Quote

Post by plasmagunman » Thu Feb 05, 2004 1:56 pm

Code: Select all

emerge sun-jdk
should be the easiest and most up-to-date. but there are also a gpl implementation

Code: Select all

emerge blackdown-jdk
, which has some problems with 2.6-kernels and nptl compiled glibc, and

Code: Select all

emerge ibm-jdk
, which is the same from ibm.
please, feel free to correct my english. - por favor, corrige mi español.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Feb 05, 2004 3:34 pm

blackdown-jdk is definitely not GPL.
Top
plasmagunman
l33t
l33t
User avatar
Posts: 604
Joined: Fri Jun 07, 2002 10:25 pm
Location: berlin

  • Quote

Post by plasmagunman » Thu Feb 05, 2004 3:58 pm

Genone wrote:blackdown-jdk is definitely not GPL.
sorry, my fault. the last years i was so sure about that, that i never checked. i always thought that's the point of blackdown..
please, feel free to correct my english. - por favor, corrige mi español.
Top
petrjanda
Veteran
Veteran
User avatar
Posts: 1557
Joined: Fri Sep 05, 2003 10:04 pm
Location: Brno, Czech Republic
Contact:
Contact petrjanda
Website

  • Quote

Post by petrjanda » Thu Feb 05, 2004 8:25 pm

plasmagunman wrote:

Code: Select all

emerge sun-jdk
should be the easiest and most up-to-date. but there are also a gpl implementation

Code: Select all

emerge blackdown-jdk
, which has some problems with 2.6-kernels and nptl compiled glibc, and

Code: Select all

emerge ibm-jdk
, which is the same from ibm.
how is that ibm ibm-different to sun-jdk?
Top
KptnKrill
n00b
n00b
User avatar
Posts: 9
Joined: Sat Jan 03, 2004 4:22 am
Location: US, MA

  • Quote

Post by KptnKrill » Thu Feb 05, 2004 9:12 pm

has more informative debugging messages
(- Petition Against Software Patents -) (- Anti-DMCA Petition -)
Top
yak8998
n00b
n00b
Posts: 35
Joined: Fri Jun 06, 2003 11:24 pm

  • Quote

Post by yak8998 » Fri Feb 06, 2004 1:24 am

if your doing it for school I'd recommend sticking with the sun version, assuming thats what your using
"ignorance is bliss for stupid people."
www.primotechnology.com
Top
petrjanda
Veteran
Veteran
User avatar
Posts: 1557
Joined: Fri Sep 05, 2003 10:04 pm
Location: Brno, Czech Republic
Contact:
Contact petrjanda
Website

  • Quote

Post by petrjanda » Fri Feb 06, 2004 7:32 am

okey guys, ive installed sun-jdk, now in which program do i start writing applications and how do i compile them?
Top
Rem
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Thu Nov 07, 2002 4:58 pm
Location: Netherlands
Contact:
Contact Rem
Website

  • Quote

Post by Rem » Fri Feb 06, 2004 7:54 am

I've only just installed it, but haven't worked with it yet, to be honest, but I've heard that eclipse

Code: Select all

emerge eclipse-platform-bin
is pretty good.

Maybe you also need

Code: Select all

eclipse-jdt-bin
.

Rem
Top
axolotl
n00b
n00b
User avatar
Posts: 10
Joined: Wed Feb 04, 2004 5:55 pm
Location: Austria - Vienna

  • Quote

Post by axolotl » Fri Feb 06, 2004 11:45 am

I would definitely recommend eclipse but maybe not the version you get via emerge. It is a bit outdated. Its better to download version 2.1.2 directly from http://www.eclipse.org

For more info on eclipse also see: http://forums.gentoo.org/viewtopic.php?t=131850

If you only need an ide for school with one file/class projects you may have a look at JEdit. I have not tried it myself but I heard it's quite good.
Top
basvdijk
n00b
n00b
User avatar
Posts: 48
Joined: Mon Apr 07, 2003 7:28 am
Location: Netherlands
Contact:
Contact basvdijk
Website

  • Quote

Post by basvdijk » Fri Feb 06, 2004 12:36 pm

petrjanda wrote:
plasmagunman wrote:

Code: Select all

emerge sun-jdk
should be the easiest and most up-to-date. but there are also a gpl implementation

Code: Select all

emerge blackdown-jdk
, which has some problems with 2.6-kernels and nptl compiled glibc, and

Code: Select all

emerge ibm-jdk
, which is the same from ibm.
how is that ibm ibm-different to sun-jdk?
Well I've got trouble with getting Eclipse to run. I'm using the 2.6.1 kernel and the blackdown-jdk. I get an error when I run Eclipse. Is it an option to install the IBM jdk?
Top
petrjanda
Veteran
Veteran
User avatar
Posts: 1557
Joined: Fri Sep 05, 2003 10:04 pm
Location: Brno, Czech Republic
Contact:
Contact petrjanda
Website

  • Quote

Post by petrjanda » Fri Feb 06, 2004 1:28 pm

well i installed sun-jdk, eclipse and eclipse-jdk and eclipse-cdk, and works without a glitch :D
Top
dfuse
Guru
Guru
User avatar
Posts: 395
Joined: Mon Apr 07, 2003 8:14 pm
Location: Belgium

  • Quote

Post by dfuse » Fri Feb 06, 2004 7:34 pm

Well I've got trouble with getting Eclipse to run. I'm using the 2.6.1 kernel and the blackdown-jdk. I get an error when I run Eclipse. Is it an option to install the IBM jdk?
I have the exact same setup, no problems whatsoever. What error do you get and what version of eclipse do you use?
Top
dmartin
Apprentice
Apprentice
User avatar
Posts: 158
Joined: Mon Jan 19, 2004 11:44 pm
Location: Saint Louis, MO, USA
Contact:
Contact dmartin
Website

  • Quote

Post by dmartin » Fri Feb 06, 2004 8:13 pm

FWIW, I'm a Java developer working on Gentoo. I use Netbeans, but Eclipse is good too. It's a Gnome vs. KDE type discussion over which IDE you should use, so I won't get into that mess. Each IDE has its own benefits and limitiations.

But, if you have problems with Eclipse (basvdijk), perhaps it's an alternative. Eclipse uses the SWT toolkit for its interface, whereas Netbeans uses pure Swing. Nowithstanding the benefits of one toolkit or the other, if one doesn't work for you, it doesn't mean the other won't.
Top
basvdijk
n00b
n00b
User avatar
Posts: 48
Joined: Mon Apr 07, 2003 7:28 am
Location: Netherlands
Contact:
Contact basvdijk
Website

  • Quote

Post by basvdijk » Sun Feb 08, 2004 7:33 pm

Eclipse is now working, used the SUN SDK, the Eclipse-jdt-bin and the Eclipse-plaform-bin.
Top
Trejkaz
Guru
Guru
User avatar
Posts: 479
Joined: Thu Nov 14, 2002 11:40 am
Location: Sydney, Australia
Contact:
Contact Trejkaz
Website

  • Quote

Post by Trejkaz » Sun Feb 08, 2004 10:44 pm

I'll throw in a quick comment here, KDevelop 3.0.0 appears to be in portage, and does come with some Java support out of the box, although not nearly as much as Eclipse (it has no code refactoring, AFAIK.) However, KDevelop is a native application, runs faster and uses much less memory than Eclipse. Also I heard from a friend that it's possible to plugin a GVim editor which in the end is what made me just emerge it. :-)

So if you're starting to get annoyed at how slow Eclipse renders its code window, there is another option which isn't NetBeans. :-)

Oh yeah, btw... there is a plugin for Eclipse which implements Vim editing also. The Eclipse plugin is written entirely in Java from the ground up, so it has some minor differences from the real Vim, but it's not too bad actually. I kinda wish someone would port it to IDEA so I could use it in that. >:-)
Top
alwyn
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Wed May 21, 2003 4:18 am

  • Quote

Post by alwyn » Tue Apr 13, 2004 4:34 am

Do you know if kdevelop supports code completion for java?
Top
des09
n00b
n00b
User avatar
Posts: 49
Joined: Sun Nov 03, 2002 7:53 pm
Location: Utah, home of Orin Hatch and SCO

java developer on gentoo...

  • Quote

Post by des09 » Sun Apr 25, 2004 12:51 am

I am a web applications developer, and have worked on various windows, linux and sun flavors. For the last few years I have been very happy on Gentoo, any linux distro is a good choice for Java.

btw, be sure to check out ant http://ant.apache.org, its the best thing to happen to real java development in years :)

Code: Select all

emerge ant
Also, a great (free) book on java for someone familiar with programming is http://www.mindview.net/Books/TIJ/
.sigless since 2002
Top
nephros
Advocate
Advocate
User avatar
Posts: 2139
Joined: Fri Feb 07, 2003 2:46 am
Location: Graz, Austria (Europe - no kangaroos.)
Contact:
Contact nephros
Website

  • Quote

Post by nephros » Sun Apr 25, 2004 1:01 am

Just for completeness I'll throw in that the other big IDE for Java is NetBeans, very feature-rich, but does have some speed issues (especially the GUI redraws).
A nice thing is the built-in tomcat server so you can test webapps right from the IDE. I also liked the cvs support, but I guess that's standard for a IDE.
Please put [SOLVED] in your topic if you are a moron.
Top
brantgurga
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 75
Joined: Tue Dec 30, 2003 9:30 am
Location: Indianapolis, IN
Contact:
Contact brantgurga
Website

  • Quote

Post by brantgurga » Sun Apr 25, 2004 8:34 am

As for as compiling Java, you just need a text editor. Save .java files and then run javac (yourfile).

As far as IDEs, jEdit is pretty good. You get syntax highlighting and folding built-in. You can then add on compiling and Ant support through plugins. There are also plugins to change the interface, run JUnit, run PMD and other Java syntax checkers. The only downside to it is that, being a Java application, it runs slow.
Top
squallbsr
n00b
n00b
User avatar
Posts: 42
Joined: Mon Sep 15, 2003 5:55 am
Location: /dev/TX/SA
Contact:
Contact squallbsr
Website

  • Quote

Post by squallbsr » Mon Apr 26, 2004 3:26 pm

Regarding preformance issues with Java-Eclipse. I'm running an Athlon 900 with 512mb ram - there aren't any real preformance issues. I'm running blackdown-jdk and eclipse 3.0M7. Everything runs all nice and pretty - the thing I have noticed about Java programs and the jvm is they are memory hogs. I have run Borland JBuilder X when its using 90mb ram on my 128mb laptop - talk about slow there. If you plan on developing java - have some memory... btw-Eclipse has a much smaller footprint than JBuilderX. ~(35mb).

My 2cents - don't mind me, I'm just rambling, bored at work...
Bryan Rehbein
Linux User# 352375
Adopt a unanswered post TODAY!

Sleep: A completely inadequate substitute for caffiene.
Top
Post Reply

21 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic