I have not seen much about the native threads port for 1.1.7 in the
mailing list archives. Is there anyone out there that has gotten the
native threads version of 1.1.7a1 to work with JNI? I have an application
that compiles and works on Solaris, Windows, and IRIX but when I try to
run it on my Re
There is no copy file operation in the JDK API. You will have to open the
file and write a read-write loop for the data.
Mo DeJong
[EMAIL PROTECTED]
gimme multimedia group
On Thu, 17 Dec 1998, Sze Yuen Wong wrote:
> Hi,
>
> Anybody know how to copy a file in Java?
>
> Thanks.
>
> Sze Yuen
>
On Wed, 16 Dec 1998, Java News Collector wrote:
> At 05:00 PM 12/16/98 -0600, Moses DeJong wrote:
> >I have not seen much about the native threads port for 1.1.7 in the
> >mailing list archives. Is there anyone out there that has gotten the
> >native threads version of 1.1
>>>>>> Moses DeJong writes:
>
>Moses> The CLASSPATH and LD_LIBRARY_PATH are set so that the
>Moses> classes.zip file and the native libs are visible to the
>Moses> JVM.
>
>Invocation doesn't use the CLASSPATH variable in 1.1. You
&
ble until I went to version 2.1.131 of the kernel !!!
>
>
> Shane
>
> Moses DeJong wrote:
>
> > On Wed, 16 Dec 1998, Java News Collector wrote:
> >
> > > At 05:00 PM 12/16/98 -0600, Moses DeJong wrote:
> > > >I have not seen much about the nativ
I just installed the linux port of the jdk1.1.7v1a along with all the
glibc updates and the X updates. The first problem I found was that
the bin/chaeckVersions script. The script was not set with the other
execute bit on. When I ran javac on a simple little program I would
get an error like "can
Hello.
I have run into a big problem with the linuxppc port of the jdk117_va1.
I am going to file a bug report in the blackdown jitter bug database
but I though I would ask here just in case anyone has run into this
before and could help me out. Here is some of my system info.
Linux pmac 2.1.12
I don't think this is really the right place to ask or answer a question
like this but you will want to use the java.util.Random class and
declare an int in you method or class. Then call the nextInt() method
of the random class and you should be off and running.
Mo DeJong
dejong at cs.umn.edu
O
You need to amke sure . is in your classpath. Then you need to type the
name of the program without the .java extension. Here is what works on
my system.
% setenv CLASSPATH .
% java HelloWorld
Mo DeJong
dejong at cs.umn.edu
On Fri, 8 Jan 1999, Hoang C. Truong wrote:
> Hello,
> When I compile m
On Fri, 8 Jan 1999, Kirk Hutchinson wrote:
> For those of you who are not programming on multiple platforms and
> have not begun using the much-balleyhooed Java 2, let me clue you in on
> a few things.
I know exactly what you mean. I am working on a project that combines
Tcl and Jacl and I can t
Is there any way we can send you some code so that you can test it out
in the 1.2 release? I have some native threads + JNI code that works under
Solaris and Windows JDK but breaks with the 1.1.7 Native threads release.
I know for a fact that the code is correct but there is some kind of
problem w
You might need to set the CLASSPATH for you java program directly
with the -classpath option from the CGI script. When the CGI is
run it is forked() off from the server process so it will get the
servers CLASSPATH not your shell CLASSPATH. This might be the
reason your class works in the shell and
Hi all.
Under blackdown's JDK1.1.7 v1a for linux an echo program
will not work if it is run from a shell script. The same
code will work perfectly if run without the -native
argument or directly from the command line. The problem
seems to be that a call to System.in.read() will block
and never re
I think your code is wrong. It is attempting to allocate an object
of type java.util.Date.$getMonth which does not exist (javac thinks
getMonth is an inner class of the Date class). I do not know what
the "new" is doing there but I think you code should read:
... + Date.getMonth() + "-" ...
I h
Hello fellow java-linux users.
I have been working on an open source project that provides a
way to combine Java and the Tcl scripting languages using the
java reflection APIs. I was hoping I could get some help
testing the code to make sure it works on a number of linux
systems. To make a long s
Sun promised everyone that all look and feels would work on all platforms.
Then they changed the code so that windows LAF and Mac LAF would only work
on a windows or mac system. Sun lied to us all. At any rate, you can
still make the windows or mac LAF work by making a small change to the
swing so
This is total BS. Microsoft did not write any of the swing code so they
are not in a position to "allow" anything. Sun wrote the code and now
Sun will not let you use it on non windows systems because they fear
Microsoft will just use it as an excuse to sue them. Where have you been
the last coupl
re letting people use it on other platforms.
I agree. It is ugly. I would not want to use it myself. Still, you
should have the right to use it if you want to. Microsoft should
not be able to tell you how to run your software.
> Why would you want to use the windows L&F anyways.
Yes, it is. First Microsoft threatened Sun about the Windows LAF in
swing. Then to "cover up" the first "mistake" Sun made the Mac LAF
only work on MacOS so that they would not have to put up with peoples
questions like "why can I use the Mac LAF on all systems but not the
Windows LAF?". When swin
You are not on the correct list. java-linux is for questions about
the blackdown port of Sun's JDK. You should post this question on
the kaffe mailing list. Look at http://www.transvirtual.com/maillist.html
so see how to get on the kaffe mailing list. If you just got your kaffe
build from the CVS
On Mon, 1 Feb 1999, Seth M. Landsman wrote:
> > We still don't have anything to work with though, or even
> > acknoledgement that someone who is dealing with the situation has seen
> > my request yet. If this was a truly open source project, we'd have
> > already gotten to the code and fixed it
The JDK1.1.7 port from blackdown does not come with a JIT compiler.
This will make it much slower than the Windows version which does
have a JIT compiler. You should also keep in mind that benchmarks
are almost always wrong. You need to see how the speed differs with
an application, not a benchmar
You can use the collections API in JDK1.1. Just download the binary .jar
files that sun has up on the java beans website. If you can not find it
I can email you the copy I have.
Mo DeJong
dejong at cs.umn.edu
On Mon, 8 Feb 1999, Logi Ragnarsson wrote:
> Hi!
>
> I'm one of those eagerly awaitin
On Sun, 14 Feb 1999, alexander lang wrote:
> Hi all.
>
> Does anyone know if one is allowed to initialize static final variables
> within the "try" clause of a static initializer block?
>
> (eg.
> static final int x;
> static{
> try
> {
> x =
On Mon, 15 Feb 1999, Ken A Redergard wrote:
> I have a large amount of .jar files in the library directory, and that
> leads to a very large CLASSPATH variable.
>
> The seems that java (java version "1.1.7") won't accept the
> classpath when it reaches a certain amount of characters. I currentl
You need to compile that as a shared library not a static lib. Use -shared
not -static on the command line.
Mo DeJong
dejong at cs.umn.edu
On Mon, 15 Feb 1999, Peter Gutowski wrote:
> I've used Cay Horstmann's and Gary Cornell "Core Java" books and have been
> pretty happy with them. The second
On Fri, 19 Feb 1999 [EMAIL PROTECTED] wrote:
> Greetings,
>
> I'm having problems running java from within a shell script. The java
> application mostly runs, but I've noticed that it does not receive a
> ^C interrupt and it cannot read from stdin when invoked this way.
> Typing "java ..." dire
idemore/Lex/Lexmark)
> Subject: Re: java shell script
>
>
>
>
> On Fri, 19 Feb 1999 16:10:43 -0600, Moses DeJong wrote:
>
> >I ran into this same problem. I too posted a note to the mailing list
> >but I did not hear back from anyone. The really odd part was t
On Tue, 23 Feb 1999, Albrecht Kleine wrote:
> Hi,
The new license may be "less restricted" but it
is clearly not "more free".
> I've heard that it is possible to get
> JDK sources in a much relaxed way than earlier.
>
> I know, this is no lawyer's list, but perhaps some
> of you can write ab
Java does not provide for preemption of a thread with the same
priority. If you run one thread in a tight loop then you can
never be sure the other one will get to run.
Mo DeJong
[EMAIL PROTECTED]
On Wed, 24 Feb 1999, Chris Raser wrote:
>
> Greetings all! I've got a little problem with
On Wed, 24 Feb 1999, Chris Raser wrote:
>
> On Wed, 24 Feb 1999, David Craig wrote:
> > Java doesn't define how threads of the same priority share cpu time In
> > some VM implementations the sharing is fair. On others, such as the port
> > you're probably using, one thread preempts the other ind
On Wed, 24 Feb 1999, Troy Wu wrote:
>
> Moses,
That may work if you were using native threads but it may not
work if you are running under green threads. My point was
that if you design a program like this in Java you can never
but sure it is going to work on some unknown platform. If you
i
On Thu, 25 Feb 1999, Oliver Fels wrote:
> > > Both TYA and the ShuJIT are free JIT's which work with Linux and JDK 1.1 ...
> > > I am assuming that porting them to work with JDK 1.2 will not be (too)
> > > difficult.
> >
> > I know nothing, but I've heard that the interface for JITs has changed
I was having this problem but one of the nice folks from the blackdown
porting team told me how to fix it. The fix was to add the libjava.so
file to the process space with this command.
setenv LD_PRELOAD libjava.so
After doing that it worked perfectly.
Mo DeJong
[EMAIL PROTECTED]
gimme multimed
A guy involved in the GGI project is working on a GGI version of the
AWT. Such a port would run on SVGA, on the linux console, on X and
all the other graphics targets that GGI supports. More info on GGI
can be found at www.ggi-project.org and you can read about the GGI-AWT
stuff on the GGI mailing
Wow, this is really cool! If people are interested I have created a
scripting from end to the JMF using Tcl. With it you can create JMF
enabled programs without writing Java code. If you would like
to read more you can check out this copy of a paper I write for
a USENIX conference on the subject.
Log in as root and run these two commands.
% g++ -shared -o /usr/local/lib/libstdc++-libc6.0-1.so.2 -lm
% ldconfig
After doing that it worked on my RedHat 5.2 box.
Mo DeJong
dejong at cs.umn.edu
On Tue, 9 Mar 1999, Mark Minas wrote:
> Hi,
>
> thanks for your work on porting JDK 1.2 to Linux.
Did you try LD_LIBRARY_PATH? That seems to work for my JNI + C
application.
Mo DeJong
dejong at cs.umn.edu
On Wed, 10 Mar 1999, John Fisher wrote:
>
> I've just installed jdk1.2 for Linx (yea!!), but am having some problems
> with using JNI, related to finding my shared library. Things were wo
I too have had some problem with jikes generated code with JDK 1.2.
I think the problem is being worked on but perhaps more messages like
"I can not run jikes compiled code under 1.2" will help get the bugs
fixed. Joining the jikes mailing list is also a good way to keep up
to date with jikes chan
On Fri, 12 Mar 1999, Steve Cohen wrote:
> Hani Suleiman wrote:
>
> > I use jikes with jdk1.2, the only snag is that you have to explicitly
> > include rt.jar in your classpath. Also it will compile code that would not
> > be passed by 1.2 javac. Sorry no specific code to demostrate this (and it
I really hate to respond to this with a cross post to all these lists
but I feel I have to because of all the crap that sun has been putting
Java developers through lately. Both sides of this argument have made
good points on the feedback page for this poll. The point I feel has
been lost in the
On Fri, 19 Mar 1999, Craig E Rasmussen wrote:
> I'm trying to do something truly evil. I'm calling a C function
> from Python which starts up a JVM. Everything works fine if I just
> use the C function to start the JVM. However, if I do it via
> Python I get the following error (repeated over
You need to add swingall.jar to your classpath. After doing that double
check to see that it can find the class by running.
javap javax.swing.Jpanel
You should see the public API printed to the screen.
later
mo
On Tue, 6 Apr 1999, Hasan Mahmood wrote:
> Hello.
>
> I downloaded the new previe
On Wed, 14 Apr 1999, Michael Sinz wrote:
> On Wed, 14 Apr 1999 11:59:48 +0200, Robb Shecter wrote:
>
> >Hi,
> >
> >I know this is an old one, but I was wondering about the state of the
> >"-classpath" annoyance that is there in Java/Linux 117a, and possibly in
> >other Java versions, too.
> >
>
On Wed, 14 Apr 1999, John D. Overmars wrote:
> I have installed the Java1.2 on Redhat 5.2.
> Every time I try to run a Swing demo I get the message:
>
> uncaught exception: java.lang.UnsatisfiedLinkError:
> /usr/local/jdk1.2/jre/lib/i386/libfontmanager.so:
> libstdc++-libc6.0-1.so.2: cannot ope
I ran into this same problem working on TclBlend (Java access in Tcl).
To fix things you will need to set some env vars so that the required
libs are preloaded (loaded before your JNI process is started).
(if you are using Lesstif)
LD_PRELOAD=libXt.so libXm.so libXext.so
LD_BIND_NOW=1
(if you ar
On Mon, 3 May 1999, Bernd Kreimeier wrote:
> Moses DeJong writes:
> > (if you are using Lesstif)
> > LD_PRELOAD=libXt.so libXm.so libXext.so
> > LD_BIND_NOW=1
Funny thing is that this works on my RedHat 5.2 with 2.1.125 at home
but when I run it on a Debian 2.1 s
On Mon, 3 May 1999, Bernd Kreimeier wrote:
I just ran your example on my debian 2.1 system and I got the AWT
crash you described. I have attached the output of bug.sh to this
email in case you want to see it.
later
mo
>
> I put all the bits into one source, at
>http://www.netaccess.ie/~bk/
On Mon, 17 May 1999, Bernd Kreimeier wrote:
> Juergen Kreileder writes:
>
> >> I do not have the option to link against X11 libs directly.
> > That was my first solution...
>
> > With LD_PRELOAD all I have to do is
> > $ LD_PRELOAD="libXm.so" LD_BIND_NOW=true ./bug
>
> bash-2.01$ LD_PRE
Hi all.
I was using the Blackdown port of the JDK version 1.1.7 v1a
on a Debian Linux box when I ran into this bug in the port.
Here is a small piece of code that reproduces the bug and
the output on a Sun Solaris box vs my Linux box. I am also
going to put a bug report in the jitterbug database
On Mon, 31 May 1999, Ken McNeil wrote:
> --- Christopher Seawood <[EMAIL PROTECTED]> wrote:
> >
> > I'm using the 1.2pre1 release on a RH6.0 system. I
> > started developing
> > this app that uses Swing under NT using Java
> > Workshop 3.0 with Sun's 1.2
> > release. I tried running the app und
On Tue, 1 Jun 1999, Joseph B. Ottinger wrote:
> I just install the jdk1.1.7 v3 from blackdown, and javac runs (an
> improvement over v1a, to be sure). However, anything dealing with the AWT
> yields an error regarding libawt.so, missing XtShellStrings. Is there
> something I'm missing?
>
>
> --
On Sun, 6 Jun 1999, Lutz Mueller wrote:
> Many thanks for bringing the JDK 1.2 to Linux, but ...
A bzip2 RPM came with my RedHat 5.2 box. Did you try to install that?
> help, I cannot decompress the JDK 1.2 on my RH 5.2 based distribution.
> The the bzip2 from http://www.muraroa.demon.co.uk/
On Fri, 11 Jun 1999, James Huff wrote:
> Hello,
>
> I have successfully compiled the test program HelleWorldApp.java off the
> Sun Tutorial site. The problem comes about when I want to run it:
Try this.
% setenv CLASSPATH .
% java HelloWorldApp
later
mo
> # bin/java HelloWorldApp
> Exceptio
I have to agree. The main problem Sun seems to have is that are
working on new APIs while never fixing real design problems because
they want to maintain "backward compatibility". Just take a look
at the 1.2 (oops it is called Java 2 now) release, it still "supports"
the old AWT 1.0 event model (i
On Thu, 22 Jul 1999, Yuet Sim Lee wrote:
> I am trying to make my Java code
> to exec another Unix program.
> The command in Unix/Linux platform
> is:
>
> "ppmtogif inputfile.ppm > outputfile.gif"
>
> The command will create a new output file
> storing a gif formatted image.
> However, I t
I have to agree. Use jikes and just recompile everything. I tried lots
of other hacks with makefiles a dep systems but the best way to make
sure it will work is to just recompile with jikes. I compile a project
with around 300 .java files and jikes rips through tham in a couple of
seconds.
I hop
On Fri, 30 Jul 1999, Ugo Cei wrote:
> Kontorotsui wrote:
> > How do you manage a project with so many .java files, say more than 100?
> > I can't believe I'll be forced to wait 3 minutes of compilation (on a 128Mb
> > K6-2 350Mhz) every time I forget a ; or mistype a variable.
Actually jikes sho
On Sat, 31 Jul 1999, Chris Kakris wrote:
> Chris Abbey wrote:
> >
> > A couple people mentioned that javac will recompile any classes referenced
> > by what you compile and recompile them if they're newer... true, but DON'T
> > RELY ON THAT to save you: it misses the opposite link. Say for examp
On Wed, 4 Aug 1999, Larry Gates wrote:
>
> I can't let this go unanswered... :)
>
> >Date: Tue, 03 Aug 1999 10:02:19 -0700
> >From: Danny Trieu <[EMAIL PROTECTED]>
>
> >Me too, I would like to contribute to the Linux community, and how can I help?
> >
> >Mike Christiansen wrote:
> >
> >> I hav
On Wed, 11 Aug 1999, Boban Acimovic/Forritun AKS hf. wrote:
> Hi,
>
> I tried to search message archive at blackdown.org and I saw many messages
> regarding similar problem, but no
> solution for that. Is it bug of JDK or some misconfiguration. Please, let me
> know if you fixed you problem some
On Mon, 16 Aug 1999, Matt Welsh wrote:
>
> Riyad Kalla <[EMAIL PROTECTED]> writes:
> > I was sent this by Joel McCarty and think it might be a
> > good thing for us to sign up and vote "Java-Linux
> > Blackdown" to a project that we wish to be funded.
>
> This would be great, if the Sun Linux
Hi all. I tried to run the java_g executable in the
blackdown port of the JDK 1.2 v2 when I got this error.
Warning: opcode 212 not implemented yet
Warning: JIT compiler failed for
java/lang/ref/SoftReference.get()Ljava/lang/Object;
I do not know if this was the cause, but the java_g executable
On Tue, 17 Aug 1999, Robert Perry wrote:
> This sounds like a reasonable plan. I'll try it. Thank you.
>
> I'm happy to see a member of the JBuilder Development Team reading this list.
>
> Paolo Ciccone wrote:
>
> > On Tue, Aug 17, 1999 at 01:12:26PM -0400, Robert Perry wrote:
> > >
On Tue, 17 Aug 1999, Jim Hazen wrote:
> It seems that IBM has been pretty forthcoming with respect to support
> for opensource people. All of the source to Jikes, and I believe their
> JDK can be found on their website. IBM is very interested in using Java
> as a middleware to their databases,
On Wed, 18 Aug 1999, Larry Gates wrote:
>
> >Date: Tue, 17 Aug 1999 21:48:11 +
> >From: Steve Fink <[EMAIL PROTECTED]>
>
> >> So, I think the Linux community needs a better, GUI driven FTP
> >> program in the style of CuteFTP. Java is well suited to develop this.
> >
> >ncftp> get -R
> >w
Hi all.
I just looked over the JDK 1.3 proposed spec changes and I was
shocked to find that the java.lang.Runtime.exec() problems in
the spec have not been fixed. I reported these problems to Sun
in July of 1998, but they still have yet to be addressed. If you
want a more detailed description of
I think this is so that people who use AWT components in a JNI
started Java program do not need to have Motif installed on
the box. With Motif statically linked into libawt.so, this
is not a problem (it was a problem with 1.1.7).
I hope that helps
Mo DeJong
> p.s. what's the motivation behind pu
On Thu, 11 Nov 1999 [EMAIL PROTECTED] wrote:
Check out www.kaffe.org for more details. Kaffe is a work
in progress but it is GPLed and improving quickly. Someday
it may pass up both the Blackdown and IBM ports. Kaffe
is a "clean room" implementation of a JVM, not just a port
of Sun's code. Kaffe
69 matches
Mail list logo