[opensuse] Starting a Java application
I have been using this Java app for many years under OS/2, and want now to run
it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the
application's own directory) is:
Stan Goodman schrieb:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what.
It seems that neither of the 2 libraries contains the Class genj.app.App which you are trying to call. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
** Reply to message from Thomas Schmidt
Stan Goodman schrieb:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what.
It seems that neither of the 2 libraries contains the Class genj.app.App which you are trying to call. Greetings
No. That is why I mentioned at the beginning that I have been using this
application for many years. Those two jars are the only ones around. To try to
call it under Linux, I tried to translate the OS/2 instruction (which works!)
to Linuxese according to information I found on the Web. To be clear, in OS/2,
the classpath is
On Monday 17 March 2008 11:04:21 am Stan Goodman wrote:
** Reply to message from Thomas Schmidt
on Mon, 17 Mar The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
I don't know what the -cp does...
Under OS/2, I used quite a few Java applications. What I have seen is that the NoClassFoundError is pretty much a general purpose thing that can happen when virtually anything triggers it. I am hoping that someone more knowledgeable than me can detect what is triggering it now, because I just don't see it.
Right. Basically, your command isn't launching anything. If your executable is in one of the jar files then you need to run the -jar switch. For example, here's how I run a project I'm working on.. kai@xwing:/> java -jar ./gerry.jar If you're trying to set a classpath in addition to the jar, I believe that may or may not be supported. java -cp someclassfile.jar:someotherclassfile.jar myCoolApplication What version of Java do you have? -- 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
On Monday 17 March 2008 20:27:12 Kai Ponte wrote:
On Monday 17 March 2008 11:04:21 am Stan Goodman wrote:
** Reply to message from Thomas Schmidt
on Mon, 17 Mar The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
I don't know what the -cp does...
"-cp" is an alias for "-classpath". That's what I have found in Linux documentation. But it's the same if I replace the two-letter command with the whold word.
Under OS/2, I used quite a few Java applications. What I have seen is that the NoClassFoundError is pretty much a general purpose thing that can happen when virtually anything triggers it. I am hoping that someone more knowledgeable than me can detect what is triggering it now, because I just don't see it.
Right.
Basically, your command isn't launching anything.
That's why I posted the question. =;-)8
If your executable is in one of the jar files then you need to run the -jar switch.
For example, here's how I run a project I'm working on..
kai@xwing:/> java -jar ./gerry.jar
I think that way is for apps newer than this one.
If you're trying to set a classpath in addition to the jar, I believe that may or may not be supported.
java -cp someclassfile.jar:someotherclassfile.jar myCoolApplication
The app IS the first jar file, or the file within that file which is the final argument in the command line I have been using. That is also the way that this application is called in other OSes -- the differences among them is entirely in the punctuation.
What version of Java do you have?
./usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/java -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
** Reply to message from Thomas Schmidt
on Mon, 17 Mar 2008 18:17:54 +0100 Stan Goodman schrieb:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what. are you sure that you issue the command from the correct working
Stan Goodman schrieb: directory? the command you use means that the paths./lib/genj.jar and ./lib/jhbasic.jar are relative to your current working directory at the moment when you issue your command. Or can you tell me the absolute paths of these two jars (beginning with "/")? then I will tell you the correct command. Greetings, Alex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 23:04:41 Alexander Winizki wrote:
Stan Goodman schrieb:
** Reply to message from Thomas Schmidt
on Mon, 17 Mar 2008 18:17:54 +0100 Stan Goodman schrieb:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what.
are you sure that you issue the command from the correct working
I am.
directory? the command you use means that the paths./lib/genj.jar and ./lib/jhbasic.jar are relative to your current working directory at the moment
Quite right.
when you issue your command. Or can you tell me the absolute paths of these two jars (beginning with "/")?
I am in the "genj" directory. The jar files are in a subdirectory of "genj" called "lib". Thus I reference e.g. the file "genj.jar" as "./lib/genj.jar". I think that is correct.
then I will tell you the correct command. Greetings, Alex
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 14:25, Stan Goodman wrote:
...
when you issue your command. Or can you tell me the absolute paths of these two jars (beginning with "/")?
I am in the "genj" directory. The jar files are in a subdirectory of "genj" called "lib". Thus I reference e.g. the file "genj.jar" as "./lib/genj.jar". I think that is correct.
You could confirm that by entering the command: % ls -l ./lib/genj.jar ./lib/jhbasic.jar Ls should find them. But I'd still do what Alexander said and use absolute path names in the classpath. And realistically, you should be launching this via a script, either one that's included with the program or, lacking that, one of your own construction. And if the application came with launch scripts, they may perform other necessary start-up behavior that's not happening when you go straight to launching the Java program. Is it possible that this application uses native code? If so, you'll need a 64-bit version of the shared object libraries that supply it. Do other Java applications work OK on the same system that fails to launch this one?
-- Stan Goodman
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 23:43:37 Randall R Schulz wrote:
On Monday 17 March 2008 14:25, Stan Goodman wrote:
...
when you issue your command. Or can you tell me the absolute paths of these two jars (beginning with "/")?
I am in the "genj" directory. The jar files are in a subdirectory of "genj" called "lib". Thus I reference e.g. the file "genj.jar" as "./lib/genj.jar". I think that is correct.
You could confirm that by entering the command:
% ls -l ./lib/genj.jar ./lib/jhbasic.jar
The files are there. I can see them. They are also in the right place.
Rather than knock my head against a brick wall, I've chosen to bite the
bullet and download the new (one week old) release. I've installed it,
and this has been painless ... right to the end. It left an icon on the
desktop, so I don't even have to do that.
Clicking on the icon brings up the exasperating announcement
that: "KDEInit cannot
launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in
that directory. Even more surprising,
Do other Java applications work OK on the same system that fails to launch this one?
Yes, they do. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do?
It's a typo. Just delete the w. It should be .../jre/bin/java Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 18 March 2008 00:17:32 Anders Johansson wrote:
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do?
It's a typo. Just delete the w. It should be .../jre/bin/java
Anders
I must not have been clear. There is noplace where "javaw" is visible except in the error message. I don't know that it is a typo; "javaw" is a normal Java executable. I don't know why there is none on my system. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
On Tuesday 18 March 2008 00:17:32 Anders Johansson wrote:
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do? It's a typo. Just delete the w. It should be .../jre/bin/java
Anders
I must not have been clear. There is noplace where "javaw" is visible except in the error message. I don't know that it is a typo; "javaw" is a normal Java executable. I don't know why there is none on my system.
It is not normal on a linux system The typo is in $HOME/Desktop/Genealogy\ J.desktop In that file you have a line that says Exec=/usr/lib/jvm/java-1.6.0.u4-sun-1.6.0.u4/jre/bin/javaw -Xmx512m -Xms32m -jar run.jar Edit that to remove the w from javaw, and it will work. I tried it myself here, and it does work Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
Stan Goodman wrote:
On Tuesday 18 March 2008 00:17:32 Anders Johansson wrote:
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do? It's a typo. Just delete the w. It should be .../jre/bin/java
Anders I must not have been clear. There is noplace where "javaw" is visible except in the error message. I don't know that it is a typo; "javaw" is a normal Java executable. I don't know why there is none on my system.
It is not normal on a linux system
The typo is in $HOME/Desktop/Genealogy\ J.desktop
In that file you have a line that says
Exec=/usr/lib/jvm/java-1.6.0.u4-sun-1.6.0.u4/jre/bin/javaw -Xmx512m -Xms32m -jar run.jar
Well, except that on your system it said java-1.5.0-something. Whatever, just remove the w and it will work I forgot to mention that you can also do it by simply right-clicking on the icon on your desktop and change it right there Actually, you might just remove the whole full path thing, and just say "java -Xmx512m -Xms32m -jar run.jar", plain and simple. That saves your having to edit it every time java gets updated Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 18 March 2008 01:21:41 Anders Johansson wrote:
Stan Goodman wrote:
On Tuesday 18 March 2008 00:17:32 Anders Johansson wrote:
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do?
It's a typo. Just delete the w. It should be .../jre/bin/java
Anders
I must not have been clear. There is noplace where "javaw" is visible except in the error message. I don't know that it is a typo; "javaw" is a normal Java executable. I don't know why there is none on my system.
It is not normal on a linux system
That may well be the case, in which somebody goofed, but it isn't me.
The typo is in $HOME/Desktop/Genealogy\ J.desktop
In that file you have a line that says
Exec=/usr/lib/jvm/java-1.6.0.u4-sun-1.6.0.u4/jre/bin/javaw -Xmx512m -Xms32m -jar run.jar
Edit that to remove the w from javaw, and it will work. I tried it myself here, and it does work
Anders
THIS is very helpful. I will do that tomorrow sometime. It's now 0135 here, and I am turning in. Many thanks. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 04:20:50 pm Stan Goodman wrote:
On Tuesday 18 March 2008 00:17:32 Anders Johansson wrote:
Stan Goodman wrote:
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). What does one do?
It's a typo. Just delete the w. It should be .../jre/bin/java
Anders
I must not have been clear. There is noplace where "javaw" is visible except in the error message. I don't know that it is a typo; "javaw" is a normal Java executable. I don't know why there is none on my system.
If you're thinking of Java Web Start, the command is javaws. The term - javaw - does nothing. -- 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
On Monday 17 March 2008 15:12, Stan Goodman wrote:
On Monday 17 March 2008 23:43:37 Randall R Schulz wrote:
...
You could confirm that by entering the command:
% ls -l ./lib/genj.jar ./lib/jhbasic.jar
The files are there. I can see them. They are also in the right place.
Really, the only "right place" is where they're referred to by the class-path.
Rather than knock my head against a brick wall, I've chosen to bite the bullet and download the new (one week old) release. I've installed it, and this has been painless ... right to the end. It left an icon on the desktop, so I don't even have to do that.
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
Javaw is a Windows-ism. Windows requires two JVM launchers, one for character mode and one for GUI mode. Javaw is for GUI (_w_indowing) mode programs. But this again suggests that you're using a release not intended for a Linux / Unix system. Then again, that is contradicted by the fact that created a desktop icon.
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /).
As above. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 18 March 2008 01:06:51 Randall R Schulz wrote:
On Monday 17 March 2008 15:12, Stan Goodman wrote:
On Monday 17 March 2008 23:43:37 Randall R Schulz wrote:
...
You could confirm that by entering the command:
% ls -l ./lib/genj.jar ./lib/jhbasic.jar
The files are there. I can see them. They are also in the right place.
Really, the only "right place" is where they're referred to by the class-path.
That's what I said. I am calling them from where they are.
Rather than knock my head against a brick wall, I've chosen to bite the bullet and download the new (one week old) release. I've installed it, and this has been painless ... right to the end. It left an icon on the desktop, so I don't even have to do that.
Clicking on the icon brings up the exasperating announcement that: "KDEInit cannot launch '/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update14/jre/bin/javaw'".
Javaw is a Windows-ism. Windows requires two JVM launchers, one for character mode and one for GUI mode. Javaw is for GUI (_w_indowing) mode programs.
Actually, as I understand it, javaw is the same as java, but doesn't have a console.
But this again suggests that you're using a release not intended for a Linux / Unix system. Then again, that is contradicted by the fact that created a desktop icon.
That is indeed where Java lives, but there is no file called "javaw" in that directory. Even more surprising,
doesn't find anything on the system. (I ran that as root, from /). As above.
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
On Monday 17 March 2008 16:31, Stan Goodman wrote:
...
Javaw is a Windows-ism. Windows requires two JVM launchers, one for character mode and one for GUI mode. Javaw is for GUI (_w_indowing) mode programs.
Actually, as I understand it, javaw is the same as java, but doesn't have a console.
It would be more accurate to say that it doesn't "require" a console.
...
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what.
Which version of GenealogyJ are you using there? The latest one, 2.4.4, doesn't contain the genj.app domain, it is genj.geo. There isn't an App class either And you're supposed to start it with the run.sh script Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 21:38:51 Anders Johansson wrote:
Stan Goodman wrote:
I have been using this Java app for many years under OS/2, and want now to run it in openSuSE.
The starting command that I have been trying to use (from a terminal, in the application's own directory) is:
The two jar files are what I know to be required to run this application, and they are just where they should be; spelling and case are correct. The jar files have three "r"s in their permisisons. Yet running this command yields only the exception warning:
Exception in thread "main" java.lang.NoClassDefFoundError: genj/app/App
I must be doing something wrong, but I don't see what.
Which version of GenealogyJ are you using there? The latest one, 2.4.4, doesn't contain the genj.app domain, it is genj.geo. There isn't an App class either
I am running a much older version of the program, because it is adequate for my needs. I do not need all the additional baggage that v2.x carries. But what is more to the point, what I am using has been running happily under java v1.4.2 for a long time, and there is no obvious reason why it should not run also under Linux. Its jar file, BTW, does indeed have a main file genj.app.App; I didn't make up any of that out of my head. As I keep saying, everything in the commandline I am trying to run is copied from the WORKING installation in OS/2. I am simply trying to reproduce in Linux what I had before. The release I have does have a run script (also for Windows and OS/2). I had not been using the OS/2 script, because OS/2 has a way to account for the classpath and other parameters without the use of the script, and it is more convenient.
And you're supposed to start it with the run.sh script
Anders
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
I am running a much older version of the program, because it is adequate for my needs. I do not need all the additional baggage that v2.x carries. But what is more to the point, what I am using has been running happily under java v1.4.2 for a long time, and there is no obvious reason why it should not run also under Linux.
Which version is it? If you put it up for download somewhere, someone could take a look at it and see what would make it tick Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2.
I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?! How exactly did you copy it? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 14:45, Anders Johansson wrote:
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2.
I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?!
The file command should identify JAR files as "Zip archive data," if they're mostly intact. The "zipinfo this.jar" or "jar t that.jar" commands will list their contents.
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
Anders
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
On Monday 17 March 2008 14:45, Anders Johansson wrote:
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2. I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?!
The file command should identify JAR files as "Zip archive data," if they're mostly intact. The "zipinfo this.jar" or "jar t that.jar" commands will list their contents.
Well, no, not really. It's only required that a few bytes at the beginning of the file are in the right place for "file" to say that it's a zip file. file is a useful tool, but it is very frequently wrong zipinfo and jar similarly will only tell you that the index is in place, but it says nothing about the integrity of the rest of the file. You only find that out if you try to unpack it, when zip will say that the checksum failed
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
Something along those lines, yes Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson pecked at the keyboard and wrote:
Randall R Schulz wrote:
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2. I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?! The file command should identify JAR files as "Zip archive data," if
On Monday 17 March 2008 14:45, Anders Johansson wrote: they're mostly intact. The "zipinfo this.jar" or "jar t that.jar" commands will list their contents.
Well, no, not really. It's only required that a few bytes at the beginning of the file are in the right place for "file" to say that it's a zip file.
file is a useful tool, but it is very frequently wrong
zipinfo and jar similarly will only tell you that the index is in place, but it says nothing about the integrity of the rest of the file. You only find that out if you try to unpack it, when zip will say that the checksum failed
How exactly did you copy it? Are you perhaps thinking ASCII-mode FTP or the equivalent?
Something along those lines, yes
Anders
Would the file maybe need to be converted from EBCDIC to ASCII. Just curious as this often the case in files from an IBM system which is where OS/2 comes from. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider wrote:
Would the file maybe need to be converted from EBCDIC to ASCII. Just curious as this often the case in files from an IBM system which is where OS/2 comes from.
No, that's exactly what should not happen. That should only happen to text files. But it is something in that direction that I suspect must have happened. Converting a binary file according to a character conversion table might make for a fun hobby, but it won't produce working executables :) Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 16:21, Ken Schneider wrote:
Anders Johansson pecked at the keyboard and wrote:
Randall R Schulz wrote:
...
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
Something along those lines, yes
Anders
Would the file maybe need to be converted from EBCDIC to ASCII. Just curious as this often the case in files from an IBM system which is where OS/2 comes from.
Is it time to start the openSUSE-Humor list?
-- Ken Schneider
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
rOn Monday 17 March 2008 04:27:03 pm Randall R Schulz wrote:
On Monday 17 March 2008 16:21, Ken Schneider wrote:
Anders Johansson pecked at the keyboard and wrote:
Randall R Schulz wrote:
...
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
Something along those lines, yes
Anders
Would the file maybe need to be converted from EBCDIC to ASCII. Just curious as this often the case in files from an IBM system which is where OS/2 comes from.
Is it time to start the openSUSE-Humor list?
I spent close to a year (in '98) writing a VB app to image-enable an old mainframe system. Everytime I interacted with the mainframe I had to do an EBCDIC <> ASCII conversion of the interface. There's no humor in that. :P -- 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
On Tuesday 18 March 2008 01:21:05 Ken Schneider wrote:
Anders Johansson pecked at the keyboard and wrote:
Randall R Schulz wrote:
On Monday 17 March 2008 14:45, Anders Johansson wrote:
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2.
I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?!
The file command should identify JAR files as "Zip archive data," if they're mostly intact. The "zipinfo this.jar" or "jar t that.jar" commands will list their contents.
Well, no, not really. It's only required that a few bytes at the beginning of the file are in the right place for "file" to say that it's a zip file.
file is a useful tool, but it is very frequently wrong
zipinfo and jar similarly will only tell you that the index is in place, but it says nothing about the integrity of the rest of the file. You only find that out if you try to unpack it, when zip will say that the checksum failed
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
Something along those lines, yes
Anders
Would the file maybe need to be converted from EBCDIC to ASCII. Just curious as this often the case in files from an IBM system which is where OS/2 comes from.
No.
-- Ken Schneider SuSe since Version 5.2, June 1998
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 18 March 2008 01:09:21 Randall R Schulz wrote:
On Monday 17 March 2008 14:45, Anders Johansson wrote:
Stan Goodman wrote:
commandline I am trying to run is copied from the WORKING installation in OS/2.
I wonder if perhaps it could be that the copy from OS/2 did something to corrupt it?!
The file command should identify JAR files as "Zip archive data," if they're mostly intact. The "zipinfo this.jar" or "jar t that.jar" commands will list their contents.
How exactly did you copy it?
Are you perhaps thinking ASCII-mode FTP or the equivalent?
No. In OS/2 it is on an HPFS partition; the same partition is mounted in Linux. I do not think I did anything reakky naive, which everyone seems to think. At this point, it is old news; now I'm trying to get the new version to work, in spite of its desire for a Java executable that doesn't exist on my system for some reason. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 17 March 2008 16:26, Stan Goodman wrote:
...
... now I'm trying to get the new version to work, in spite of its desire for a Java executable that doesn't exist on my system for some reason.
Non-existence creates itself. Anyway, we explained to you that the problem is that the installer created a desktop icon that is ever-so-slightly Windoid. Nuke the 'w' in "javaw" and you'll be on to your next mystery.
Stan Goodman
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Alexander Winizki
-
Anders Johansson
-
Kai Ponte
-
Ken Schneider
-
Randall R Schulz
-
Stan Goodman
-
Thomas Schmidt