RS232/Java
Dear All, I know that this question isn't really related to java/Linux but I could do with a few pointers.. I'd like to write an application that sends and receives short ASCII text strings using the com port on my PC, using RS232. Could anybody point me to any packages/existing source code that already does this so I can see how to do it. Thanks in advance. Jim \\\|/// \\ - - // (--@ @--) +-oOOo-(_)-oOOo---------+ | Jim Watson MCI (Sri Lanka)| | e-mail: [EMAIL PROTECTED] | +---Oooo+ oooO ( ) ( )) / \ ((_/ \_)
Re: problem with reading stdout from a child process under jdk-1.1.6
This code works fine with jdk1.1.6v4a , it gets stdout and stderr back
from running "ls"
i am using slackware 3.5 with libc5
Mark Hofmann wrote:
> Hi all,
> I encountered a problem when I start a prog from my
> java-prog and
> try to get the stdout or stderr.
> The problem is, that I wrote the code with jdk-1.1.3,
> changed my
> system to Redhat 5.1 (with glibc) and jdk-1.1.6 and now it
> doesn't
> work anymore. As long as stdout is empty there are no
> problems
> but when the prog tries to read the messages it simply
> hangs.
> To make myself a bit clearer, here is the code:
>
> ..
> Process process1;
> String msg=new String();
> Runtime run1=Runtime.getRuntime();
> try {
>process1=run1.exec(command);
>InputStream in=process1.getInputStream();
>BufferedReader in_read=new BufferedReader(new
> InputStreamReader(in));
> // it's happening here:
>while((msg=in_read.readLine()) != null){
>System.out.println(msg);
>}
>
>
> Hope somebody knows a solution for that.
>
> Thanks in advance
>
> Mark
Re: SWING INSTALL
Syed, Cynthia export works in bash, but i have found i also need to add the current directory "." to the classpath to make this work, like this jim watson > CLASSPATH=/iusr/local/swing-1.0.2/swingall.jar:. > export CLASSPATH
Re: JDK 1.2
Flag wrote: > Is there the jdk 1.2 for Linux?!?!?!? > > Thanks There is some information in the FAQ at - http://www.blackdown.org/java-linux/docs/faq/FAQ-java-linux.html 2.7 When is the JDK 1.2 Going to be Released for Linux? According to Steve Byrne on Monday, May 26th 1998: JavaSoft is trying very hard to get a license set up with an external person to coordinate the 1.2 Linux porting effort. The plan is not to have to wait until 1.2 ships, but to get things underway much sooner (1.2 is huge, and involves lots more machine specific components, and will take a while to port). 2.8 Can I Take a Look at the JDK 1.2 Now Anyway? Yes, just run unzip on the Solaris shell script archive; it'll unpack it for you. You can then unpack the src.zip archive. Also, you can already get the documentation from Javasoft from http://www.javasoft.com/docs/index.html.
Re: Problem running/installing JDK
Terry Harding wrote: > > > I downloaded and installed the JDK1.1.6 v2 for Intel( glibc ). The > > > > I am running as root on the latest version of SlackWar > > Terry, you will probbaly need the libc5 version of JDK if you have slackware linux, see the README.linux file in the distribution you have gotten, also read these: http://www.blackdown.org/java-linux/README.ftp http://www.blackdown.org/java-linux/docs/faq/FAQ-java-linux-2.html#ss2.3 regards, jim watson
JDK 1.1.7
I have got the JDK 1.1.7 to build using the 1.1.6v4a diffs, and can run simple programs without the awt. I understand there is not a lot of point to this and i am more than happy to wait for the porting team to work their magic, but it has certainly been a very useful learning exercise for someone who knows very little about this stuff. I made two changes to the source code to get this working: - in iomgr.c i changed dlerror to be const char * so as to agree with dlfcn.h (i guess this is a difference between solaris and linux?) - in awt_Frame.c i changed long into int32_t for pGetIconImageSize. The only problem i have found when running is that it does not find the shared libraries :^( Perhaps someone has had the same experience and could correspond direct with me about this, otherwise i will spend my time usefully reading some more while i wait for the proper diffs. thanks jim watson
Re: Newbie...classpaths
Cees de Groot wrote > It's cleaner to set CLASSPATH in a wrapper script, of course, but > often this only is feasible for a deployment situation. When > hacking/developing, you want to have all stuff at your fingertips. > Cees, i agree with you, there are many ways to do this, and it is ok when you know what it is doing. for myself i use a script which launches jdk102, 116, or 117 as required and with various classpaths... the thing is, when someone writes to the list saying they cannot get the jdk to work out of the box.. then they are better off to go with the "standard default and recommended by the makers - no classpaths" setup, at least until they get it working...there are so many different ways people can configure their installations, it will be very hard for they and anyone else to diagnose a problem and provide help, if they start off with a non-standard setup regards jim watson
Re: JDK 1.1.7
Filipe Custsdio wrote: > I spent this weekend trying to get JDK 1.1.7 to compile. After patching > the sources with the JDK1.1.6v5 diffs, I applied the diffs that "patch" > rejected manually. I did the same using slackware libc5, it works ok, but i only applied the rejects which were absolutely necessary, not the rejected bug fixes, (it just does not repaint very nicely) jw
Re: JDK 1.1.7
by the way, in iomgr.c you may have to tell it to open something... "sbb: you need to open libc by hand -- good luck -- most of the + * " jw
Re: Newbie...
Danny Ayers wrote: > Ithe 1.1.6 JDK working ok, but would like to access some other class > There is a story about this and lots more useful information in the Java Tutorial at: http://java.sun.com/docs/books/tutorial/java/more/managingfiles.html "Setting the Class Path If you must, you can change your class path. This can be done in either of two ways: 1.Set the CLASSPATH environment variable (not recommended). 2.Use the -classpath runtime option when you invoke the compiler or the interpreter. We don't recommend setting the CLASSPATH environment variable because it can be long-lived (particularly if you set it in a login or startup script). It's also easy to forget about, and then one day, your programs won't work because the compiler or interpreter loads a crusty old class file instead of the one you want. An old, out-of-date CLASSPATH variable is a fruitful source of confusing problems. " jim watson
Re: libXm.so.2 and RPM JDK installation on RedHat 5.1
Arif, when this happened to me i tried this, but just as an experiment ... - look for libXm.so.1.??, make sure there is nothing like libXm.so.2.?? - if all clear make a symbolic link from libXm.so.2 to libXm.so.1 - seemed to work ok but i guess it could be hazardous if something needs the real v2... Then i got the lesstif source and rebuilt after running configure with the motif 2 option set ,i recall i still had to make a symbolic link then as it produced libXm.so.2.0 regards jim watson
Re: Working Button mnemonics under Linux Java?
> ... - There are so many places where the
> configuration in unix systems can "confuse" users.
I have this problem too with my slackware v3.5, and i dont even know how to change
the buttons. I got the attached from java Tutorial.
It ignores alt-i but it registers a button press when i hit the spacebar...!
jim watson
import com.sun.java.swing.*;
import java.awt.*;
import java.awt.event.*;
public class HelloSwing extends JFrame implements ActionListener {
private JLabel label;
private static String labelPrefix = "Number of button clicks: ";
private int numClicks = 0;
public HelloSwing() {
super("HelloSwing");
//XXX: In 1.0.2 only, must use FixedJButton instead of JButton
//XXX: if you want mnemonics to work.
//XXX: See ui/swing/workaround.html for details.
JButton button = new JButton("I'm a Swing button!");
button.setMnemonic('i');
button.addActionListener(this);
button.getAccessibleContext().setAccessibleDescription(
"When you click this button, the label is updated "
+ "to display the total number of button clicks.");
label = new JLabel(labelPrefix + "0");
JPanel pane = new JPanel();
pane.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));
pane.setLayout(new GridLayout(0, 1));
pane.add(button);
pane.add(label);
setContentPane(pane);
}
public void actionPerformed(ActionEvent e) {
numClicks++;
label.setText(labelPrefix + numClicks);
}
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (Exception e) {
System.err.println("Couldn't use the cross-platform "
+ "look and feel: " + e);
}
JFrame frame = new HelloSwing();
WindowListener l = new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
};
frame.addWindowListener(l);
frame.pack();
frame.setVisible(true);
}
}
Re: libawt.so purgatory
(Jon Peterson) wrote: > /usr/local/java/bin/i586/green_threads/java_ns: can't resolve symbol > 'XFreeColors' Jon, It appears to be running java_ns...? I dont have v2 but the README.linux for v5 states: "You will not be able to run any AWT based applications with the nonstatically linked java interpreter, so only set NS_JAVA for non-GUI based applications. [For the curious: in the bin/i586/green_threads/ directory, the executables (java for the static version, and java_ns for the non-static version) are kept. " I got the same error message by setting NS_JAVA=true in a otherwise good setup... regards jim watson
Re: installation?
Clint Miller wrote: > All easy enough, except that the jdk_1.1.6-v5-glibc-x86.tar.gz file > doesn't seem to contain a "demo" subdirectory or anything called Clint is ok now, he was mainly looking for the demos referred to in the README. These can be found in the docs at: http://www.javasoft.com/products/jdk/1.1/docs/relnotes/demos.html jim watson
Re: Slackware and static versus ELF
Marsh, Douglas wrote: > > new enought versions. If anyone has any other advice for a newbie to the JDK > (or JRE) and getting it to work with the generic slackware 3.4 or 3.5. I have jdk working in slackware 3.5 (and previously 3.4), everything as supplied with no extras required - only need set the PATH, thats all... jim watson
Re: Working Button mnemonics under Linux Java?
[EMAIL PROTECTED] wrote:
> Another thing that bothers me:
I thought i would get the Mnemonic working with a KeyEvent created by java, but the
KeyEvent objects returned are different from what is specified in the constructor,
and i cannot create an event with modifier=Alt.
i have sent it to a java list as it seems to be java but it may also be related the
java-linux problem...
The attached code outputs this:
alt key event: java.awt.event.KeyEvent[KEY_PRESSED,
keyCode=73,keyChar='I',modifiers=Ctrl] on frame0
How can i make it say KeyChar='i' and modifiers=Alt
?
thanks
jim watson
=
import java.util.*;
import java.awt.*;
import java.awt.event.*;
public class Keys extends Frame implements KeyListener{
Keys(){
addKeyListener(this);
setSize(100,100);
setVisible(true);
makeKeyEvent();
}
public void keyPressed(KeyEvent k){
System.out.println(k);
}
public void keyReleased(KeyEvent k){}
public void keyTyped(KeyEvent k){}
public void makeKeyEvent(){
Date date = new Date();
long now = date.getTime();
KeyEvent myKey = new KeyEvent(this,
KeyEvent.KEY_PRESSED,
now,
KeyEvent.VK_ALT,
0x49) ;
System.out.println("alt key event: " + myKey.toString());
}
public static void main(String args[]){
Keys k = new Keys();
}
}
Re: Clipboard interaction between Swing/JDK and X11
[EMAIL PROTECTED] wrote: > [ Subject was Re: Working Button mnemonics under Linux Java?] > > Hello Jim > > Another another thing: Can anyone get a X11 selection, say from an XTerm or > Emacs and paste it directly into a JTextArea or JTextField? I cannot do it. > Is this Swing/JDK related or is it another XFree86 problem ? I got copy and paste working ok betwee two separate java applications in separate linux processes like this, using ctrl-c and ctrl-v : $ java Class1 & $ java Class2 so the X part of the task must be working ok? jim watson
Re: Clipboard interaction between Swing/JDK and X11
[EMAIL PROTECTED] wrote: > [ Subject was Re: Working Button mnemonics under Linux Java?] > > Hello Jim > > Another another thing: Can anyone get a X11 selection, say from an XTerm or > Emacs and paste it directly into a JTextArea or JTextField? I cannot do it. > Is this Swing/JDK related or is it another XFree86 problem ? I think the question now is: There are two clipboards in my linux X setup - - one clipboard is used by awt and xterm; - the other clipboard is used by swing and xclipboard; so how to get everything using the one clipboard? jim watson
Re: Clipboard interaction between Swing/JDK and X11
> [EMAIL PROTECTED] wrote: > > > Another another thing: Can anyone get a X11 selection, say from an XTerm or > > Emacs and paste it directly into a JTextArea or JTextField? I cannot do it. > > Is this Swing/JDK related or is it another XFree86 problem ? Yes, this can be done using a program called "xcutsel". You would start it like this: $ xcutsel -sel CLIPBOARD & When you select some text in xterm or copy in emacs, the text is stored in XA_CUT_BUFFER0 (see Xatom.h) xcutsel provides for transfers between the cut buffer and the CLIPBOARD The CLIPBOARD seems to be default for swing (i tested JTextArea) and is the one returned by AWT using Toolkit.getDefaultToolkit.getSystemClipboard. But AWT (I have only tested TextArea) seems to use the cutbuffer. You can watch things in the CLIPBOARD with xclipboard. Interestingly Netscape 4.06 supports both the cutbuffer and the CLIPBOARD. So there must be a better way... (i am using slackware 3.5) jim watson
Re: Is there a decent file explorer for Linux?
Chi-Ming Yang wrote: > Hi there, >Is there a decent file explorer (manager) for Linux? try this, it will make any sissie feel like a geek... > http://people.mainz.netsurf.de/~bolik/tkdesk/
Re: Is there a decent file explorer for Linux?
Chi-Ming Yang wrote: >I think it is not difficult to use swing to do one. Do you think it is worthy to >write one? Would anyone Linux user like it? I think the java-linux list is for technical issues about the port, but Chi-Ming Yang has raised a question which relates to philosophies of java and linux. Can there be a java window manager (Jwm) which will live on any platform and bypass the window managers? "Write once run anywhere" imples there will always be lots of something else to run in. Can someone advise a more appropriate place to read about this? I have looked at http://sunsite.unc.edu/javafaq/mailinglists.html jim watson
Re: JDK1.2 Port to Linux?
Daniel Harris wrote: > any info of plans on a JDK1.2 port... last Saturday, Steve Byrne wrote: "...we haven't advertized the fact until now that Sun has licensed the JDK 1.2 pre-release sources to the porting team and that we are starting to work with the 1.2 port. Being a full licensee (just like IBM or that other large company) means that we have full access to the JDK sources, updated on a regular basis, as well as the Java Compatibility Kit, so that we can validate that the Linux port is 100% Java Compatible."
Re: Clipboard interaction between Swing/JDK and X11
CLIPBOARD is hard coded in lesstif(and motif?) XA_CUT_BUFFER0 is hard coded in xterm
Re: Java Web Server1.1 on Linux
Matt Zagni wrote:Is there an easy way to apply the diff's, or is it a manual > operation by editing this file then that file and changing > it line by line in each file ? enter $ man patch $ man make > Are there any tips or hints out there for compiling and how > to apply the diff's etc. This is only my opinion, but there is no substitute but to read some books, i got SAMS "Slackware Linux Unleashed" and WROX "Beginning Linux Programming". The software is free but you need to spend some $$$ to find out how to use it... jim watson
Re: Error: Can't load libXpm.so.4
I got slackware 3.5 late july but do not recall having any problems with jdk116v5, it ran ok "out of the box", email me direct if you would like to find out what is different in our installations, jim watson hiro wrote: > Hello > > > I am using slackware 3.5. I have installed the jdk 116v5. But when I try > > to simply run java binary it says: > > > > /usr/local/jdk116_v5/bin/../bin/i686/green_threads/java: can't load > > library 'libXpm.so.4' > > libXpm?? or libXp? > > If you say libXp.so, you can get x332bin.tgz from Slackware site( > ex. www.cdrom.com ). This tar-ball includes libXp.so so you can copy > it from tar-ball into your Linux box. > > As same as above you can get libXpm.so from tar-balls ( may be > x332xpm.tgz ?? ) from Slackware site. > > Good luck. > > from Hirotaka Igarashi > [EMAIL PROTECTED]
Re: Ok...
Corwin Light-Williams wrote: > so I downloaded my non-com sources from Sun and wanted to build, but > I can't find any info or diffs. They sent me version 1.1.7, but I can't > find any info about 1.1.7. Did they send me the wrong version? I'd > like to help out, but getting in to the swing of things is a bit hard. > > Corwin the diffs for power pc are available at http://business.tyler.wm.edu/mklinux/. the i386 diffs for jdk117 are not available yet, but if you wish to experiment while you are waiting for the quality product you can get the diffs from mklinux and build something with minor changes using the v0 diffs - email me when you have the diffs...but be warned this is strictly unofficial, just something to play with while we are waiting jim watson
Re: Clipboard interaction between Swing/JDK and X11
the conclusion i have reached (after much agony) is that java is only required to support copy and paste from java to java, otherwise it is platform specific, and not a java problem...can someone confirm this is correct? thanks jim watson
Re: Java Web Server1.1 on Linux
> Matt Zagni wrote:Is there an easy way to apply the diff's, or is it a manual i went and got the JavaWebServer1.1 and applied the diffs from http://www.blackdown.org/java-linux/products.html most of the diffs succeeded so i guess i have done it correctly, but a number of the diffs rejected: it stopped at the start so i told it to look for startup_wrapper, but there is no such file... is the diff out of date? === localhost:~/JWS/JavaWebServer1.1$ patch -p1 < jwebs-linux.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -- |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 |+++ startup_wrapper Thu Mar 5 00:39:06 1998 -- File to patch: localhost:~/JWS/JavaWebServer1.1$ patch -p1 < jwebs-linux.diff Hmm... Looks like a unified diff to me... The text leading up to this was: -- |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 |+++ startup_wrapper Thu Mar 5 00:39:06 1998 -- File to patch: startup_wrapper No file found--skip this patch? [n] y Skipping patch... Hunk #1 ignored at 10. Hunk #2 ignored at 87. 2 out of 2 hunks ignored--saving rejects to startup_wrapper.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- | |--- ./bin/jserv.cls Wed Feb 4 15:52:32 1998 |+++ ./bin/jserv Thu Mar 5 01:19:54 1998 -- Patching file bin/jserv using Plan A... Hunk #1 succeeded at 560. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- |--- ./native/Makefile.lnx.cls Thu Mar 5 01:21:16 1998 |+++ ./native/Makefile.lnx Thu Mar 5 01:36:14 1998 -- (Creating file native/Makefile.lnx...) Patching file native/Makefile.lnx using Plan A... Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- |--- ./native/UNIXUser.c.cls Wed Feb 4 15:34:15 1998 |+++ ./native/UNIXUser.c Thu Mar 5 01:28:16 1998 -- Patching file native/UNIXUser.c using Plan A... Hunk #1 failed at 35. 1 out of 1 hunks failed--saving rejects to native/UNIXUser.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- |--- ./native/UNIXUserEnumeration.c.cls Wed Feb 4 15:34:15 1998 |+++ ./native/UNIXUserEnumeration.c Thu Mar 5 01:27:52 1998 -- Patching file native/UNIXUserEnumeration.c using Plan A... Hunk #1 failed at 57. 1 out of 1 hunks failed--saving rejects to native/UNIXUserEnumeration.c.rej Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- |--- ./etc/java-server.startup.cls Wed Feb 4 15:53:24 1998 |+++ ./etc/java-server.startup Thu Mar 5 01:42:22 1998 -- Patching file etc/java-server.startup using Plan A... Hunk #1 succeeded at 80. Hunk #2 succeeded at 92. Hunk #3 succeeded at 111. Hunk #4 failed at 168. 1 out of 4 hunks failed--saving rejects to etc/java-server.startup.rej done
Re: Java Web Server1.1 on Linux
jim watson wrote: is the diff out of date? Hmmm... or do i need to get the JavaWebServer 1.1.2 upgrade first, before applying the diffs for the 1.1 "final"?
Re: linux
Mehrdad, if you have slackware 3.3, you may need the libc5 version of jdk. when i had slackware 3.4, it did not have glibc or bunzip2, Unless you have installed these yourself, you will need the libc5 and tar.gz version such as - ftp://ce.usu.edu/pub/mirror/linux/JDK/JDK-1.1.7/i386/libc5/v1a/jdk_1.1.7-v1a-libc5-x86.tar.gz I see i also need to upgrade, current slackware is 3.6.0 ... Mehrdad wrote: > Hi, > > I have an intel-based machine with Linux(slackware 3.3) installed on a > partition of a scsi drive. I am trying to download the latest version > of JDK(glibc) for linux. I have two questions: > > 1. When I get to the mirror site > ftp://ce.usu.edu/pub/mirror/linux/JDK/JDK-1.1.7/i386/glibc/v1a/ > If you click on several entries such as: > i18n_1.1.7-v1a-glibc-x86.tar.bz2 > it tries to read the file in binary format. How are you supposed to > download these files.
Re: what tools do you use for programming
I have NT4 and Linux on separate partitions. NT has a boot loader, which can run msdos, i just put a autoexec.bat file to run loadlin with the kernel in the dos directory, and away it goes - under this arrangement i think NT does not have any way to even know linux is there, but it had to be NT first? but linux can access the NT(dos) partition ok, > You can install both OS's, but you must be careful about which to > install fisrt... (NT, of course, linux is a little more friendly with > other OSs:) >
Re: Porting JDK1.1.7 to Linux
It is caused by a empty line at the end of the source for appletviewer! this causes a "\" to appear in the diff file. my versions of patch\diff get upset by this. in which case it has to be removed from the diff file by hand in order to get things working. > >>>I can not tell why this would happen. I have just tried to reproduce >this problem with my 1.1.7 source archive and the diffs we made and the >diffs patched just fine. (Not one warning or error) >>Could it be that you have an older version of patch? > >Michael Sinz -- Director of Research & Development, NextBus Inc. >mailto:[EMAIL PROTECTED] - http://www.nextbus.com >My place on the web ---> http://www.users.fast.net/~michael_sinz > > smime.p7s
Re: JDK 1.2
When the jdk1.2 diffs are released, do we need a working jdk1.2 to do the build? and if so, how was the first port built? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Clipboard cut & paste and JVM/X/Swing
This was the first thing I looked at in the source, the reference to "CLIPBOARD" is still hard coded in the source which I think is calling native code to set up the selection using XLib, atoms and all that, so I would guess the answer must be no. I think this is a platform specific issue for X. If it uses the other, then I suspect it would interfere with any applications relying on selections for un-do ? >Clipboard interaction between JFC/Swing and other XFree86 apps > >Does the JVm application cut & paste between the CLIPBOARD buffer and/or >the PRIMARY buffer ? > >Pete > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java Clipboard operations on Linux
Subject: Java Clipboard operations on Linux >The Java Clipboard APIs seem to follow the paradigm of the Windows >Clipboard (ie. one application copies text to the clipboard, and then >another gets the text from the clipboard). This is platform specific. java-linux port and the sun source code uses the motif/ lesstiff CLIPBOARD. Those applications in turn make use of the X server facilities for inter process communication. You can watch what is happening by running xclipboard in linux. When you copy in java, say by using ctrl-c on text selected in a JTextArea, you will see the text appear in xclipboard window. You can type something in the xclipboard window and paste it in java with ctrl-v. This seems to prove that motif/lesstiff and xclipboard are using the same CLIPBOARD? The catch is that applications can do copy and paste through X without using CLIPBOARD. There are SELECTIONS in X such as PRIMARY and SECONDARY, and there are also cut buffers. You can explore these with xcutsel. This allows transfer of selections between PRIMARY, cut buffers, and CLIPBOARD. It seems MSWindows platform has standardised on one facility so different applications apper to communicate. But applications running on X can choose how to do it. xterm seems to use PRIMARY. This allows copy by dragging mouse and paste with button3. Nestcape 4.5 uses both PRIMARY and CLIPBOARD. When you copy from Nestcape, you can see the text appears in both CLIPBOARD and PRIMARY. You can paset into Nestcape from PRIMARY using mouse button3, and paste into netscape from CLIPBOARD using netscape menu-edit-paste. Of course all this is may be off topic because the java virtual machine only has to support copy and paste within the JVM ? > >How can these APIs be used to implement Linux-style copy and paste? >On Linux, the user selects some text in one app, but a copy operation >is not performed. When a second app tries to get the text, an implicit >copy is done. But how does one do this from Java? > use xcutsel, just run several instances with the different transfer combinations such as one instance to transfer PRIMARY to cutbuffer, and another to transfer CLIPBOARD to cutbuffer etc...and watch things with xclipboard. There are many traps with X selections as it is left to the applications to look after things. If you run all your X applications in an environment which supports a common method then you may never see any of this - i belive there are some standardised environments such as CDE? which do this. Older applications like xterm were written before CLIPBOARD came into use. All this relates to text. Copying and pasting other objects is another matter. But in essence there has to be a common understanding between the two different applications to handle all this. Books on XLib, Xt and Motif explain all this. xcutsel and xclipboard were written eons ago, and have been just sitting there waiting for java to be invented. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
status of sparc linux java porting
Hi, I could not find any recent mention about the sparc linux port, since the 1.4.1 release. Are there any specific problems or is it just a lack of time etc? I would like to try building this myself. Are the blackdown diffs available, I could not find any links? thanks jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Licensing questions
On Fri, Jan 07, 2005 at 05:08:01PM -0600, Marc St-Jean wrote: > > > Karl was the first contact I tried two months ago but no reply. I'll > send you a private email if you don't mind verifying have the right > address. Some the pages on the site may have an old address. > I am very interested in this. I did build the blackdown java 1.1.4 i think, some many years ago. At that time the patches were more available. I understand there are good reasons for the current policy and have no dispute with that. But now i would like (need) to have an up to date sparc version, as the java sdk is used for porting openoffice.org (also from sun). As sun do not provide a sparc linux port of java, then I need a sun java sparc port from blackdown to build the sparc port of sun openoffice.org on sun hardware, (yes!) I am willing and eager to help, so please inform the list (or if necessary privately) when you have a final answer on how the diffs may be obtained. I supprt the blackdown team and respect their rights to decide how they handle this, but it would just be useful to know if it is possible and how one may help. many thanks jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sparc-linux
On Thu, Feb 03, 2005 at 02:41:25PM -0600, Benjamin Case wrote: > I have just installed Debian on my Sparc Ultra2 . > > I would like to install the Java Runtime Environment on my system. > > Can blackdown.org help me get the JRE installed on my sparc-linux system Hi Ben, I am running blackdown java on debian sparc linux. Visit http://www.blackdown.org/ and follow the download link to a mirror site. Look for a folder like this: pub/java-linux/JDK-1.4.1/sparc/01/ You will find a self installing bin file: j2re-1.4.1-01-linux-sparc-gcc3.2.bin I put mine in /usr/local. I dont see any sparc debs in my mirror. thanks jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.5 and sparc
On 04/09/2006, at 11:28 PM, Stefaan A Eeckels wrote: On Mon, 04 Sep 2006 22:18:07 +1000 Dan Rossi <[EMAIL PROTECTED]> wrote: my last resort is of course solaris 10. In my experience, on SPARC Solaris 10 is the superior OS. developer resources are scarce for sparc another option for linux users is gcj/gij, this works fine for example build and run openoffice.org using GCC4.1.2 jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
