[Slightly off-topic] Re: How to make a system call in Java
Chris Abbey wrote:
...
> *note: Process.waitFor() has some ugly problems (on all platforms)
> with never returning your call
...It seemed to be a problem also when I played with this (using
JPython, not java directly, though). But then I discovered this was my
lack: I must empty both Output and Error streams before process can
finish. Moreover such as callee can intermix outputs to stdout and
stderr, I had to empty them in different threads. Then waitFor()
returned as awaited. This behaviour can be masked by the fact that
stdout is usually buffered. The following simple program was useful for
me to check whether my Java code uses exec - waitFor stuff properly:
#include
int main(void) {
int n = 100, i = 0;
while(n--) {
fprintf(stdout, "STDOUT line number %d\n", ++i)
fprintf(stderr, "STDERR line number %d\n", i)} }
Hopefully this information can be useful to somebody.
Pavel
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
glibc2.1 & libjava.so
Hi all Does anyone know if downloading a version of jdk will help fix the "/libjava.so: undefined symbol: _dl_symbol_value" error I'm getting? Thanks = Zak McGregorLinux: Infoline South Africa Easy pane relief = -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Native Threads
i downloaded the v3 JDK, and also the native threads stuff. i would like to RTFM about how to make use of the native threads stuff, but i don't know where the M is. can somebody point a finger? -- Gerald de Jong, Beautiful Code B.V. Rotterdam, The Netherlands, Tel. +31655893940 http://www.beautifulcode.nl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc2.1 & libjava.so
On Thu, 13 May 1999, Zak McGregor wrote: > Hi all > > Does anyone know if downloading a version of jdk will help fix the > "/libjava.so: undefined symbol: _dl_symbol_value" error I'm getting? Answering my own question: I downloaded jdk 1.1.7 & all is well... thanks = Zak McGregorLinux: Infoline South Africa Easy pane relief = -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help with parameters
Mario,
Java is a case sensitive language. You are getting a NullPointerException
because the getParameter call is looking for WINDOWCLASS and can't find it.
Please change the case of the param name to match that in the java class.
Hope this helps,
Joel McCarty
Mario Jorge Nunes Filipe wrote:
> Hi
>
> I'm trying to pass parameters to an applet.
>
> My html says the following :
>
>
>
> You don't have java!!
>
>
> My applet is like this :
>
> import java.awt.*;
> import java.awt.event.*;
> import javax.swing.*;
> import javax.swing.tree.*;
> import javax.swing.event.*;
> import javax.swing.JTree;
> import javax.swing.tree.DefaultMutableTreeNode;
> import javax.swing.tree.DefaultTreeModel;
>
> public class applet_si extends javax.swing.JApplet {
>
> /** Initializes the Form */
> public applet_si() {
> initComponents ();
> }
>
> private void initComponents () {
>
> getContentPane ().setLayout (new java.awt.BorderLayout ());
>
> String windowClass = getParameter("WINDOWCLASS");
> if (windowClass == null) {
> windowClass="Nao chegou nada";
>
> }
>
> DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
> DefaultMutableTreeNode c1 = new DefaultMutableTreeNode(windowClass);
> DefaultMutableTreeNode c2 = new DefaultMutableTreeNode("Child2");
> DefaultMutableTreeNode gc1 = new
> DefaultMutableTreeNode("Grandchild1");
> DefaultMutableTreeNode gc2 = new
> DefaultMutableTreeNode("Grandchild2");
> DefaultMutableTreeNode ggc1 = new
> DefaultMutableTreeNode("GrandGrandChild1")
> ;
> DefaultMutableTreeNode c3 = new DefaultMutableTreeNode("Child3");
>
> root.add(c1);
> root.add(c2);
> root.add(c3);
> c1.add(gc1);
> c1.add(gc2);
> gc1.add(ggc1);
>
> DefaultTreeModel model = new DefaultTreeModel(root);
>
> jtree1 = new JTree(model);
> jtree1.setRootVisible (false);
> jtree1.setEditable (true);
>
> getContentPane().add(jtree1, "Center");
> }
> private javax.swing.JTree jtree1;
> }
>
> When i do appletviewer xpto.html i get this
>
> java.lang.NullPointerException:
> at java.applet.Applet.getParameter(Applet.java:124)
> at applet_si.initComponents(applet_si.java:21)
> at applet_si.(applet_si.java:14)
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:456)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:392)
> at sun.applet.AppletPanel.run(AppletPanel.java:231)
> at java.lang.Thread.run(Thread.java)
>
> What am i doing wrong. The param tag and the getParameter call where
> copyed directly from the tutorial. I'm going crazy with this thing... :(
>
> Thanks
>
> Mario Filipe
> [EMAIL PROTECTED]
> http://neptuno.sc.uevora.pt/~mjnf
>
> --
> 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: Help with parameters
Joel McCarty wrote:
>
> Mario,
>
> Java is a case sensitive language. You are getting a NullPointerException
> because the getParameter call is looking for WINDOWCLASS and can't find it.
> Please change the case of the param name to match that in the java class.
Actually it doesn't.
The java tutorial says :
Note: Although this tutorial usually refers to parameter names using ALL
UPPERCASE, parameter names are case-insensitive. For example,
IMAGESOURCE and imageSource both refer to the same parameter. Parameter
values, on the other hand, are case-sensitive unless you take steps
interpret them otherwise, such as by using the String toLowerCase method
before interpreting the parameter's value.
But since I only believe in one Bible i tried to substitute the line
with the getParameter to the following :
String windowClass = getParameter("windowClass");
And the result was the same...
But thanks anyway
--
Mario Filipe
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 in Wine?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone tried to run JDk 1.2 + Hotspot in Wine under Linux? I thought I'd ask to potentially save myself a large download (no flatrates here!). / Peter Schuller - --- PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>' E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch Help create a free Java based operating system - www.jos.org. -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBNzr6H8BfJ1FVhL2YEQKDxQCggolOhGJhbPOqYSa9wGe7Qa/VsF0AoLG0 0z4txVML1z++SOj96378lF2q =4pmw -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Help with parameters
Hi
I'm trying to pass parameters to an applet.
My html says the following :
You don't have java!!
My applet is like this :
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
public class applet_si extends javax.swing.JApplet {
/** Initializes the Form */
public applet_si() {
initComponents ();
}
private void initComponents () {
getContentPane ().setLayout (new java.awt.BorderLayout ());
String windowClass = getParameter("WINDOWCLASS");
if (windowClass == null) {
windowClass="Nao chegou nada";
}
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
DefaultMutableTreeNode c1 = new DefaultMutableTreeNode(windowClass);
DefaultMutableTreeNode c2 = new DefaultMutableTreeNode("Child2");
DefaultMutableTreeNode gc1 = new
DefaultMutableTreeNode("Grandchild1");
DefaultMutableTreeNode gc2 = new
DefaultMutableTreeNode("Grandchild2");
DefaultMutableTreeNode ggc1 = new
DefaultMutableTreeNode("GrandGrandChild1")
;
DefaultMutableTreeNode c3 = new DefaultMutableTreeNode("Child3");
root.add(c1);
root.add(c2);
root.add(c3);
c1.add(gc1);
c1.add(gc2);
gc1.add(ggc1);
DefaultTreeModel model = new DefaultTreeModel(root);
jtree1 = new JTree(model);
jtree1.setRootVisible (false);
jtree1.setEditable (true);
getContentPane().add(jtree1, "Center");
}
private javax.swing.JTree jtree1;
}
When i do appletviewer xpto.html i get this
java.lang.NullPointerException:
at java.applet.Applet.getParameter(Applet.java:124)
at applet_si.initComponents(applet_si.java:21)
at applet_si.(applet_si.java:14)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:456)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:392)
at sun.applet.AppletPanel.run(AppletPanel.java:231)
at java.lang.Thread.run(Thread.java)
What am i doing wrong. The param tag and the getParameter call where
copyed directly from the tutorial. I'm going crazy with this thing... :(
Thanks
Mario Filipe
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help with parameters
Try putting the paramater name and value's in quotes, like this
--Alex McCarrier
--Momentum Software, Inc.
On Thu, 13 May 1999, Mario Jorge Nunes Filipe wrote:
> Joel McCarty wrote:
> >
> > Mario,
> >
> > Java is a case sensitive language. You are getting a NullPointerException
> > because the getParameter call is looking for WINDOWCLASS and can't find it.
> > Please change the case of the param name to match that in the java class.
>
> Actually it doesn't.
>
> The java tutorial says :
>
> Note: Although this tutorial usually refers to parameter names using ALL
> UPPERCASE, parameter names are case-insensitive. For example,
> IMAGESOURCE and imageSource both refer to the same parameter. Parameter
> values, on the other hand, are case-sensitive unless you take steps
> interpret them otherwise, such as by using the String toLowerCase method
> before interpreting the parameter's value.
>
> But since I only believe in one Bible i tried to substitute the line
> with the getParameter to the following :
>
> String windowClass = getParameter("windowClass");
>
> And the result was the same...
>
> But thanks anyway
> --
> Mario Filipe
> [EMAIL PROTECTED]
> http://neptuno.sc.uevora.pt/~mjnf
>
>
> --
> 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: position of java applications starting up.
Should be able to use Window.setLocation(x, y); And ToolKit.getScreenSize() to get the size of your screen. --Alex McCarrier --Momentum Software, Inc. On Thu, 13 May 1999, Justin Lawler wrote: > Hi, > > i was wondering if it is possible to set the position of > a java GUI once it starts up. Whenever i run a application > it starts up in the corner of the screen. > > I presume it is a windows manager problem, but am not to sure. > > I am running redhat 5.1 with kde 1.0. > > thanks, > > Justin. > > > -- > 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: Help with parameters
[EMAIL PROTECTED] wrote: > > Try putting the paramater name and value's in quotes, like this > > This wasn't the sollution either but i've found the solution. My initial code had a constructor for the class wich called a private function init_components. When i removed the constructor and switched the private initComponets to public everything worked! Thanks for all the help, even though your suggestions didn't real help, but they are always welcome! Thank you all! -- Mario Filipe [EMAIL PROTECTED] http://neptuno.sc.uevora.pt/~mjnf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: glibc2.1 & libjava.so
I upgraded to the 1.1.7v2 and it fixed this. You might try the latest 1.1.7v3 > -Original Message- > From: Zak McGregor [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 13, 1999 3:34 AM > To: [EMAIL PROTECTED] > Subject: glibc2.1 & libjava.so > > > Hi all > > Does anyone know if downloading a version of jdk will help fix the > "/libjava.so: undefined symbol: _dl_symbol_value" error I'm getting? > > Thanks > > > = > Zak McGregor Linux: > Infoline South Africa Easy pane relief > = > > > > > -- > 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: position of java applications starting up.
Hi, Use the setLocation method on your main window. -- /* * Jean-Pierre Dubé * Infocom enr. * Developpement de logiciels * Software development * */ Justin Lawler wrote: > > Hi, > > i was wondering if it is possible to set the position of > a java GUI once it starts up. Whenever i run a application > it starts up in the corner of the screen. > > I presume it is a windows manager problem, but am not to sure. > > I am running redhat 5.1 with kde 1.0. > > thanks, > > Justin. > > -- > 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: Help with parameters
Mario Jorge Nunes Filipe wrote: > > [EMAIL PROTECTED] wrote: > > > > Try putting the paramater name and value's in quotes, like this > > > > > > This wasn't the sollution either but i've found the solution. > > My initial code had a constructor for the class wich called a private > function init_components. When i removed the constructor and switched > the private initComponets to public everything worked! Ooops. Sorry! Actually i renamed private initComponents to public init -- Mario Filipe [EMAIL PROTECTED] http://neptuno.sc.uevora.pt/~mjnf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
position of java applications starting up.
Hi, i was wondering if it is possible to set the position of a java GUI once it starts up. Whenever i run a application it starts up in the corner of the screen. I presume it is a windows manager problem, but am not to sure. I am running redhat 5.1 with kde 1.0. thanks, Justin. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: position of java applications starting up.
Try: .setLocation(x,y); În J , 13 MAI 1999 a scris Justin Lawler: >Hi, > >i was wondering if it is possible to set the position of >a java GUI once it starts up. Whenever i run a application >it starts up in the corner of the screen. > >I presume it is a windows manager problem, but am not to sure. > >I am running redhat 5.1 with kde 1.0. > >thanks, > >Justin. > > >-- >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]
BDK 1.0
Does anyone know where I can download BDK 1.0? Sun seems to have completely migrated their site to 1.1, which only works with JDK 1.2. I need a version that works with JDK 1.1. Thanks. Richard Hall Network Services University of Tennessee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 and NetBeans or Simplicity???
Has anyone got JDK 1.2 to work properly with NetBeans x2 or SimplicityRC??? NetBeans installs properly (SuSE 6.0) and displays the splash screen, but then crashes with a SIGSEGV 11. Thanks for any help. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.2 and SuSE6.0 (AWT weird)
Hello Juergen > Try to use a different color depth, e.g. 'startx -- -bpp 32'. Does > it work then? Hum, unfortunately it doesn't work (I'm in 24 bpp by default and I already tried the values above and below, 32, 16, 8 ...). ... but thank you!! -=<[Trotzdem Danke ;-) ]>=- > -- > 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: JDK1.1.7_v3 and ORB.init()
> Armen Yampolsky writes: Armen> I have discovered a strange quirk with the new JDK1.1.7 v3. Before I Armen> submit this as a bug and print all sorts of debugging info, could Armen> somebody try this line of code: Armen> org.omg.CORBA.ORB = org.omg.CORBA.ORB.init(); Armen> I am getting a Armen> java.lang.UnsatisfiedLinkError: doPrivileged Armen> in the ORB's initialization. Armen> I am trying this with Sun's CORBA libraries, from the Armen> JDK1.2 jar. Will try others presently. This is not that strange, doPrivileged is new in 1.2. Code that needs doPrivileged simply won't work with 1.1.x. Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java 3D available soon!
> "SB" == Steve Byrne <[EMAIL PROTECTED]> writes: SB> I've uploaded a pre-release version of Java 3D for Java 2 to SB> Blackdown; it should reach the mirror sites over the next day SB> or two. You'll need to have Mesa 3 installed to be able to SB> run it. It works, at least for what I need for resuming development under Linux, from the copy I snarfed (which was incomplete, but I credit that to incomplete mirroring rather than the actual bzip'd archive)... (I've not done extensive testing, just run a simple data visualization tool, get the same errors I get under W/NT :-), so I'm happy). This is great. Congrats, porting team! best, -tony -- A.J. RossiniResearch Assistant Professor of Biostatistics Center for AIDS ResearchUW Biostatistics 206-720-4282 (4209=fax) 206-543-1044 (=fax) [EMAIL PROTECTED][EMAIL PROTECTED] http://www.biostat.washington.edu/~rossini/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java 3D available soon!
> "AJR" == A J Rossini <[EMAIL PROTECTED]> writes: AJR> It works, at least for what I need for resuming development AJR> under Linux, from the copy I snarfed (which was incomplete, I should also point out that this is under Debian's unstable distrn (potato), glib2.1, using green threads and a turned off JIT. and that I'm not doing anything really fancy (yet). best, -tony -- A.J. RossiniResearch Assistant Professor of Biostatistics Center for AIDS ResearchUW Biostatistics 206-720-4282 (4209=fax) 206-543-1044 (=fax) [EMAIL PROTECTED][EMAIL PROTECTED] http://www.biostat.washington.edu/~rossini/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.2 and SuSE6.0 (AWT weird)
> Andreas Windt writes: Andreas> That's the point when the uncanny things begin to Andreas> appear: the window disappears and java throws the Andreas> following: Andreas> SIGSEGV 11* segmentation violation Andreas>stackpointer=0xbf1ff3f4 Andreas> Full thread dump Classic VM Andreas> (Linux_JDK_1.2_pre-release-v1, native threads): Andreas> "AWT-EventQueue-0" (TID:0x410af4b0, sys_thread_t:0x8382dc0, Andreas> state:R, native ID:0x1405) prio=4 Andreas>at sun.java2d.loops.DefaultComponent.IntIsomorphicCopy(Native Method) Andreas>at sun.java2d.loops.IntRgbToIntRgb.OpaqueBlit(Compiled Code) Andreas>at sun.java2d.loops.RasterOutputManager.performOpaqueBlit(Compiled Try to use a different color depth, e.g. 'startx -- -bpp 32'. Does it work then? Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.2 and SuSE6.0 (AWT weird)
Hello everybody! Well ... first of all: a big thank you for porting Java to Linux (It was the final reason why I moved completely to Linux ... a wonderful thing, btw). It's quite uncanny what JDK1.2 is doing on my machine: No problems with the installation procedure, 'libstdc++-libc6.0-1.so.2` link created, etc. etc. ... Console applications run as they should, but as soon as any AWT stuff is used, the thing gets weird! The demo applications run ... until any AWT Method is called (the Animator demo is a good example, please see my addition in the end). Own applications run ... until any AWT Method is called ... (I believe the strange behaviour appears when calling an AWT class' method, if it would occour when loading the class itself it would be earlier, wouldn't it?) I hope this explanation is clear enough. I already tried those workaround, such as disabling the JIT, then I made java to use green threads instead of native ones (btw: when it runs, then there's no difference between running with green or native threads), but nothing worked. I hope there is anybody (or anybodies) out there who can help, thanks in advance. (... I believe 'Jani Mikkonen ` had a similar problem ...) Some information about my machine (if more is needed for accurate help, I'll send it at once!): I'm using SuSE Linux 6.0: kernel: 2.0.36 glibc: 2.0.7 (/lib/ld-2.0.7.so) Graphical stuff: xfree86 3.3.3 enlightenment dr0.15.5 gnome 1.0.3 Here comes what ldconfig says to my libs: /sbin/ldconfig: version 1.9.9 /usr/X11R6/lib: libppm.so.1.0 => libppm.so.1.0.0 libpnm.so.1.0 => libpnm.so.1.0.0 libpgm.so.1.0 => libpgm.so.1.0.0 libpbm.so.1.0 => libpbm.so.1.0.0 libFnlib.so.0 => libFnlib.so.0.4.0 libpng.so.2 => libpng.so.2.1.0.3 libwraster.so.1 => libwraster.so.1.0.2 libtk8.0.so => libtk8.0.so libtk4.2.so => libtk4.2.so libtksam4.2.so => libtksam4.2.so libtixsam4.1.7.6.so => libtixsam4.1.7.6.so libtix4.1.7.6.so => libtix4.1.7.6.so libtclsam7.6.so => libtclsam7.6.so librle.so.1 => librle.so.1.0.0 liblug.so.1 => liblug.so.1.0.8 libgif.so.3.0 => libgif.so.3.0 libMagick.so.4 => libMagick.so.4.0.16 libforms.so.0.88 => libforms.so.0.88 libXtst.so.6 => libXtst.so.6.1 libXt.so.6 => libXt.so.6.0 libXp.so.6 => libXp.so.6.2 libXmu.so.6 => libXmu.so.6.0 libXi.so.6 => libXi.so.6.0 libXext.so.6 => libXext.so.6.3 libXaw.so.6 => libXaw.so.6.1 libXIE.so.6 => libXIE.so.6.0 libX11.so.6 => libX11.so.6.1 libSM.so.6 => libSM.so.6.0 libPEX5.so.6 => libPEX5.so.6.0 libICE.so.6 => libICE.so.6.3 libXpm.so.4 => libXpm.so.4.11 libXaw3d.so.6 => libXaw3d.so.6.1 libz.so.1 => libz.so.1.1.3 /usr/i486-linux-libc5/lib: libzvt.so.0 => libzvt.so.0.0.0 libz.so.1 => libz.so.1.1.3 libxview.so.3 => libxview.so.3.2.4 libxml.so.0 => libxml.so.0.0.0 libxdelta.so.0 => libxdelta.so.0.0.18.0 libxclass.so => libxclass.so libwxtree_ol.so => libwxtree_ol.so.1.67 libwxtab_ol.so => libwxtab_ol.so.1.67 libwxprop_ol.so => libwxprop_ol.so.1.67 libwxhtml_ol.so => libwxhtml_ol.so.1.67 libwxgrid_ol.so => libwxgrid_ol.so.1.67 libwxgraph_ol.so => libwxgraph_ol.so.1.67 libwxchart_ol.so => libwxchart_ol.so.1.67 libwx_xtwidgets.so => libwx_xtwidgets.so.1.66 libwx_xt.so => libwx_xt.so.1.66 libwx_ol.so => libwx_ol.so.1.67 libvgagl.so.1 => libvgagl.so.1.3.0 libvga.so.1 => libvga.so.1.3.0 libuulib.so.0 => libuulib.so.0.0.0 libtvision.so => libtvision.so.0.5 libttf.so.2 => libttf.so.2.0.0 libtkx4.2.0.so => libtkx4.2.0.so libtkstep4.1.so => libtkstep4.1.so libtksam4.2.so => libtksam4.2.so libtk8.0.so => libtk8.0.so libtk4.2i.so => libtk4.2i.so libtk4.2.so => libtk4.2.so libtk4.0.so.1 => libtk4.0.so.1 libtixsam4.1.8.0.so => libtixsam4.1.8.0.so libtixsam4.1.7.6.so => libtixsam4.1.7.6.so libtix4.1.8.0.so => libtix4.1.8.0.so libtix4.1.7.6.so => libtix4.1.7.6.so libtiff.so.3 => libtiff.so.3 libtermcap.so.2 => libtermcap.so.2.0.8 libtclx7.6.0.so => libtclx7.6.0.so libtclsam7.6.so => libtclsam7.6.so libtcl8.0.so => libtcl8.0.so libtcl7.6i.so => libtcl7.6i.so libtcl7.6.so => libtcl7.6.so libtcl7.4.so.1 => libtcl7.4.so.1 libstyle.so.1 => libstyle.so.1.0.3 libstdc++.so.27 => libstdc++.so.27.2.8 libstdc++.so.2.9 => libstdc++.so.2.9.0 libsspkg.so.1 => libsspkg.so.1.0 libspgrove.so.1 => libspgrove.so.1.0.3 libsp.so.1 => libsp.so.1.0.3 libsnmp.so.3.5 => libsnmp.so.3.5 libslang.so.1 => libslang.so.1.2
Re: Native Threads
On Thu, 13 May 1999 10:42:54 +0200, Gerald de Jong wrote: > >i downloaded the v3 JDK, and also the native threads stuff. > >i would like to RTFM about how to make use of the native threads stuff, but i >don't know where the M is. can somebody point a finger? The M should be in the README.linux but it seems we have lost it (as in, the latest release does not have that section in it.) Here is the section from the previous release: (note that it needs some updating but is generally correct.) Native Threads support -- Starting with the 1.1.7 v1a port of the Java Virtual Machine, we have added native thread support. Traditionally, the JVM used user based threads, also known as "green" threads. Native threads, on the other hand, use the operating system to do the task switching. Native threads are thus a benefit in multi-processor (SMP) systems and they tend to make native method invocation support easier to deal with. Native threads do have some limitations relative to green threads. They require more overhead and are limited to the number of processes your Linux kernel supports. Native thread support is new as of 1.1.7 v1a due to the wonderful effort of Phill Edwards. To install the native threads package, you need to first download the JDK, JRE, RT and install that. Next, you need to get the matching native threads package and install that into the same location. Finally, to use the native threads version of the JVM, you need to set the THREADS_FLAG environment variable to "native" Note, that while the native threads support works very well and has been tested by the Java-Linux porting team, it should still be viewed as "beta" code as it has not had the extended testing that the green threads code has. Also, at this time there is no native threads support for libc5 systems. Only glibc based Linux systems. 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: position of java applications starting up.
>i was wondering if it is possible to set the position of >a java GUI once it starts up. Whenever i run a application >it starts up in the corner of the screen. Like people said, setLocation() will do that. But I have a related question - how do I *not* set the position of a window? I don't call any methods to set the position, yet my window manager thinks the window is demanding to be placed at 0,0. I'd rather let the window manager decide itself. Am I doing something wrong here? Is this a (small) JDK bug for X? [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: position of java applications starting up.
Nelson Minar wrote: > >i was wondering if it is possible to set the position of > >a java GUI once it starts up. Whenever i run a application > >it starts up in the corner of the screen. > > Like people said, setLocation() will do that. But I have a related > question - how do I *not* set the position of a window? I don't call > any methods to set the position, yet my window manager thinks the > window is demanding to be placed at 0,0. I'd rather let the window > manager decide itself. > > Am I doing something wrong here? Is this a (small) JDK bug for X? It may be in the spec but Java defaults to (0,0) if the bounds are not set. It happens in the java layer by default I'm pretty sure. If you want placemnt you will have to roll your own. Btw calling setBounds befor setVisible keeps the winow from showing at 0,0 before moving to Location. I think setLocation only works afte your visible Call frame.pack(); Dimension d = getSize(); int myX= ?? int myY= ?? setBounds( myX,myY,d.width,d.height); setVisible(true); Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.1.7v3 RH 6.0 and Japanese
Hello, I am having problems displaying Japanese under RedHat 6.0 using the new JDK 1.1.7 v3. I am NOT having problems with RH 5.2 though. I appear to have exactly the same fonts between the two machines. I'm using the font.properties.ja for font.properties on both machines. Everything that I can think of that would affect this seems to be the same between the two machines. Has anyone else gotten this to work ? stephan ## Stephan R. Cleaves Senior Software Engineer, Java/Unix Team mailto:[EMAIL PROTECTED] (603) 665-1269 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: position of java applications starting up.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > i was wondering if it is possible to set the position of > a java GUI once it starts up. Whenever i run a application > it starts up in the corner of the screen. > > I presume it is a windows manager problem, but am not to sure. > > I am running redhat 5.1 with kde 1.0. A Java application is no different from any other application. If the application itself doesn't to a resize, then the window will be placed according to the window manager's window placement algorithm. If you need you Java apps to be centered, you have to implement that in your code. You can never assume that your window will pop up centered, unless you do that yourself. / Peter Schuller "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook - --- PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>' E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch Help create a free Java based operating system - www.jos.org. -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBNzsC78BfJ1FVhL2YEQI0KACfVsrRz5foabdZVqd+XwgQOVqnI2QAn21n YuYY5QHbjNL/5kpEoYLsxvMj =ngv7 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Further Clarification of 117V3, RH6.0 & JA
On RedHat 5.2, with JDK 1.1.7 V3 I get the following snippet of output with verbose when displaying a string of Japanese text... [Loaded sun/awt/motif/MFontPeer.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/PlatformFont.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded java/awt/peer/FontPeer.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/FontDescriptor.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/motif/CharToByteX11JIS0208.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/io/CharToByteJIS0208.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/io/CharToByteDoubleByte.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/motif/CharToByteX11JIS0201.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/motif/CharToByteX11Dingbats.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/CharToByteSymbol.class from /usr/local/jdk117_v3/lib/classes.zip] You will noticed that some conversion classes are in there. Here is the snippet from RH 6.0, all else the same... [Loaded sun/awt/motif/MFontPeer.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/PlatformFont.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded java/awt/peer/FontPeer.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/FontDescriptor.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/motif/CharToByteX11Dingbats.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded sun/awt/CharToByteSymbol.class from /usr/local/jdk117_v3/lib/classes.zip] [Loaded /home/scleaves/src/proto2/com/silknet/ebusiness/core/ds/client/UnicodeCanvas .class] As you can see, there are no conversion classes for Japanese getting loaded. I imagine I could start decompiling things and see what the code is doing, but I don't have a decompiler handy at the moment and this may not be a trivial hunt. I'd like to know if anyone has tried to display Japanese (I'm just drawing it to a canvas) and had success under RH6.0? stephan ## Stephan R. Cleaves Senior Software Engineer, Java/Unix Team mailto:[EMAIL PROTECTED] (603) 665-1269 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.2 : I am lost
On Thu, 13 May 1999, ALLEON Guillaume wrote: > "Alexander V. Konstantinou" wrote: > > > I have not tried it, but if I recall correctly from the conversations > > I read, JDK1.2 pre1 will work with glibc2.1 if you turn the JIT off > > and select green threads. > /usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: undefined symbol: __rtti_user You also need to grab the libstdc++ from the debian 2.1 distribution (use alien to convert the .deb to .tgz or .rpm). Copy the file libstdc++-2-libc6.0-1-2.9.0.so to /usr/local/lib, add /usr/local/lib to /etc/ld.so.conf, /sbin/ldconfig and you should be set. - cls -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.2 and NetBeans or Simplicity???
I have JDK1.2 for WinNT (work) and Blackdown's port (Linux) working with NetBeans on both machines. I also have Simplicity working on both machines. Although Simplicity (at least my version) is just a demo and won't let you save files. NetBeans installed right from the download on both machines without a problem. Although I did notice that NetBeans is a real memory hog. The WinNT box at work is 256MB of ram and my Linux box at home is only 64MB. On the NT I have a little room in ram to run other stuff on the Linux box about all I can do is open, edit and maybe compile files. I have to just about shutdown everything else. Need some ram real soon. Hope this helps. Rob Thompson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Servlets and Such
Anybody out there can suggest a good servlet tutorial. I've just downloaded Sun's Java Web Server and I am writting some servlets using Blackdown's java1.2 port. I know this is a little off topic but I'd appreciate any references I can get. The Java Web Server is so new they still have some of the old documentation in the download. Since you all seem to be a cutting edge group I figured this might be better than Sun's Mailing List. software: Red Hat Linux 5.2 kernel 2.036 JDK1.2 (Blackdown) JSDK2.0 and 2.1 Java Web Server 2.0 Thanks Loads Rob Thompson home: [EMAIL PROTECTED] work: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: position of java applications starting up.
schuller says: > A Java application is no different from any other application. If the > application itself doesn't to a resize, then the window will be placed > according to the window manager's window placement algorithm. Take a look at MComponentPeer.pInitialize(). It sets the location of the window (to 0,0 if no setLocation call has occurred). This is different from "any other application." Many window managers will honor requests by the application for explicit placement, overriding the default user- interactive placement algorithm. It looks like there's no way to avoid this when using the motif native AWT layer, short of hacking the window manager to notice when USPosition|PPosition is 0,0, and ignore it. -- Pete -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: (0.3 * 3) = 0,8999999999 ????
> Thats not a bug, thats just typical behaviour with
> floating point
> algorithm, try to compile and run this little C
> program on your linux machine:
>
> #include
> void main() {
> double d1 = 0.3, d2 = 3, d3;
>
> d3 = d1 * d2;
>
> printf("%20.20lf", d3);
> }
But! Using egcs, C++, and my i686 Linux box I get .9
using float, double, or long double. What's the story?
Ken
_
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
does anyone have taste the gcj and libgcj of cygnus
I have complie the gcj .but I have never make the source code of libgcj complied ok on my redhat 5.2 Oh ,how should I do .I complie it the snapshot of 1999-5-13. maybe the 13 :-) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java 3D available soon!
On Wed, 12 May 1999, Steve Byrne wrote: > I've uploaded a pre-release version of Java 3D for Java 2 to Blackdown; it > should reach the mirror sites over the next day or two. You'll need to have > Mesa 3 installed to be able to run it. Well... render me impressed! ;) I made a few modifications to the Makefiles on my project, recompiled (just for testing), and ran it no problem. The performance is a bit sluggish on my unaccelerated PC, as compared to fully accelerated Sun Ultra 10s, ;) but it runs fine nonetheless. For those interested, the project is a 3D chat room application that utilizes large, prebuilt worlds that users (represented by avatars) navigate around in. It uses quite a number of different features of Java 3D, so as you can imagine, I am delighted that it worked flawlessly under Linux with the Blackdown team's port of Java 3D. Although my application doesn't use sound, I noticed that sound is also supported. I tried the sample sound application (SimpleSounds), and after realizing that esd was hogging /dev/audio, and that I needed to pass it a directory (.), I got it to work fine. I'm curious as to how well the 3D positional sound in Java 3D is supported under Linux as I would like to add it to my project. Anyways, my thanks to Steve and the rest of the Blackdown team, you've done another great job! Gord -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
