Re: Java on OpenBSD 5.3

2013-07-20 Thread opendaddy
On 19. juli 2013 at 9:13 PM, Miod Vallat m...@online.fr wrote:

 Pretty sure it takes more than 1.7G to build Java.

But then how can java people pretend it has any usefulness, besides
filing disks?

They say Android apps are just an excuse for Java devs to keep programming in 
Java. Now that HTML5 can access the phone's camera, microphone etc., it's just 
a matter of time before native mobile apps become obsolete.

O.D.



Re: Java on OpenBSD 5.3

2013-07-20 Thread opendaddy
On 20. juli 2013 at 3:54 PM, Amit Kulkarni amitk...@gmail.com wrote:

 Nope, plenty of disk space left in /usr/local (my ports are in
 /usr/local/ports).

why are ports inside /usr/local. it should be /usr/ports. Some 
ports may fail.

Maybe, yeah. I updated PORTSDIR in /etc/mk.conf though. Anyway I just gotta 
work on freeing up some space and I should be good. Thanks.

O.D.



Re: Java on OpenBSD 5.3

2013-07-20 Thread opendaddy
On 20. juli 2013 at 5:34 PM, Jan Stary h...@stare.cz wrote:

Why are you building the (huge) port,
instead of simply installing the package?

Whoa. When did that get there? Thanks man!

O.D.



Re: Java on OpenBSD 5.3

2013-07-19 Thread Matthew Dempsky
write error?  Did you run out of disk space?


On Fri, Jul 19, 2013 at 7:55 AM, openda...@hushmail.com wrote:

 Hi,

 Anybody managed to build /usr/ports/devel/jdk on OpenBSD 5.3?

 Getting a rather nasty compile error here on amd64, was wondering if maybe
 someone could help? Tried asking on the ports mailinglist as well as
 reaching out to the port maintainer but no luck.

 http://pastie.org/8155843

 O.D.



Re: Java on OpenBSD 5.3

2013-07-19 Thread opendaddy
On 19. juli 2013 at 3:17 PM, Matthew Dempsky matt...@dempsky.org wrote:

write error?  Did you run out of disk space?

Nope, plenty of disk space left in /usr/local (my ports are in 
/usr/local/ports).

% df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  985M   50.8M885M 5%/
/dev/wd0k  9.2G434M8.3G 5%/home
/dev/wd0d  1.5G   12.0K1.5G 0%/tmp
/dev/wd0f  1.8G404M1.3G24%/usr
/dev/wd0g 1005M192M763M20%/usr/X11R6
/dev/wd0h  3.7G1.8G1.7G52%/usr/local
/dev/wd0j  2.0G2.0K1.9G 0%/usr/obj
/dev/wd0i  1.3G2.0K1.3G 0%/usr/src
/dev/wd0e  2.4G   77.5M2.2G 3%/var

O.D.


On Fri, Jul 19, 2013 at 7:55 AM, openda...@hushmail.com wrote:

 Hi,

 Anybody managed to build /usr/ports/devel/jdk on OpenBSD 5.3?

 Getting a rather nasty compile error here on amd64, was 
wondering if maybe
 someone could help? Tried asking on the ports mailinglist as 
well as
 reaching out to the port maintainer but no luck.

 http://pastie.org/8155843

 O.D.



Re: Java on OpenBSD 5.3

2013-07-19 Thread Marc Espie
On Fri, Jul 19, 2013 at 09:12:57PM +, Miod Vallat wrote:
  Pretty sure it takes more than 1.7G to build Java.
 
 But then how can java people pretend it has any usefulness, besides
 filing disks?
  ^^

Rightful cobol successor, then

See yesterday's dilbert...

http://dilbert.com/strips/comic/2013-07-18/



Re: Java on OpenBSD 5.3

2013-07-19 Thread Jack Woehr

Miod Vallat wrote:

Pretty sure it takes more than 1.7G to build Java.

But then how can java people pretend it has any usefulness, besides
filing disks?

Miod


métaphysico-théologo-cosmolo-nigologie :)

Language wars are s-o-o-o 20th century.


--
Jack Woehr   # We commonly say we have no time when,
Box 51, Golden CO 80402  #  of course, we have all that there is.
http://www.softwoehr.com # - James Mason, _The Art of Chess_, 1905



Re: Java on OpenBSD 5.3

2013-07-19 Thread patrick keshishian
On Fri, Jul 19, 2013 at 2:23 PM, Jack Woehr jwo...@softwoehr.com wrote:
 Miod Vallat wrote:

 Pretty sure it takes more than 1.7G to build Java.

 But then how can java people pretend it has any usefulness, besides
 filing disks?

 Miod


 métaphysico-théologo-cosmolo-nigologie :)

Hey, what editor did you type that in?

 Language wars are s-o-o-o 20th century.



Re: Java on OpenBSD 5.3

2013-07-19 Thread Jack Woehr

openda...@hushmail.com wrote:

On 19. juli 2013 at 3:17 PM, Matthew Dempsky matt...@dempsky.org wrote:

plenty of disk space left in /usr/local (my ports are in /usr/local/ports).


/dev/wd0h  3.7G1.8G1.7G52%/usr/local


Pretty sure it takes more than 1.7G to build Java.

--
Jack Woehr   # We commonly say we have no time when,
Box 51, Golden CO 80402  #  of course, we have all that there is.
http://www.softwoehr.com # - James Mason, _The Art of Chess_, 1905



Re: Java on OpenBSD 5.3

2013-07-19 Thread Juan Francisco Cantero Hurtado
On Fri, Jul 19, 2013 at 08:37:40PM +, openda...@hushmail.com wrote:
 On 19. juli 2013 at 3:17 PM, Matthew Dempsky matt...@dempsky.org wrote:
 
 write error?  Did you run out of disk space?
 
 Nope, plenty of disk space left in /usr/local (my ports are in 
 /usr/local/ports).
 
 % df -h

Check also the output of df -i.

 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  985M   50.8M885M 5%/
 /dev/wd0k  9.2G434M8.3G 5%/home
 /dev/wd0d  1.5G   12.0K1.5G 0%/tmp
 /dev/wd0f  1.8G404M1.3G24%/usr
 /dev/wd0g 1005M192M763M20%/usr/X11R6
 /dev/wd0h  3.7G1.8G1.7G52%/usr/local
 /dev/wd0j  2.0G2.0K1.9G 0%/usr/obj
 /dev/wd0i  1.3G2.0K1.3G 0%/usr/src
 /dev/wd0e  2.4G   77.5M2.2G 3%/var
 
 O.D.
 
 
 On Fri, Jul 19, 2013 at 7:55 AM, openda...@hushmail.com wrote:
 
  Hi,
 
  Anybody managed to build /usr/ports/devel/jdk on OpenBSD 5.3?
 
  Getting a rather nasty compile error here on amd64, was 
 wondering if maybe
  someone could help? Tried asking on the ports mailinglist as 
 well as
  reaching out to the port maintainer but no luck.
 
  http://pastie.org/8155843
 
  O.D.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Java on OpenBSD 5.3

2013-07-19 Thread Martin Schröder
2013/7/19  openda...@hushmail.com:
 % df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  985M   50.8M885M 5%/
 /dev/wd0k  9.2G434M8.3G 5%/home
 /dev/wd0d  1.5G   12.0K1.5G 0%/tmp
 /dev/wd0f  1.8G404M1.3G24%/usr
 /dev/wd0g 1005M192M763M20%/usr/X11R6
 /dev/wd0h  3.7G1.8G1.7G52%/usr/local
 /dev/wd0j  2.0G2.0K1.9G 0%/usr/obj
 /dev/wd0i  1.3G2.0K1.3G 0%/usr/src
 /dev/wd0e  2.4G   77.5M2.2G 3%/var

Buy a harddisc from this decade, please.

Best
   Martin



Re: Java on OpenBSD 5.3

2013-07-19 Thread Marc Espie
On Fri, Jul 19, 2013 at 03:06:16PM -0600, Jack Woehr wrote:
 openda...@hushmail.com wrote:
 On 19. juli 2013 at 3:17 PM, Matthew Dempsky matt...@dempsky.org wrote:
 plenty of disk space left in /usr/local (my ports are in /usr/local/ports).
 
 
 /dev/wd0h  3.7G1.8G1.7G52%/usr/local
 
 Pretty sure it takes more than 1.7G to build Java.

Depends which one, which platform.

amd64:
devel/jdk/1.6(jdk-1.6.0.32p4) 1694740
devel/jdk/1.7(jdk-1.7.0.21v0) 2120198

i386;
devel/jdk/1.6(jdk-1.6.0.32p4) 1548448
devel/jdk/1.7(jdk-1.7.0.21v0) 3169942

so, 1.6 would fit, barely.

1.7 ? no way.

isn't dpb -s great ? :)



Re: Java on OpenBSD 5.3

2013-07-19 Thread Miod Vallat
 Pretty sure it takes more than 1.7G to build Java.

But then how can java people pretend it has any usefulness, besides
filing disks?

Miod



Re: Java on OpenBSD 5.3

2013-07-19 Thread Nick Holland
On 07/19/13 18:37, Martin Schröder wrote:
 2013/7/19  openda...@hushmail.com:
 % df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  985M   50.8M885M 5%/
 /dev/wd0k  9.2G434M8.3G 5%/home
 /dev/wd0d  1.5G   12.0K1.5G 0%/tmp
 /dev/wd0f  1.8G404M1.3G24%/usr
 /dev/wd0g 1005M192M763M20%/usr/X11R6
 /dev/wd0h  3.7G1.8G1.7G52%/usr/local
 /dev/wd0j  2.0G2.0K1.9G 0%/usr/obj
 /dev/wd0i  1.3G2.0K1.3G 0%/usr/src
 /dev/wd0e  2.4G   77.5M2.2G 3%/var
 
 Buy a harddisc from this decade, please.
 
 Best
Martin
 

and then install the package.



Re: java on openbsd 4.0?

2007-01-13 Thread bofh

On 1/12/07, Kurt Miller [EMAIL PROTECTED] wrote:

Attached are two patch files that you can drop
in /usr/ports/devel/jdk/1.5/patches that hopefully
will fix your amd64 build issue. Please let me know
if this fixes it for you and I'll work on getting
this in 4.0-stable.


Thank you very much, the patches work for jdk-1.5p19 (from 4.0
ports.tar.gz) and for jdk-1.5p20 (cvs update for OPENBSD_4_0).


BTW, I replied to your email on ports@ (the mailing
list). Ports build problems should be dealt with there.
For example I have 17,838 unread messages from [EMAIL PROTECTED]
I easily could have missed your issue.


Sorry about that.  I'm replying to ports too (unless it bounces).



Re: java on openbsd 4.0?

2007-01-10 Thread bofh

On 1/10/07, J.C. Roberts [EMAIL PROTECTED] wrote:

The only outstanding question is, has bofh gotten 1.5 to compile and
install correctly on his amd64 box with Kurt's previous suggestion?


?  The first note from Kurt says he's working on a patch, and the
second mentioned a thread in ports@, and I didn't see anything that
refers to what I was doing.

I did update ports (nightly cvs with -rOPENSD_4_0) and jdk went from
p20 to p21, IIRC.  The new build failed too.

As an aside, on amd64, since 3.9-current from months ago, jdk 1.5 only
required kaffe, and I had used it without issues (see:
[EMAIL PROTECTED]).

But I appreciate the time and effort you had put in to help me,
seriously.  But that's why my original email was a little brief.



Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Monday 08 January 2007 17:38, bofh wrote:
 I tried installing the jdk I had built under 3.9, jdk-1.5.0p14, that
 installed without problems, however:

It has been said many, many times yet people still regularly make same 
the mistake which you have made: Packages (and ports) from one version 
of OpenBSD are not supported under other versions. 

You might think you and your FrankenSystem are somehow clever but more 
often than not, you are wasting your time. You are much better off 
doing things in the supported manner.



Re: java on openbsd 4.0?

2007-01-09 Thread bofh

On 1/9/07, J.C. Roberts [EMAIL PROTECTED] wrote:

On Monday 08 January 2007 17:38, bofh wrote:
 I tried installing the jdk I had built under 3.9, jdk-1.5.0p14, that
 installed without problems, however:

It has been said many, many times yet people still regularly make same
the mistake which you have made: Packages (and ports) from one version
of OpenBSD are not supported under other versions.

You might think you and your FrankenSystem are somehow clever but more
often than not, you are wasting your time. You are much better off
doing things in the supported manner.


Dude,
I *was* trying to set it up in the supported manner.  See the previous
parts of the email.  I was just testing it to see if it may work,
since the supported manner did not work.

Thanx.



Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Tuesday 09 January 2007 06:20, bofh wrote:
 On 1/9/07, J.C. Roberts [EMAIL PROTECTED] wrote:
  On Monday 08 January 2007 17:38, bofh wrote:
   I tried installing the jdk I had built under 3.9, jdk-1.5.0p14,
   that installed without problems, however:
 
  It has been said many, many times yet people still regularly make
  same the mistake which you have made: Packages (and ports) from one
  version of OpenBSD are not supported under other versions.
 
  You might think you and your FrankenSystem are somehow clever but
  more often than not, you are wasting your time. You are much better
  off doing things in the supported manner.

 Dude,
 I *was* trying to set it up in the supported manner.  See the
 previous parts of the email.  I was just testing it to see if it may
 work, since the supported manner did not work.

 Thanx.

I've been in no rush to build and install java, and in fact I've been 
dreading the idea for a couple months but since you're hitting 
problems, I decided to start on it after reading your post to see if I 
could help. 

In the handful of hours since my last reply, I've managed to download, 
build and install jdk 1.3 from ports and I've got 1.4 currently 
building while I type this. As you probably know, having a working JVM 
is a prerequisite for building 1.4 and 1.5. As soon as I get 1.4 built 
and installed, I'll start on 1.5

Like OpenOffice, building java seems to use a a lot of swap. How large 
is your swap partition/slice?

My limits are (far) more  conservative than yours:

$ ulimit -a
time(cpu-seconds)unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 524288
stack(kbytes)4096
lockedmem(kbytes)315906
memory(kbytes)   946192
nofiles(descriptors) 64
processes64
$

Lastly, as what user are you building the port?

Kind Regards,
JCR



Re: java on openbsd 4.0?

2007-01-09 Thread Gustavo Rios

Is it possible to build jdk;java directly from openbsd: I always
believed i had to install linux emulation first.

Thanks for the clarifications.

On 1/9/07, J.C. Roberts [EMAIL PROTECTED] wrote:

On Tuesday 09 January 2007 06:20, bofh wrote:
 On 1/9/07, J.C. Roberts [EMAIL PROTECTED] wrote:
  On Monday 08 January 2007 17:38, bofh wrote:
   I tried installing the jdk I had built under 3.9, jdk-1.5.0p14,
   that installed without problems, however:
 
  It has been said many, many times yet people still regularly make
  same the mistake which you have made: Packages (and ports) from one
  version of OpenBSD are not supported under other versions.
 
  You might think you and your FrankenSystem are somehow clever but
  more often than not, you are wasting your time. You are much better
  off doing things in the supported manner.

 Dude,
 I *was* trying to set it up in the supported manner.  See the
 previous parts of the email.  I was just testing it to see if it may
 work, since the supported manner did not work.

 Thanx.

I've been in no rush to build and install java, and in fact I've been
dreading the idea for a couple months but since you're hitting
problems, I decided to start on it after reading your post to see if I
could help.

In the handful of hours since my last reply, I've managed to download,
build and install jdk 1.3 from ports and I've got 1.4 currently
building while I type this. As you probably know, having a working JVM
is a prerequisite for building 1.4 and 1.5. As soon as I get 1.4 built
and installed, I'll start on 1.5

Like OpenOffice, building java seems to use a a lot of swap. How large
is your swap partition/slice?

My limits are (far) more  conservative than yours:

$ ulimit -a
time(cpu-seconds)unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 524288
stack(kbytes)4096
lockedmem(kbytes)315906
memory(kbytes)   946192
nofiles(descriptors) 64
processes64
$

Lastly, as what user are you building the port?

Kind Regards,
JCR




Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Tuesday 09 January 2007 08:37, Gustavo Rios wrote:
 Is it possible to build jdk;java directly from openbsd: I always
 believed i had to install linux emulation first.

 Thanks for the clarifications.

Hi Gustavo,

For building 1.4, you need the 1.3-linux port installed. The latter 
requires the kern.emul.linux sysctrl enabled in kernel as well as the 
redhat base port (6.2 or better). For building 1.5, you need to have 
1.4 installed. -The typical Sun chicken and egg problem.

The port dependencies are changing for the next release. According to 
what I read on ports@, if you follow -CURRENT, there have been some 
recent changes to the 1.5 jdk port which uses a different/lightweight 
jvm to prevent the Sun chicken-egg (and linux) problems.

Most of all, do not get your hopes up. Even if you only want to use 
java applications, the odds of them working correctly is not very good 
in spite of the supposed run anywhere crap that Sun states.

The painfully sad truth is if you're doing any serious development and 
testing in Java, you have to debug everywhere and you normally need to 
have ton of jre/jdk installations on each of your supported OS/hardware 
combinations. You really do need multiple systems as well as multiple 
installations of java on each system; versions, subversions and 
sub-subversion (1.4-01, 1.4-02, 1.4-03 and so on as well as 1.5-01, 
1.5-02 ... ad infinitum). It's a major pain in the ass. I truly hate it 
and I won't touch java unless someone is paying me really well to deal 
with such headaches.

Sun doesn't actually fix java bugs, instead they just move the bugs 
around so you never know where they are hiding. ;-)

kind regards,
jcr



Re: java on openbsd 4.0?

2007-01-09 Thread Kurt Miller
On Monday 08 January 2007 8:38 pm, bofh wrote:
 What am I doing wrong?  This is openbsd 4.0 on a DL145, dual opteron.
 Thanx for any pointers!

I've replied to your build problem on the ports@ list, but
just to clarify some things said in this thread:

Beginning with OpenBSD 4.0 devel/jdk/1.5 no longer
requires users to src build 1.3-linux and 1.4. It
uses an open-source jdk to bootstrap the build now.

-Kurt



Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Tuesday 09 January 2007 09:08, J.C. Roberts wrote:
  When I built 1.5 on openbsd 3.9-current, it didn't require building
  1.3 and 1.4.  It didn't look like 4.0 needed it either.  In fact,
  on amd64, it won't build jdk1.4

 Though people joke about the chicken-egg problem, you need a working
 JVM to build the jdk, so maybe you just didn't notice the use/install
 of a previous version (i.e. scrolled far off screen).


As for the dependencies in the jdk/1.5 port, it varies based on arch and 
port flavor you want to build. There was a post to the ports@ mailing 
list recently regarding changes in the dependencies. In general, you 
need a jvm to build one. In the case of the jdk/1.5 port on 4.0-STABLE, 
it tends to use kaffe rather than Sun on most flavors other than the 
native-bootstrap flavor.

BTW, if your goal is to have a working java plugin for mozilla/firefox I 
suggest you read /usr/ports/devel/jdk/1.5/pkg/MESSAGE-amd64

  NOTE: The plugin does not work on amd64 yet.

Well, the 1.4 port completed it's build, installed successfully and 
surprisingly enough, actually runs. ;-)

$ java -version
java version 1.4.2-p7
Java(TM) 2 Runtime Environment, Standard Edition (build 
1.4.2-p7-_09_jan_2007_05_58)
Java HotSpot(TM) Client VM (build 1.4.2-p7-_09_jan_2007_05_58, mixed 
mode)
$

I've hit a different problem than yours while trying to build jdk/1.5, 
well more accurately, trying to build the lang/kaffe dependency 
mentioned above.

Adding java source files from VM 
directory 
/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/vmspecific
Adding generated files in builddir '..'.
gmake[3]: *** No rule to make target 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javaoosowxuownonowmkwssxozuwo',
 
needed by `compile-classes'.  Stop.
gmake[3]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib'
gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib'
gmake: *** [install-recursive] Error 1
*** Error code 2

Stop in /usr/ports/lang/kaffe (line 1995 
of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1431 
of /usr/ports/infrastructure/mk/bsd.port.mk).
$ 

give me a few and I might be able to get it sorted out...

jcr



Re: java on openbsd 4.0?

2007-01-09 Thread Jeremy Huiskamp

On 9-Jan-07, at 12:42 PM, J.C. Roberts wrote:

The painfully sad truth is if you're doing any serious development and
testing in Java, you have to debug everywhere and you normally need to
have ton of jre/jdk installations on each of your supported OS/ 
hardware

combinations. You really do need multiple systems as well as multiple
installations of java on each system; versions, subversions and
sub-subversion (1.4-01, 1.4-02, 1.4-03 and so on as well as 1.5-01,
1.5-02 ... ad infinitum). It's a major pain in the ass. I truly  
hate it

and I won't touch java unless someone is paying me really well to deal
with such headaches.


Who fed you that load of silliness?  I could maybe understand having 1.4
and 1.5 but if you can't keep something stable across the small releases
you're doing something seriously stupid.



Re: java on openbsd 4.0?

2007-01-09 Thread Zoong PHAM
On Tuesday,  9 January 2007 at 13:37:37 -0300, Gustavo Rios wrote:
 Is it possible to build jdk;java directly from openbsd: I always
 believed i had to install linux emulation first.

No, I don't think so.

I just installed jdk-1.5.0p19
from the port: very much make; make install

After that, I could compile and run helloworld.java :-)

If you want the packages, email me privately.

HTH,
Zoong



Re: java on openbsd 4.0?

2007-01-09 Thread J.C. Roberts
On Tuesday 09 January 2007 12:26, Zoong PHAM wrote:
 On Tuesday,  9 January 2007 at 13:37:37 -0300, Gustavo Rios wrote:
  Is it possible to build jdk;java directly from openbsd: I always
  believed i had to install linux emulation first.

 No, I don't think so.

 I just installed jdk-1.5.0p19
 from the port: very much make; make install

 After that, I could compile and run helloworld.java :-)

 If you want the packages, email me privately.

 HTH,
 Zoong

Actually the answer depends on which sun java version you're trying to 
build.

The devel/jdk/1.4 port requires linux emulation so it can execute the 
java vm necessary to complete the build.

The devel/jdk/1.5 port depends on the lang/kaffe port for the java vm 
needed to complete the build (on most all of the 1.5 port flavors 
except the native-bootstrap flavor). 

JCR



Re: java on openbsd 4.0?

2007-01-09 Thread steven mestdagh
Gustavo Rios [2007-01-09, 13:37:37]:
 Is it possible to build jdk;java directly from openbsd: I always
 believed i had to install linux emulation first.

if something is unclear about the section 'Building the Sun JDK' in
FAQ 8, please let us know what it is.

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



Re: java on openbsd

2006-11-17 Thread Damian Wiest
On Wed, Nov 15, 2006 at 11:31:21AM +0800, Lars Hansson wrote:
 On Tue, 14 Nov 2006 10:53:54 -0500
 Josh Grosse [EMAIL PROTECTED] wrote:
 
  Per FAQ 8.3, Java 1.5 or 1.4 must be built from source.  An overnight 
  download  have an
  of the files should not be a huge problem, considering how much time, 
  computing, memory, and storage resource is needed to build it.
 
 Except that you need to navigate the Sun download pages mess, click thru
 license agreements and have an account (I think). Then you need to
 install X number of Linux JDK's, wich pulls in all the Linux emulation
 packages and then you have to actually compile it and hope you enough
 disk and ram. Wouldnt it be possible for someone other then the OpenBSD
 project to legally share their built packages?
 
 ---
 Lars Hansson

I don't suppose it's possible to enable Solaris emulation and just rip 
the necessary bits from their x86 Java packages?

-Damian



Re: java on openbsd

2006-11-17 Thread Damian Wiest
On Tue, Nov 14, 2006 at 11:27:36PM +0100, Matthias Kilian wrote:

[snip]

 It does not run on arm/OpenBSD. It does not run on powerpc/OpenBSD.
 It does not run on vax/OpenBSD. Heck, it even behaves differently
 in on i386/Linux, i386/Windows, sparc/Solaris and pSeries/Linux,
 and to this platform diversity the vendor diversity (Sun vs. IBM)
 yet adds more subtile differences, especially if it comes to threads
 or GC behaviour.
 
 Believe it or not: Java is *not* platform independent, at least not
 in so-called enterprise environments.

[snip]

 Ciao,
   Kili, making a life with Java since about 1998.

Java, the language, is an open specification that can be implemented by
anyone.  Java, the brand, requires the implementor to license Sun's
test suite (for like $10,000 if memory serves me) and pass the tests
in order to use their logos, etc.  The Java Virtual Machine is also an
open specification that can be implemented by anyone.  Not every part
of the system is defined and various implementors have done certain 
things differently.  Also, the JVM must run on top of an operating 
system, so bugs in the OS may impact its performance.  The bytecode 
should be portable assuming that the JVM works as advertised.

I agree that Sun makes it a pain in the ass for people not running 
certain operating systems to use their Java tools.  Whatever.  Either 
deal with it, don't use it, work on one of the non-commercial JVMs or 
use a different OS for your Java environment.  That being said, I've 
run Blackdown's JVM and class libraries for Java2 rev. 1.4.X on BSD 
without issue.  Actually, that's not true I did run into some issues
with cryptographic classes (license validation), but it was easy enough 
to work around that problem.

Java may make certain classes of applications extremely easy to develop,
but it's not going to replace something like C.  Indeed, some Java 
classes in the standard class library require callouts to C routines via 
JNI.  Also, remember that Java was initially called Oak and was 
targetting the embedded space.  I'm not surprised there have been issues
in the non-embedded space.

http://ei.cs.vt.edu/book/chap1/java_hist.html

-Damian



Re: java on openbsd

2006-11-15 Thread Joachim Schipper
On Tue, Nov 14, 2006 at 08:24:37AM -0800, [EMAIL PROTECTED] wrote:
 Quoting Jeff Quast [EMAIL PROTECTED]:
 On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:
 I really don't want to download the source for java and compile... I am
 on dialup so every byte counts.

 I believe that java on bsd through emulation should be possible;
 probably just an oversight somwhere on my part.
 
 If anybody can give me some tips or tricks I would really appreciate it.
 
 I would, but I would just be (poorly) repeating information that
 developers have painstakingly documented.
 http://www.openbsd.org/faq/faq8.html#Programming

 I've read that info; the preferred way of installing java (on  
 openbsd) is by compiling from source. As I am a full time java  
 developer, I use and test several different jdks at once. You might be  
 able to understand why I am hesitant to compile and download all this  
 stuff when openbsd supports linux emulation, and I already have  
 downloaded all the linux jdks that I need.

If you're getting paid to develop on this, a little phone bill shouldn't
be that problematic, and you've already wasted as much time here as it
would have taken to download it in the first place.

If you're so set on using Linux JDKs, use Linux. That's what they are
for. If you really want, use Linux under some emulator (qemu is in
ports).

The fact that NetBSD apparently does manage to run your JDKs doesn't
necessarily mean it manages to run them reliably, either.

 You should really send your grievences to sun, not openbsd misc.  
 OpenBSD can't change Sun's licensing policies -- they can only abide
 by them. Maybe all of this hoop jumping will make you realize that
 using this language is a bad career move?
 
 that is laughable, especially considering sun's anouncement yesterday  
 to GPL the entire java stack. Not trying to start a flame war here,  
 but open solaris, nexenta (solaris kernel, debian apps), and a million  
 linux distros all support Java really well. I am trying a java /  
 openbsd combination because I've heard good things about openbsd, and  
 from what I've seen so far I am very happy with it. I understand fully  
 why openbsd has issues with Java. I am not blaming them / you at all.

OpenBSD supports Java really well. Its Linux emulation is not perfect,
granted, but that's a wholly different issue.

Joachim



Re: java on openbsd

2006-11-15 Thread marc

Quoting Joachim Schipper [EMAIL PROTECTED]:


On Tue, Nov 14, 2006 at 08:24:37AM -0800, [EMAIL PROTECTED] wrote:

Quoting Jeff Quast [EMAIL PROTECTED]:
On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:
I really don't want to download the source for java and compile... I am
on dialup so every byte counts.



I believe that java on bsd through emulation should be possible;
probably just an oversight somwhere on my part.

If anybody can give me some tips or tricks I would really appreciate it.

I would, but I would just be (poorly) repeating information that
developers have painstakingly documented.
http://www.openbsd.org/faq/faq8.html#Programming

I've read that info; the preferred way of installing java (on
openbsd) is by compiling from source. As I am a full time java
developer, I use and test several different jdks at once. You might be
able to understand why I am hesitant to compile and download all this
stuff when openbsd supports linux emulation, and I already have
downloaded all the linux jdks that I need.


If you're getting paid to develop on this, a little phone bill shouldn't
be that problematic,


Right now I work for myself, out of my house; time and bandwith cost  
money which is hard to come by at this point. I'd also rather spend  
time on learning so I can save time the next time I come to a  
(similar) problem.



and you've already wasted as much time here as it
would have taken to download it in the first place.



hardly, you obviously have no idea what downloading on dial-up is  
like, especially when other family members need to access the phone as  
well.



If you're so set on using Linux JDKs, use Linux. That's what they are
for. If you really want, use Linux under some emulator (qemu is in
ports).

The fact that NetBSD apparently does manage to run your JDKs doesn't
necessarily mean it manages to run them reliably, either.



You're missing the point entirely. I already had several jdks in  
linux, thought I could save some time / bandwith and use them through  
emulation on openbsd. Forget that I mentioned anything about netbsd,  
linux, etc.


Thanks to the kind souls who offered suggestions or binary downloads.  
I will have access to high speed for a few hours in the near future,  
and will try downloading the source then.


Marc


You should really send your grievences to sun, not openbsd misc.
OpenBSD can't change Sun's licensing policies -- they can only abide
by them. Maybe all of this hoop jumping will make you realize that
using this language is a bad career move?

that is laughable, especially considering sun's anouncement yesterday
to GPL the entire java stack. Not trying to start a flame war here,
but open solaris, nexenta (solaris kernel, debian apps), and a million
linux distros all support Java really well. I am trying a java /
openbsd combination because I've heard good things about openbsd, and
from what I've seen so far I am very happy with it. I understand fully
why openbsd has issues with Java. I am not blaming them / you at all.


OpenBSD supports Java really well. Its Linux emulation is not perfect,
granted, but that's a wholly different issue.

Joachim




Re: [Fwd: Re: java on openbsd]

2006-11-15 Thread marc

- Forwarded message from [EMAIL PROTECTED] -
Date: Wed, 15 Nov 2006 11:18:36 -0800
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
 Subject: Re: [Fwd: Re: java on openbsd]
  To: Keith Richardson [EMAIL PROTECTED]

Quoting Keith Richardson [EMAIL PROTECTED]:


I don't know if you are subscribed to the ports@ list.  Thought I would
forward you Kurt Miller's response just in case.

He is the maintainer of all Java ports on OpenBSD so I would consider
his answer authoritative.

FWIW - I run java (1.4 and 1.5) and have no problems.

Best advice I can give is to download all the packages that
build/runtime depends on and java dist files on a fast connection and
then build the native java.

Here are the packages you will need before building / running on -release

# cd /usr/ports/devel/jdk/1.5
# make full-all-depends  hicolor-icon-theme-0.5p0
bzip2-1.0.3
help2man-1.29
autoconf-2.57p0
autoconf-2.59p1
metaauto-0.5
libtool-1.5.22p0
libiconv-1.9.2p3
jikes-1.22p0
expat-2.0.0
gettext-0.14.5p1
gtar-1.15.1p4
gmake-3.80p1
pkgconfig-0.19p0
glib2-2.10.3
atk-1.10.3p1
libIDL-0.8.5p0
glitz-0.4.4
jpeg-6bp3
tiff-3.8.2p0
gmp-4.1.4p0
libaudiofile-0.2.6p0
libltdl-1.5.22p1
autoconf-2.13p0
esound-0.2.34p0
unzip-5.52
zip-2.32
openmotif-2.1.30.5p1
png-1.2.12
cairo-1.0.4p0
pango-1.12.3
gtk+2-2.8.20
kaffe-1.1.7p2
mozilla-devel-1.7.13p0



# cd /usr/ports/devel/jdk/1.4
# make full-all-depends
bzip2-1.0.3
help2man-1.29
autoconf-2.59p1
autoconf-2.57p0
metaauto-0.5
libtool-1.5.22p0
iodbc-3.52.4
libiconv-1.9.2p3
expat-2.0.0
gettext-0.14.5p1
gtar-1.15.1p4
gcpio-2.6
gmake-3.80p1
popt-1.7p0
rpm-3.0.6p4
redhat_base-8.0p8
jdk-linux-1.3.1_16
unzip-5.52
zip-2.32
ghostscript-fonts-6.0p0
openmotif-2.1.30.5p1
autoconf-2.13p0
nspr-4.4.1p0

 Original Message 
Subject:Re: java on openbsd
Date:   Tue, 14 Nov 2006 12:20:45 -0500
From:   Kurt Miller [EMAIL PROTECTED]
Reply-To:   [EMAIL PROTECTED]
To: ports@openbsd.org
References: [EMAIL PROTECTED]



On Tuesday 14 November 2006 8:07 am, you wrote:
However, whenever I run java, I get a Can't detect initial thread   
 stack location - find_vma failed error. This is for sun's jdk
1.5.06 as well as one of the newer 1.6 versions. IBM's jdk1.4 says   
 it cannot read or write (not sure exactly anymore) to /proc/.   
 I've tried running all three versions as root to check for
permission errors, but it makes no difference. I've googled for
hours trying to find a solution, but can't seem to fix it.


Our linux emulation doesn't support the features needed
by linux jdk binaries (1.4 and up). Our native jdk's work
quite well (especially devel/jdk/1.5) but you need to
build from source.

-Kurt


That package list helps a lot. I didn't know you could generate a
dependency list like that (see my other message today: packages).
Thanks!

Marc



- End forwarded message -



Re: java on openbsd

2006-11-14 Thread Jeff Quast

On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:


I am having a hard time getting java to work on openbsd.


I'll bet.


difference. I've googled for hours trying to find a solution, but can't
seem to fix it.


Lucky for you! My google works: http://www.google.com/search?q=openbsd+java


I really don't want to download the source for java and compile... I am
on dialup so every byte counts.


I am sorry for this, as this is a very involved process that requires
I agree several times through the build. I beleive it took me two
days work on a fast machine on broadband. Only because of Sun's web
pages (which are very hard to navigate using lynx, of course).


netbsd and got it working through linux emulation as well. I had
problems with netbsd so it didn't stick around, but I believe that java
on bsd through emulation should be possible; probably just an oversight
somwhere on my part.

If anybody can give me some tips or tricks I would really appreciate it.


I would, but I would just be (poorly) repeating information that
developers have painstakingly documented.
http://www.openbsd.org/faq/faq8.html#Programming


Thanks for your time,
Marc


If you're just asking for somebody to provide you with a complete
binary package of the completed build, then you are asking us to break
the law. Sun wants you to build it yourself, so that is what you will
have to do.

Sorry, but this just sounds like you are complaining. You should
really send your grievences to sun, not openbsd misc. OpenBSD can't
change Sun's licensing policies -- they can only abide by them. Maybe
all of this hoop jumping will make you realize that using this
language is a bad career move?

jdq



Re: java on openbsd

2006-11-14 Thread knitti

On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:

I am having a hard time getting java to work on openbsd. Java is a
deal-breaker for me as I use it all day every day for work. What I've
done is taken a tar of the linux version, and untarred it in openbsd. I
have turned on linux emulation by modifying the variable in
/etc/sysctl.conf, and I've mounted the /proc filesystem. I have also
pkg_added redhat-base8.xxx.

However, whenever I run java, I get a Can't detect initial thread stack
location - find_vma failed error. This is for sun's jdk 1.5.06 as well
as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or
write (not sure exactly anymore) to /proc/. I've tried running all
three versions as root to check for permission errors, but it makes no
difference. I've googled for hours trying to find a solution, but can't
seem to fix it.

I really don't want to download the source for java and compile... I am
on dialup so every byte counts. A little while ago I tried java on
netbsd and got it working through linux emulation as well. I had
problems with netbsd so it didn't stick around, but I believe that java
on bsd through emulation should be possible; probably just an oversight
somwhere on my part.


I didn't try any linux 1.5/1.6 jdk, but perhaps you missed something
for your linux emulation? read man compat_linux, perhaps it helps.

the other options you have is having someone mail you the source on
cd, or use kaffe (don't know how useful it is for your purposes).

--knitti



Re: java on openbsd

2006-11-14 Thread Nick Guenther

On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:

Hi, first I'd like to mention that openbsd 4.0 is a first for me, and I
am really liking it so far (I am a linux refugee...).

I am having a hard time getting java to work on openbsd.

Thanks for your time,
Marc



Java's unsupported more or less. See the FAQ:
http://openbsd.org/faq/faq8.html#Programming
Due to Sun's restrictive SCSL license, OpenBSD cannot ship binary
packages for the JDK. This means you will have to build it from ports.
Note that you will need plenty of RAM for this build to succeed.
Sorry :(

I don't know why running it under linux emulation doesn't work;
perhaps you just have it set up incorrectly somewhere.

Is it possible to download it at a friend's?

-Nick



Re: java on openbsd

2006-11-14 Thread marc

Quoting knitti [EMAIL PROTECTED]:


On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:

I am having a hard time getting java to work on openbsd. Java is a
deal-breaker for me as I use it all day every day for work. What I've
done is taken a tar of the linux version, and untarred it in openbsd. I
have turned on linux emulation by modifying the variable in
/etc/sysctl.conf, and I've mounted the /proc filesystem. I have also
pkg_added redhat-base8.xxx.

However, whenever I run java, I get a Can't detect initial thread stack
location - find_vma failed error. This is for sun's jdk 1.5.06 as well
as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or
write (not sure exactly anymore) to /proc/. I've tried running all
three versions as root to check for permission errors, but it makes no
difference. I've googled for hours trying to find a solution, but can't
seem to fix it.

I really don't want to download the source for java and compile... I am
on dialup so every byte counts. A little while ago I tried java on
netbsd and got it working through linux emulation as well. I had
problems with netbsd so it didn't stick around, but I believe that java
on bsd through emulation should be possible; probably just an oversight
somwhere on my part.


I didn't try any linux 1.5/1.6 jdk, but perhaps you missed something
for your linux emulation? read man compat_linux, perhaps it helps.

the other options you have is having someone mail you the source on
cd, or use kaffe (don't know how useful it is for your purposes).

--knitti


Thanks for your response. Kaffe won't work for me as it is missing a  
few feature s that I need (most notable swing support is not up to  
snuff yet).


Marc



Re: java on openbsd

2006-11-14 Thread Matthew Weigel
[EMAIL PROTECTED] wrote:

 Thanks for your response. Kaffe won't work for me as it is missing a few
 feature s that I need (most notable swing support is not up to snuff yet).

For now, then, unfortunately you'll have to follow the normal
port-building instructions, which are lame to say the least.

When Sun makes good on its promise to GPL the whole thing, it should
become much easier.
-- 
 Matthew Weigel
 hacker
 [EMAIL PROTECTED]



Re: java on openbsd

2006-11-14 Thread Tobias Weisserth

Hi Marc,

On Nov 14, 2006, at 5:27 PM, [EMAIL PROTECTED] wrote:
...

I didn't try any linux 1.5/1.6 jdk, but perhaps you missed something
for your linux emulation? read man compat_linux, perhaps it helps.

the other options you have is having someone mail you the source on
cd, or use kaffe (don't know how useful it is for your purposes).

--knitti


Thanks for your response. Kaffe won't work for me as it is missing  
a few feature s that I need (most notable swing support is not up  
to snuff yet).


This is probably not what the poster meant. You really need to read  
the FAQ:


http://www.openbsd.org/faq/faq8.html#Programming

What your are looking for is Building the Sun JDK.

The JDK requires a working Java 2 compiler as a bootstrap to build.  
For this purpose, since OpenBSD 4.0, the port of JDK 1.5 uses kaffe,  
which allows JDK 1.5 to be used on both i386 and amd64 platforms, and  
reduces the build time considerably.


You only need kaffe to build SUN's JDK.

It's all in the FAQ (and probably in the archives).

@others: stop picking on SUN and Java. It's actually a nice language  
and going to be GPL software very soon, so I guess there will be an  
option for binary packages and other nice stuff soon.


regards,
Tobias



Re: java on openbsd

2006-11-14 Thread marc

Quoting Jeff Quast [EMAIL PROTECTED]:


On 11/14/06, Marc Ravensbergen [EMAIL PROTECTED] wrote:


I am having a hard time getting java to work on openbsd.


I'll bet.


difference. I've googled for hours trying to find a solution, but can't
seem to fix it.


Lucky for you! My google works: http://www.google.com/search?q=openbsd+java

thanks for that... my point was that reading the results that google  
gives does not help my situation.



I really don't want to download the source for java and compile... I am
on dialup so every byte counts.


I am sorry for this, as this is a very involved process that requires
I agree several times through the build. I beleive it took me two
days work on a fast machine on broadband. Only because of Sun's web
pages (which are very hard to navigate using lynx, of course).


netbsd and got it working through linux emulation as well. I had
problems with netbsd so it didn't stick around, but I believe that java
on bsd through emulation should be possible; probably just an oversight
somwhere on my part.

If anybody can give me some tips or tricks I would really appreciate it.


I would, but I would just be (poorly) repeating information that
developers have painstakingly documented.
http://www.openbsd.org/faq/faq8.html#Programming

I've read that info; the preferred way of installing java (on  
openbsd) is by compiling from source. As I am a full time java  
developer, I use and test several different jdks at once. You might be  
able to understand why I am hesitant to compile and download all this  
stuff when openbsd supports linux emulation, and I already have  
downloaded all the linux jdks that I need.



Thanks for your time,
Marc


If you're just asking for somebody to provide you with a complete
binary package of the completed build, then you are asking us to break
the law. Sun wants you to build it yourself, so that is what you will
have to do.


How do you jump to that conclusion from my email? No, never asked for that.


Sorry, but this just sounds like you are complaining.


What I was doing was asking for tips on getting linux emulation (more  
particularly, linux jdk binaries) working under openbsd.


You should really send your grievences to sun, not openbsd misc.  
OpenBSD can't

change Sun's licensing policies -- they can only abide by them. Maybe
all of this hoop jumping will make you realize that using this
language is a bad career move?


that is laughable, especially considering sun's anouncement yesterday  
to GPL the entire java stack. Not trying to start a flame war here,  
but open solaris, nexenta (solaris kernel, debian apps), and a million  
linux distros all support Java really well. I am trying a java /  
openbsd combination because I've heard good things about openbsd, and  
from what I've seen so far I am very happy with it. I understand fully  
why openbsd has issues with Java. I am not blaming them / you at all.


All I asked for was some advice getting this working. If you're going  
to bash me over the head for that, perhaps you'd consider not replying  
at all... save both your time and mine.


Marc



Re: java on openbsd

2006-11-14 Thread Marco Peereboom
 @others: stop picking on SUN and Java. It's actually a nice language  
 and going to be GPL software very soon, so I guess there will be an  
 option for binary packages and other nice stuff soon.

Java is a shitshow, it isn't a nice language.  Stop defending Sun and their
ridiculous licenses.  The day Sun shows up as a real player in the open source
world this could be justified.  For now they are just another closed vendor.

You don't get a cookie for trying or pretending.



Re: java on openbsd

2006-11-14 Thread Bernd Schoeller

On Tue, 14 Nov 2006 16:42:39 +0100, Nick Guenther [EMAIL PROTECTED] wrote:


Java's unsupported more or less. See the FAQ:
http://openbsd.org/faq/faq8.html#Programming
Due to Sun's restrictive SCSL license, OpenBSD cannot ship binary
packages for the JDK. This means you will have to build it from ports.
Note that you will need plenty of RAM for this build to succeed.
Sorry :(


I this information still current, now that Java has released the JDK under  
the terms of the GPL?


https://openjdk.dev.java.net/

I really hope that there will be an improvement of the situation for  
OpenBSD soon, including proper Java packages. But I am not a lawyer,  
correct me if I am wrong.


Bernd



Re: java on openbsd

2006-11-14 Thread Matthew Weigel
Bernd Schoeller wrote:
 I this information still current, now that Java has released the JDK
 under the terms of the GPL?

No, they haven't released the JDK under the GPL.  They *will*.
Currently, they have released a virtual machine and javac under the GPL.

The remainder of the open-source JDK will be available in the first
half of 2007.
-- 
 Matthew Weigel
 hacker
 [EMAIL PROTECTED]



Re: java on openbsd

2006-11-14 Thread Jack J. Woehr
On Nov 14, 2006, at 10:41 AM, Marco Peereboom wrote:

 Java is a shitshow, it isn't a nice language.

Hurling obscenities at Java, a mediocre language per se which happens  
to offer
a wonderful team development environment with a breathtaking array of  
tools,
doesn't generate any code to make OpenBSD a better operating system.

-- 
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
[EMAIL PROTECTED]
303-443-7000 ext. 527



Re: java on openbsd

2006-11-14 Thread Henning Brauer
* Bernd Schoeller [EMAIL PROTECTED] [2006-11-14 19:25]:
 I this information still current, now that Java has released the JDK under  
 the terms of the GPL?

they have _not_ released the JDK (-source) under the gpl.

they have released javac, hotpot and the help system under the gpl (at 
lest, they say they have, i didn't check). there's a whole lot missing 
to the full jdk.

now, they have promised to released the remaining parts under the gpl 
as well. we'll see. they have promised a lot in the past, let's hope it 
is more than just promises this time.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: java on openbsd

2006-11-14 Thread Jacob Yocom-Piatt
 Original message 
Date: Tue, 14 Nov 2006 11:41:35 -0600
From: Marco Peereboom [EMAIL PROTECTED]  
Subject: Re: java on openbsd  
To: Tobias Weisserth [EMAIL PROTECTED]
Cc: misc@openbsd.org

 @others: stop picking on SUN and Java. It's actually a nice language  
 and going to be GPL software very soon, so I guess there will be an  
 option for binary packages and other nice stuff soon.

Java is a shitshow, it isn't a nice language.  Stop defending Sun and their
ridiculous licenses.  The day Sun shows up as a real player in the open source
world this could be justified.  For now they are just another closed vendor.

You don't get a cookie for trying or pretending.


marco,

don't you know you're not licensed to circulate compiled opinions about Sun
source code? you're supposed to let everyone else click through the stupid
menus, download source packages that are about as big as the openbsd install
sets, adjust their ulimits, spend a lot of time compiling something that should
be available as a package and THEN they can form a properly licensed opinion.

cheers,
jake



Re: java on openbsd

2006-11-14 Thread Jack J. Woehr
On Nov 14, 2006, at 9:24 AM, [EMAIL PROTECTED] wrote:

 All I asked for was some advice getting this working. If you're  
 going to bash me over the head for that, perhaps you'd consider not  
 replying at all... save both your time and mine.

Did you get it working? I have Java working on OpenBSD.

Also, there's another list where people care that you do get it running:
[EMAIL PROTECTED]

misc@openbsd.org is a little bit like that old Monty Python routine:
Oh, I'm sorry, this is Arguments. Abuse is down the hall.

:-)

Jack

-- 
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
[EMAIL PROTECTED]
303-443-7000 ext. 527



Re: java on openbsd

2006-11-14 Thread Matt Kolb
Matthew Weigel [EMAIL PROTECTED] writes:

 [EMAIL PROTECTED] wrote:

 Thanks for your response. Kaffe won't work for me as it is missing a few
 feature s that I need (most notable swing support is not up to snuff yet).

 For now, then, unfortunately you'll have to follow the normal
 port-building instructions, which are lame to say the least.

 When Sun makes good on its promise to GPL the whole thing, it should
 become much easier.

They already have:

http://www.infoq.com/news/2006/11/open-source-java

./matt



Re: java on openbsd

2006-11-14 Thread Josh Grosse
On Tue, Nov 14, 2006 at 08:07:50AM -0500, Marc Ravensbergen wrote:
 ...I am having a hard time getting java to work on openbsd. Java is a 
 deal-breaker for me as I use it all day every day for work. What I've 
 done is taken a tar of the linux version...
snip
 ...I really don't want to download the source for java and compile... I am 
 on dialup so every byte counts
snip
 ...If anybody can give me some tips or tricks I would really appreciate it.

Per FAQ 8.3, Java 1.5 or 1.4 must be built from source.  An overnight download 
of the files should not be a huge problem, considering how much time, 
computing, memory, and storage resource is needed to build it.

Kaffe is now used as a Java compiler to bootstrap the builds of Java 1.4 or
1.5.  Luckily, the port for Java 1.3-linux still exists.  This is a binary port,
that used to be used to build Java 1.4/1.5.  If 1.3 is sufficient for your
needs, then this Linux emulation port may work better for you than trying
to accomplish an emulation on your own.  Obtain the ports tree, then issue:

$ cd /usr/ports/devel/jdk/1.3-linux
$ make install

Eventually, the project should have native packages once Sun completes its 
migration to Java GPL.  It was just announced, and if they meet their intended 
schedule, you may hope that binary packages will be on the mirrors in 
November 2007 for the 4.2-release.



Re: java on openbsd

2006-11-14 Thread Jared Solomon

Heh, java lets me work on OpenBSD.  Oh, wait... that's just plain
coffee, and not even Javanese coffee.  Costa Rican.

God, I'm a troll today.

On 11/14/06, Jack J. Woehr [EMAIL PROTECTED] wrote:

Did you get it working? I have Java working on OpenBSD.




--
Try to do nothing for money that you wouldn't do for free.  --Paul Krassner



Re: java on openbsd

2006-11-14 Thread Tobias Weisserth
Hi list, hi Jacob,

On Tuesday, 14. November 2006 19:35, Jacob Yocom-Piatt wrote:

 Java is a shitshow, it isn't a nice language.  Stop defending Sun and
  their ridiculous licenses.  The day Sun shows up as a real player in the
  open source world this could be justified.  For now they are just another
  closed vendor.

There's no other just another closed source vendor on this planet that has 
freed so much closed source like SUN. Solaris is going to be Open Source in 
the end, as will Java. This is official so stop fudding around.

If you think the CDDL or the GPL are ridiculous licenses this is simply your 
problem. It works out fine for a majority of people, including me. Hey, if 
you can't comply with the GPL for personal reasons you wouldn't even be able 
to enjoy OpenBSD as it's still being built with a GNU toolchain.

And regarding the language: Java runs on millions if not billions of devices. 
There's a reason for this and it's not just marketing. Anybody denying this 
is just plain ignorant - or stupid.

Besides that, the language is easy to learn (and teach) and unlike most other 
languages, there's tons of high quality development tools that are 
user-friendly for non-UNIX-geeks and programming rookies.

 You don't get a cookie for trying or pretending.

Well, ignorance - or stupidity for that matter - won't earn you points 
either ;-)

 don't you know you're not licensed to circulate compiled opinions about Sun
 source code? you're supposed to let everyone else click through the stupid
 menus, download source packages that are about as big as the openbsd
 install sets, adjust their ulimits, spend a lot of time compiling something
 that should be available as a package and THEN they can form a properly
 licensed opinion.

Well Jake, that's luckily going to change soon, now that Java and its various 
components are going to be GPL software. You'll be able to redistribute in 
any form you like, given that you comply with the GPL terms and don't violate 
the Java trademark that SUN will still control.

kind regards,
Tobias W.



[ot] Re: java on openbsd

2006-11-14 Thread Matthias Kilian
On Tue, Nov 14, 2006 at 10:12:31PM +0100, Tobias Weisserth wrote:
 And regarding the language: Java runs on millions if not billions
 of devices.

It does not run on arm/OpenBSD. It does not run on powerpc/OpenBSD.
It does not run on vax/OpenBSD. Heck, it even behaves differently
in on i386/Linux, i386/Windows, sparc/Solaris and pSeries/Linux,
and to this platform diversity the vendor diversity (Sun vs. IBM)
yet adds more subtile differences, especially if it comes to threads
or GC behaviour.

Believe it or not: Java is *not* platform independent, at least not
in so-called enterprise environments.

BTW: Windows runs on millions if not billions of desktop PCs, so
it must be better than OpenBSD. And: there are many so-called
open-source operating systems around that happily accept BLOBs, let
single persons write drivers based on documentation they'd to sign
NDAs, so those systems are probably better than OpenBSD. They just
*must* be superior to OpenBSD. But wait! They've serious problems
with their wireless drivers, isn't that funny?

Sorry, but for that millions if not billions argument, my honest
response is: people, eat more shit -- millions of flies can't be
wrong.

Ciao,
Kili, making a life with Java since about 1998.



Re: java on openbsd

2006-11-14 Thread Joachim Schipper
On Tue, Nov 14, 2006 at 08:07:50AM -0500, Marc Ravensbergen wrote:
 Hi, first I'd like to mention that openbsd 4.0 is a first for me, and I 
 am really liking it so far (I am a linux refugee...). Eg., it's nice to 
 be able to rip out my usb cd burner, plug it in, and be able to actually 
 use the thing again. Try that under linux and the cd burner is unsuable 
 until you reboot... Not to mention that the whole secure by default 
 thing is very appealing.

Welcome aboard!

 I am having a hard time getting java to work on openbsd. Java is a 
 deal-breaker for me as I use it all day every day for work. What I've 
 done is taken a tar of the linux version, and untarred it in openbsd. I 
 have turned on linux emulation by modifying the variable in 
 /etc/sysctl.conf, and I've mounted the /proc filesystem. I have also 
 pkg_added redhat-base8.xxx.
 
 However, whenever I run java, I get a Can't detect initial thread stack 
 location - find_vma failed error. This is for sun's jdk 1.5.06 as well 
 as one of the newer 1.6 versions. IBM's jdk1.4 says it cannot read or 
 write (not sure exactly anymore) to /proc/. I've tried running all 
 three versions as root to check for permission errors, but it makes no 
 difference. I've googled for hours trying to find a solution, but can't 
 seem to fix it.
 
 I really don't want to download the source for java and compile... I am 
 on dialup so every byte counts. A little while ago I tried java on 
 netbsd and got it working through linux emulation as well. I had 
 problems with netbsd so it didn't stick around, but I believe that java 
 on bsd through emulation should be possible; probably just an oversight 
 somwhere on my part.
 
 If anybody can give me some tips or tricks I would really appreciate it.

Well, the *sane* way of doing this involves building it from ports.
Those are there for a reason, after all. Burning it to a CD and putting
the CD in your machine may be useful if you have access to a faster
network elsewhere; but I'd strongly suggest just downloading the source
and being done with it. For additional points, tweak altq(9) so that you
can still browse at an acceptable speed.

If you want to try your way, -current's emulators/fedora just *might*
build on a -stable system; those libraries are a lot newer, and *might*
fix your problem. Of course, there's no reason to assume either...

Joachim



Re: java on openbsd

2006-11-14 Thread Craig Skinner
On Tue, Nov 14, 2006 at 12:32:57PM -0600, Matthew Weigel wrote:
 Bernd Schoeller wrote:
  I this information still current, now that Java has released the JDK
  under the terms of the GPL?
 
 No, they haven't released the JDK under the GPL.  They *will*.
 Currently, they have released a virtual machine and javac under the GPL.
 
 The remainder of the open-source JDK will be available in the first
 half of 2007.

There is 6m lines of code to audit WRT the GPL, so give them a chance.

Sun are a small company compared to IBM, HP, MS, so to grow, they need
to be different, from how they have been in the past.

There is a new man at the top, who has pledged to open source all of
Sun's software and hardware, so maybe jason@ will be able to get the
Ultra 10 PCI gubbins working without guess work.



Re: java on openbsd

2006-11-14 Thread Craig Skinner
On Tue, Nov 14, 2006 at 11:41:35AM -0600, Marco Peereboom wrote:
  @others: stop picking on SUN and Java. It's actually a nice language  
  and going to be GPL software very soon, so I guess there will be an  
  option for binary packages and other nice stuff soon.
 
 Java is a shitshow

No language is perfect.

 Sun and their ridiculous licenses.

 The day Sun shows up as a real player in the open source
 world this could be justified.  For now they are just another closed vendor.
 
 You don't get a cookie for trying or pretending.

Agree, but they do seem to be genuinely trying, so give them a while to
get over their growing pains and see what comes out in the wash over the
next few years.



Re: [ot] Re: java on openbsd

2006-11-14 Thread Jeremy Huiskamp

On 14-Nov-06, at 5:27 PM, Matthias Kilian wrote:


On Tue, Nov 14, 2006 at 10:12:31PM +0100, Tobias Weisserth wrote:

And regarding the language: Java runs on millions if not billions
of devices.


It does not run on arm/OpenBSD. It does not run on powerpc/OpenBSD.
It does not run on vax/OpenBSD. Heck, it even behaves differently
in on i386/Linux, i386/Windows, sparc/Solaris and pSeries/Linux,
and to this platform diversity the vendor diversity (Sun vs. IBM)
yet adds more subtile differences, especially if it comes to threads
or GC behaviour.
Then I suspect you're doing something very wrong or making  
assumptions about specs that are just not guaranteed to be true.   
I've worked in highly threaded apps that moved perfectly across  
sun's, bea's and ibm's virtual machines with no modifications.  Sure  
there were large differences in performance, probably due to the  
threading and gc, but everything still executed properly.


Believe it or not: Java is *not* platform independent, at least not
in so-called enterprise environments.
I've also worked on enterprise apps that were written, built and  
tested on windows and then moved straight to AIX for deployment with  
no history of glitches whatsoever.  It was all on websphere and I  
obviously wouldn't consider doing this while moving do a different  
j2ee server, but the write once, run anywhere phrase refers to the  
se standard, not ee.


I hear this java is not portable stuff from time to time and it  
just makes me wonder wtf the developers of these supposed problem  
applications were smoking.  It's really not that hard.


Jeremy



Re: java on openbsd

2006-11-14 Thread Lars Hansson
On Tue, 14 Nov 2006 10:53:54 -0500
Josh Grosse [EMAIL PROTECTED] wrote:

 Per FAQ 8.3, Java 1.5 or 1.4 must be built from source.  An overnight 
 download  have an
 of the files should not be a huge problem, considering how much time, 
 computing, memory, and storage resource is needed to build it.

Except that you need to navigate the Sun download pages mess, click thru
license agreements and have an account (I think). Then you need to
install X number of Linux JDK's, wich pulls in all the Linux emulation
packages and then you have to actually compile it and hope you enough
disk and ram. Wouldnt it be possible for someone other then the OpenBSD
project to legally share their built packages?

---
Lars Hansson



Re: java on openbsd

2006-11-14 Thread Lars Hansson
On Wed, 15 Nov 2006 11:31:21 +0800
Lars Hansson [EMAIL PROTECTED] wrote:


 install X number of Linux JDK's

Apparently you dont need this anymore. Duh!

---
Lars Hansson