[opensuse] Java and swing
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
does the JVM I am using (java-1.5.0-sun-1.5.0_update14/bin/java) contain the swing classes internally? What is the file "./usr/include/c++/4.2.1/javax/swing" that I find? Does the swing library have to be used from it? -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/795bf7052d2703ff0241cb3df2e7ef8e.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 04:50:08 am Stan Goodman wrote:
does the JVM I am using (java-1.5.0-sun-1.5.0_update14/bin/java) contain the swing classes internally?
Yes. Unless you're using some open source implementation of Java not created by Sun, you have Swing.
What is the file "./usr/include/c++/4.2.1/javax/swing" that I find?
I have no idea. However, since 1.5, swing is in the javax.swing library.
Does the swing library have to be used from it?
I suppose you can use it from wherever you want. I just do an import import javax.swing.*; -- kai www.filesite.org || www.4thedadz.com || www.perfectreign.com remember - a turn signal is a statement, not a request -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 15:55:34 Kai Ponte wrote:
On Sunday 23 March 2008 04:50:08 am Stan Goodman wrote:
does the JVM I am using (java-1.5.0-sun-1.5.0_update14/bin/java) contain the swing classes internally?
Yes. Unless you're using some open source implementation of Java not created by Sun, you have Swing.
What is the file "./usr/include/c++/4.2.1/javax/swing" that I find?
I have no idea.
However, since 1.5, swing is in the javax.swing library.
Yes, that's what I have seen. But this is not clear to me; perhaps I should have started my query with that. The location I named above is the only reference to "javax" I find in my system; I find no file or directory called "javax.swing". Is "javax.swing" inside some other java file? To be even more specific, if I have a java app that is an older jar file that uses swing, and that is old enough that it wants to have the swing library called called in the classpath, how must I call this library? Or does swing need to be in the classpath specifically at all; is it enough that it is in the jvm and will be found automatically/ The background for the question is a java app that I have used for a long time in OS/2, under java v1.4.2. In that case, I did not have to add swing to the classpath. But with the self-same recipe, I have been unable to start the app now, in Linux, and have not been able to identify any other difference between the two environments. What I didn't think of until just now, however, is that I ought to try the app under v1.4.2, which is also on the machine, since the difference in the location of swing begins with java v1.5.
Does the swing library have to be used from it?
I suppose you can use it from wherever you want.
I just do an import
import javax.swing.*;
-- kai www.filesite.org || www.4thedadz.com || www.perfectreign.com remember - a turn signal is a statement, not a request
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 07:25, Stan Goodman wrote:
...
Yes, that's what I have seen. But this is not clear to me; perhaps I should have started my query with that.
The location I named above is the only reference to "javax" I find in my system; I find no file or directory called "javax.swing". Is "javax.swing" inside some other java file?
That name, "javax.swing" is a package name, not a class name. (Class names start with a capital letter, by strongly held conventin.) All the compiled class files (suffix ".class") reside in JAR files in the shipped Java runtime. The JVM can read from JAR files (structurally like ZIP files) or from the file system. It maps the hierarchichal package structure onto the directory structure, either on a file system or within a JAR file.
To be even more specific, if I have a java app that is an older jar file that uses swing, and that is old enough that it wants to have the swing library called called in the classpath,
I don't know what this means. The Java standard library package namespace is standardized and Swing is included in that standard. No one would write a program to use Swing classes in non-standard packages.
how must I call this library?
You don't. Swing is built in. If a program uses Swing (properly), it will be there and be found.
Or does swing need to be in the classpath specifically at all; is it enough that it is in the jvm and will be found automatically/
Depending on how old your application is (it would have to be really old), it may not work at all, since the Swing packages were relocated early on in Java's evolution.
The background for the question is a java app that I have used for a long time in OS/2, under java v1.4.2. In that case, I did not have to add swing to the classpath. But with the self-same recipe, I have been unable to start the app now, in Linux, and have not been able to identify any other difference between the two environments. What I didn't think of until just now, however, is that I ought to try the app under v1.4.2, which is also on the machine, since the difference in the location of swing begins with java v1.5.
Now. The Swing packages were relocated between 1.1 and 1.2 of Java, about 10 years ago.
...
-- Stan Goodman
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 16:39:04 Randall R Schulz wrote:
On Sunday 23 March 2008 07:25, Stan Goodman wrote:
...
Yes, that's what I have seen. But this is not clear to me; perhaps I should have started my query with that.
The location I named above is the only reference to "javax" I find in my system; I find no file or directory called "javax.swing". Is "javax.swing" inside some other java file?
That name, "javax.swing" is a package name, not a class name. (Class names start with a capital letter, by strongly held conventin.) All the compiled class files (suffix ".class") reside in JAR files in the shipped Java runtime. The JVM can read from JAR files (structurally like ZIP files) or from the file system. It maps the hierarchichal package structure onto the directory structure, either on a file system or within a JAR file.
To be even more specific, if I have a java app that is an older jar file that uses swing, and that is old enough that it wants to have the swing library called called in the classpath,
I don't know what this means. The Java standard library package namespace is standardized and Swing is included in that standard. No one would write a program to use Swing classes in non-standard packages.
how must I call this library?
You don't. Swing is built in. If a program uses Swing (properly), it will be there and be found.
Or does swing need to be in the classpath specifically at all; is it enough that it is in the jvm and will be found automatically/
Depending on how old your application is (it would have to be really old), it may not work at all, since the Swing packages were relocated early on in Java's evolution.
It is a java1 application (therefore ancient). In java1, swing was a separately packaged library, so the official way to load the app included putting the swing library into the classpath. But as I have said, I had been using the application very successfully under java v1.4.2, where I did not need to think about swing, because it is internal to the jvm. Since I have been unable to find why I can't do the same thing in Linux, I am casting about for what is different. I don't have any more things to try, except to fall back to java v1.4.2; I am not optimistic that there wll be a difference, but I'll try that tomorrow or the next day.
The background for the question is a java app that I have used for a long time in OS/2, under java v1.4.2. In that case, I did not have to add swing to the classpath. But with the self-same recipe, I have been unable to start the app now, in Linux, and have not been able to identify any other difference between the two environments. What I didn't think of until just now, however, is that I ought to try the app under v1.4.2, which is also on the machine, since the difference in the location of swing begins with java v1.5.
Now. The Swing packages were relocated between 1.1 and 1.2 of Java, about 10 years ago.
...
-- Stan Goodman
Randall Schulz
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/795bf7052d2703ff0241cb3df2e7ef8e.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 07:25:38 am Stan Goodman wrote:
On Sunday 23 March 2008 15:55:34 Kai Ponte wrote:
On Sunday 23 March 2008 04:50:08 am Stan Goodman wrote:
does the JVM I am using (java-1.5.0-sun-1.5.0_update14/bin/java) contain the swing classes internally?
Yes. Unless you're using some open source implementation of Java not created by Sun, you have Swing.
What is the file "./usr/include/c++/4.2.1/javax/swing" that I find?
I have no idea.
However, since 1.5, swing is in the javax.swing library.
Yes, that's what I have seen. But this is not clear to me; perhaps I should have started my query with that.
The location I named above is the only reference to "javax" I find in my system; I find no file or directory called "javax.swing". Is "javax.swing" inside some other java file?
To be even more specific, if I have a java app that is an older jar file that uses swing, and that is old enough that it wants to have the swing library called called in the classpath, how must I call this library? Or does swing need to be in the classpath specifically at all; is it enough that it is in the jvm and will be found automatically/
The background for the question is a java app that I have used for a long time in OS/2, under java v1.4.2. In that case, I did not have to add swing to the classpath. But with the self-same recipe, I have been unable to start the app now, in Linux, and have not been able to identify any other difference between the two environments. What I didn't think of until just now, however, is that I ought to try the app under v1.4.2, which is also on the machine, since the difference in the location of swing begins with java v1.5.
Aren't you the one using some old version of an app that someone else told you to upgrade? In any case, if you want - you can always load some older version of Java to satisfy whatever requirements you need. -- kai www.filesite.org || www.4thedadz.com || www.perfectreign.com remember - a turn signal is a statement, not a request -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 19:52:03 Kai Ponte wrote:
On Sunday 23 March 2008 07:25:38 am Stan Goodman wrote:
On Sunday 23 March 2008 15:55:34 Kai Ponte wrote:
On Sunday 23 March 2008 04:50:08 am Stan Goodman wrote:
does the JVM I am using (java-1.5.0-sun-1.5.0_update14/bin/java) contain the swing classes internally?
Yes. Unless you're using some open source implementation of Java not created by Sun, you have Swing.
What is the file "./usr/include/c++/4.2.1/javax/swing" that I find?
I have no idea.
However, since 1.5, swing is in the javax.swing library.
Yes, that's what I have seen. But this is not clear to me; perhaps I should have started my query with that.
The location I named above is the only reference to "javax" I find in my system; I find no file or directory called "javax.swing". Is "javax.swing" inside some other java file?
To be even more specific, if I have a java app that is an older jar file that uses swing, and that is old enough that it wants to have the swing library called called in the classpath, how must I call this library? Or does swing need to be in the classpath specifically at all; is it enough that it is in the jvm and will be found automatically/
The background for the question is a java app that I have used for a long time in OS/2, under java v1.4.2. In that case, I did not have to add swing to the classpath. But with the self-same recipe, I have been unable to start the app now, in Linux, and have not been able to identify any other difference between the two environments. What I didn't think of until just now, however, is that I ought to try the app under v1.4.2, which is also on the machine, since the difference in the location of swing begins with java v1.5.
Aren't you the one using some old version of an app that someone else told you to upgrade?
Yes. I wasn't told to upgrade GenealogyJ; I was told that there is a much later version -- which I already knew. I didn't like the newer version (v2.x) when it was released, and I still don't -- the very newest release is installed here now. But the point is that I have been using v1.9 for a long time on another platform with no difficulty whatever. That I have not been able to use it in Linux is strange, and I am still trying to find out why this is so.
In any case, if you want - you can always load some older version of Java to satisfy whatever requirements you need.
Yes. The newest jvm I had used the program on was v1.4.2, as I have said, and I mean to try that now with openSuSE. I'll tell the list what were the results after I do it. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/795bf7052d2703ff0241cb3df2e7ef8e.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 11:09:27 am Stan Goodman wrote:
In any case, if you want - you can always load some older version of Java to satisfy whatever requirements you need.
Yes. The newest jvm I had used the program on was v1.4.2, as I have said, and I mean to try that now with openSuSE. I'll tell the list what were the results after I do it.
then i would suggest loading 1.4.2 - I know the namespace method is different. this may be better suited for the genealogy J forums? -- kai www.filesite.org || www.4thedadz.com || www.perfectreign.com remember - a turn signal is a statement, not a request -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 20:42:26 Kai Ponte wrote:
On Sunday 23 March 2008 11:09:27 am Stan Goodman wrote:
In any case, if you want - you can always load some older version of Java to satisfy whatever requirements you need.
Yes. The newest jvm I had used the program on was v1.4.2, as I have said, and I mean to try that now with openSuSE. I'll tell the list what were the results after I do it.
then i would suggest loading 1.4.2 - I know the namespace method is different.
this may be better suited for the genealogy J forums?
Probably not. I don't think the problem is peculiar to GenealogyJ. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 13:30, Stan Goodman wrote:
On Sunday 23 March 2008 20:42:26 Kai Ponte wrote:
...
this may be better suited for the genealogy J forums?
Probably not. I don't think the problem is peculiar to GenealogyJ.
I don't know. Given the fact that it is literally antique software...
-- Stan Goodman
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/abdee805d4df05af9a496107100c582c.jpg?s=120&d=mm&r=g)
* Randall R Schulz
I don't know. Given the fact that it is literally antique software...
Humm, <quote> en/introduction.txt · Last modified: 2008/03/07 19:55 by nmeier </quote> May be long in tooth, but is still maintained :^) -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 15:02, Patrick Shanahan wrote:
* Randall R Schulz
[03-23-08 16:38]: I don't know. Given the fact that it is literally antique software...
Humm, <quote> en/introduction.txt · Last modified: 2008/03/07 19:55 by nmeier </quote>
May be long in tooth, but is still maintained :^)
Yes, but Stan is running a 10-year-old version of GeneaologyJ.
-- Patrick Shanahan
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/795bf7052d2703ff0241cb3df2e7ef8e.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 03:06:17 pm Randall R Schulz wrote:
On Sunday 23 March 2008 15:02, Patrick Shanahan wrote:
* Randall R Schulz
[03-23-08 16:38]: I don't know. Given the fact that it is literally antique software...
Humm, <quote> en/introduction.txt · Last modified: 2008/03/07 19:55 by nmeier </quote>
May be long in tooth, but is still maintained :^)
Yes, but Stan is running a 10-year-old version of GeneaologyJ.
Wel, that's actually fine. I still use q-edit once in a while. He just needs to either (a) load Java 1.4.2 - which has a wholly different namespace structure than 1.5.x or 1.6.x - or (b) figure out on the GeneologyJ forums how to get the 10+ year old version working with a modern Java runtime. -- kai www.filesite.org || www.4thedadz.com || www.perfectreign.com remember - a turn signal is a statement, not a request -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Monday 24 March 2008 00:02:15 Patrick Shanahan wrote:
* Randall R Schulz
[03-23-08 16:38]: I don't know. Given the fact that it is literally antique software...
Humm, <quote> en/introduction.txt · Last modified: 2008/03/07 19:55 by nmeier </quote>
May be long in tooth, but is still maintained :^)
The 2008/03/07 date is for the latest v2.x release, not for the one I (and not a few others) continue to use (v1.95). The latter is, in fact venerable, which doesn't mean that it is unusable or even inferior, in its own terms. It does everything that I want it to do, and it is rock-solid reliable in my experience. For me, the new releases are grossly bloated. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/ea4cbc769ddf3ba4583b050a65c59a5a.jpg?s=120&d=mm&r=g)
On Sunday 23 March 2008 22:37:01 Randall R Schulz wrote:
On Sunday 23 March 2008 13:30, Stan Goodman wrote:
On Sunday 23 March 2008 20:42:26 Kai Ponte wrote:
...
this may be better suited for the genealogy J forums?
Probably not. I don't think the problem is peculiar to GenealogyJ.
I don't know. Given the fact that it is literally antique software...
Well... maybe figuratively. =;-)8 The reason I think that is that it works on one OS with Java v1.4.2 (Suns). I would expect it to behave similarly with the same jvm on a different OS. Admittely, this may be in the category of "Famous Last Words", but it's certainly a decent first assumption. And if the assumption is wrong, it is still not a problem og GenealogyJ, but one of variations in jvm releases. On the other hand, I notice that (other than the java v1.5.0), the following java executables are present on the system: /usr/lib64/jvm/java /usr/lib64/jvm/java-1.4.2-cacao-0.97/bin/java /usr/lib64/jvm/java-1.4.2-gcj-1.4.2.0/bin/java None of them are labelled as Sun, so I suppose that may make a difference. And I don't know yet what the first one is, since it doesn't even say what version is it. I haven't had time yet to ask it for -version, or to check out any of them. But I'll get to that. If none of them works, I will not be any worse off than I am now. As I said, I have the latest release installed, and it works; I can always fall back on it. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Kai Ponte
-
Patrick Shanahan
-
Randall R Schulz
-
Stan Goodman