Bug 53415 - javasupport is not FreeBSD friendly
Summary: javasupport is not FreeBSD friendly
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: Java (show other bugs)
Version: git master
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-25 19:37 UTC by David Holm
Modified: 2006-12-17 18:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm 2003-01-25 19:37:28 UTC
Version:           3.0.0 (CVS) (using KDE KDE 3.0.99)
Installed from:    FreeBSD Ports
Compiler:          gcc 2.95.4 
OS:          FreeBSD

It seems Gideon filters out jdk's with green threads, though this is the default on FreeBSD. I removed the grep -v and compiled it anyway which seems to work.
Also, on freebsd the jdks are installed as /usr/local/j*dk* for FreeBSD compiled native versions and /usr/local/linux-*-j*dk* for linux binary packages. The configure script only looks in /usr and /opt.
Also, when compiling a java (-kde) project it seems that the @JAVAC@ is never replaced with anything, might be another FreeBSD issue as the java environment isn't placed in the path by default, the solution I guess would be to record where the jdk was found in /usr/local.
Another thing, why is there no Hello World java project? I don't want qt and all that shit in my java apps =). I could send you a patch which adds such a project but I guess you could just as easily add it yourself as it seemed pretty straightforward to add more project templates.
Comment 1 Harald Fernengel 2003-03-02 12:47:06 UTC
Okay, the hello world java example is now in CVS. As no one else seems to run FreeBSD and I don't 
have a box in reach, can you please try to fix those problems and send a patch? 
 
Thanks, 
Harry 
Comment 2 Dominik Haumann 2003-09-10 17:55:11 UTC
perhaps this helps a bit. 
I do not have freebsd so I can't help, sorry. 
<lauri> in any case, what do you need to fix this? on FreeBSD only the OS itself is in /usr and /
opt will never exist, you need to look at /usr/local always (so, for every kdevelop created app) 
everything needs "--with-extra-includes=/usr/local/include --with-extra-libs=/usr/local/lib") 
Java is even more special,  it's installed as the bug report says, so, what is the existing java 
configure check? 
<dhaumann> kdevelop/parts/appwizard/javahello 
<lauri> what's the simplest way to find the right JAVAC here? 
<lauri> or, why isn't the JAVAC = @JAVAC@ in Makefile.in enough 
<leafy> $JAVA_HOME/bin/javac would be nice 
<lauri> ah, JAVA_HOME is promising 
<leafy> but don't expect every system sets it as global 
<leafy> include bsd.java.mk and defind NEED_JAVAC in the makefile 
<lauri> looks like we can trivially pick up the right javac but not until you have a release - in the 
meantime, I'm not sure how, other than setting JAVAC = $JAVA_HOME/bin/javac to fix it in the 
CVS builds 
<lauri> Makefile.am could be hacked to do that if it's FreeBSD without too much trouble, I expect 
<lauri> assign it to me, come nag me about it in a about a week (or at least, after 3.1.4 is 
released) and i'll make sure it gets fixed somehow 
<lauri> I just don't have actual time right this minute to rebuild kdevelop or work on it, but once 
this release is done, I will 
<dhaumann> ok. thanks all 
Comment 3 Codo 2004-08-04 16:53:07 UTC
I am running Gentoo Linux and I have the @JAVAC@ issue.  I am going to check the Makefiles, but, Shouldn't the makefiles make use of the environment variables instead of looking for the physical location of the files in the directories?
Comment 4 Amilcar do Carmo Lucas 2004-08-04 23:08:04 UTC
We need more info from a FreeBDS system
Comment 5 Mathieu Chouinard 2006-12-17 18:07:23 UTC
fixed